diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-26 16:12:05 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-05 01:59:50 +0200 |
commit | ffc2ce89a03d8160c408922cd72a1f45e333c0fe (patch) | |
tree | d6990930ba921332a6cbec1985d2df6a93026126 /src/core/hle/service/nvdrv | |
parent | NvFlinger: Don't swap buffers if a frame is missing and always trigger event in sync gpu. (diff) | |
download | yuzu-ffc2ce89a03d8160c408922cd72a1f45e333c0fe.tar yuzu-ffc2ce89a03d8160c408922cd72a1f45e333c0fe.tar.gz yuzu-ffc2ce89a03d8160c408922cd72a1f45e333c0fe.tar.bz2 yuzu-ffc2ce89a03d8160c408922cd72a1f45e333c0fe.tar.lz yuzu-ffc2ce89a03d8160c408922cd72a1f45e333c0fe.tar.xz yuzu-ffc2ce89a03d8160c408922cd72a1f45e333c0fe.tar.zst yuzu-ffc2ce89a03d8160c408922cd72a1f45e333c0fe.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp index f764388bc..3f7b8e670 100644 --- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp +++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp @@ -5,6 +5,7 @@ #include "common/assert.h" #include "common/logging/log.h" #include "core/core.h" +#include "core/core_timing.h" #include "core/hle/service/nvdrv/devices/nvdisp_disp0.h" #include "core/hle/service/nvdrv/devices/nvmap.h" #include "core/perf_stats.h" @@ -38,7 +39,10 @@ void nvdisp_disp0::flip(u32 buffer_handle, u32 offset, u32 format, u32 width, u3 transform, crop_rect}; system.GetPerfStats().EndGameFrame(); + system.GetPerfStats().EndSystemFrame(); system.GPU().SwapBuffers(&framebuffer); + system.FrameLimiter().DoFrameLimiting(system.CoreTiming().GetGlobalTimeUs()); + system.GetPerfStats().BeginSystemFrame(); } } // namespace Service::Nvidia::Devices |