Refactor overlays into an enum

This commit is contained in:
Henrik Rydgård committed 2023-08-02 13:03:04 +02:00
1 parent 7538807ee7
commit fc6879674e
13 files changed
+95 -77

No files matched your search

+3 -3
View File
@@ -496,7 +496,7 @@ static void DoFrameIdleTiming() {
#endif
}
if (g_Config.bDrawFrameGraph || coreCollectDebugStats) {
if (g_Config.iDebugOverlay == DebugOverlay::FRAME_GRAPH || coreCollectDebugStats) {
DisplayNotifySleep(time_now_d() - before);
}
}
@@ -662,7 +662,7 @@ void __DisplayFlip(int cyclesLate) {
CoreTiming::ScheduleEvent(0 - cyclesLate, afterFlipEvent, 0);
numVBlanksSinceFlip = 0;
if (g_Config.bDrawFrameGraph || coreCollectDebugStats) {
if (g_Config.iDebugOverlay == DebugOverlay::FRAME_GRAPH || coreCollectDebugStats) {
// Track how long we sleep (whether vsync or sleep_ms.)
DisplayNotifySleep(time_now_d() - frameSleepStart, frameSleepPos);
}
@@ -726,7 +726,7 @@ void hleLagSync(u64 userdata, int cyclesLate) {
const int over = (int)((now - goal) * 1000000);
ScheduleLagSync(over - emuOver);
if (g_Config.bDrawFrameGraph || coreCollectDebugStats) {
if (g_Config.iDebugOverlay == DebugOverlay::FRAME_GRAPH || coreCollectDebugStats) {
DisplayNotifySleep(now - before);
}
}