desktop-ui: rename FPS to VPS (VBlanks Per Second) to better represent what it is really showing

このコミットが含まれているのは:
Luke Usher 2023-11-28 21:52:55 +00:00
コミット df031a7d4c
3個のファイルの変更8行の追加8行の削除

ファイルの表示

@ -121,14 +121,14 @@ auto Program::video(ares::Node::Video::Screen node, const u32* data, u32 pitch,
}
ruby::video.unlock();
static u64 frameCounter = 0, previous, current;
frameCounter++;
static u64 vblankCounter = 0, previous, current;
vblankCounter++;
current = chrono::timestamp();
if(current != previous) {
previous = current;
framesPerSecond = frameCounter;
frameCounter = 0;
vblanksPerSecond = vblankCounter;
vblankCounter = 0;
}
}

ファイルの表示

@ -94,7 +94,7 @@ struct Program : ares::Platform {
} message;
vector<Message> messages;
maybe<u64> framesPerSecond;
maybe<u64> vblanksPerSecond;
};
extern Program program;

ファイルの表示

@ -8,9 +8,9 @@ auto Program::updateMessage() -> void {
}
}
if(framesPerSecond) {
presentation.statusRight.setText({framesPerSecond(), " FPS"});
framesPerSecond.reset();
if(vblanksPerSecond) {
presentation.statusRight.setText({vblanksPerSecond(), " VPS"});
vblanksPerSecond.reset();
}
if(!emulator) {