VERY experimental Nintendo Switch 2 emulator
C++
FrameLimiting: Enable frame limiting for single core.
Fernando Sahmkow3197d729966b
diff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cppindex 19df0dca7c..3f7b8e6704 100644--- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp+++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp@@ -41,6 +41,7 @@ void nvdisp_disp0::flip(u32 buffer_handle, u32 offset, u32 format, u32 width, u3system.GetPerfStats().EndGameFrame();system.GetPerfStats().EndSystemFrame();system.GPU().SwapBuffers(&framebuffer);+ system.FrameLimiter().DoFrameLimiting(system.CoreTiming().GetGlobalTimeUs());system.GetPerfStats().BeginSystemFrame();}diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cppindex f1ae9d4df5..9f3a6b8113 100644--- a/src/core/perf_stats.cpp+++ b/src/core/perf_stats.cpp@@ -119,7 +119,7 @@ double PerfStats::GetLastFrameTimeScale() {}void FrameLimiter::DoFrameLimiting(microseconds current_system_time_us) {- if (!Settings::values.use_frame_limit) {+ if (!Settings::values.use_frame_limit || Settings::values.use_multi_core) {return;}