desktop-ui: rename FPS to VPS (VBlanks Per Second) to better represent what it is really showing
このコミットが含まれているのは:
コミット
df031a7d4c
|
@ -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) {
|
||||
|
|
読み込み中…
新しいイシューから参照