devtools: fix frame graph timing

This commit is contained in:
Vinicius Rangel 2025-01-16 00:35:04 -03:00
parent 6fbcdcf925
commit c29651abee
No known key found for this signature in database
GPG Key ID: A5B154D904B761D9

View File

@ -84,11 +84,12 @@ void FrameGraph::Draw() {
auto isSystemPaused = DebugState.IsGuestThreadsPaused();
if (!isSystemPaused) {
deltaTime = io.DeltaTime * 1000.0f;
deltaTime = DebugState.FrameDeltaTime * 1000.0f;
frameRate = 1000.0f / deltaTime;
}
Text("Frame time: %.3f ms (%.1f FPS)", deltaTime, frameRate);
Text("Presenter time: %.3f ms (%.1f FPS)", io.DeltaTime * 1000.0f, 1.0f / io.DeltaTime);
Text("Flip frame: %d Gnm submit frame: %d", DebugState.flip_frame_count.load(),
DebugState.gnm_frame_count.load());