diff options
| author | bunnei <bunneidev@gmail.com> | 2018-02-14 13:48:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-14 13:48:33 -0500 |
| commit | c19e4858b6e53d678c10116f6ee975775d034293 (patch) | |
| tree | 42e453b7c1f85e60a222a7e66295d53f809df7fe /src/core | |
| parent | 54d453835e53e8df7dbe97d6f8171860b1939b07 (diff) | |
| parent | e027d1b40c5868cbbca425c3523c3481a7d7a91a (diff) | |
Merge pull request #192 from jroweboy/fix-fps
Fix fps counter to correctly measure frame end when there was no frame to draw
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index 2089462b7f..a54239b0fe 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp @@ -6,6 +6,7 @@ #include "common/alignment.h" #include "common/scope_exit.h" +#include "core/core.h" #include "core/core_timing.h" #include "core/hle/service/nvdrv/devices/nvdisp_disp0.h" #include "core/hle/service/nvdrv/nvdrv.h" @@ -129,6 +130,7 @@ void NVFlinger::Compose() { if (buffer == boost::none) { // There was no queued buffer to draw, render previous frame + Core::System::GetInstance().perf_stats.EndGameFrame(); VideoCore::g_renderer->SwapBuffers({}); continue; } |
