summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-16 02:34:20 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-05-16 02:34:20 +0200
commit5bef54618a2850e42f7bab45120dab9166468a25 (patch)
treeadc5dbbe050488eb0d85b7a38a5c8310dca9ef92 /src/video_core/gpu.cpp
parentMerge pull request #6300 from Morph1984/mbedtls (diff)
downloadyuzu-5bef54618a2850e42f7bab45120dab9166468a25.tar
yuzu-5bef54618a2850e42f7bab45120dab9166468a25.tar.gz
yuzu-5bef54618a2850e42f7bab45120dab9166468a25.tar.bz2
yuzu-5bef54618a2850e42f7bab45120dab9166468a25.tar.lz
yuzu-5bef54618a2850e42f7bab45120dab9166468a25.tar.xz
yuzu-5bef54618a2850e42f7bab45120dab9166468a25.tar.zst
yuzu-5bef54618a2850e42f7bab45120dab9166468a25.zip
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index a38024242..37f7b24e1 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -13,6 +13,7 @@
#include "core/frontend/emu_window.h"
#include "core/hardware_interrupt_manager.h"
#include "core/memory.h"
+#include "core/perf_stats.h"
#include "video_core/engines/fermi_2d.h"
#include "video_core/engines/kepler_compute.h"
#include "video_core/engines/kepler_memory.h"
@@ -191,6 +192,10 @@ u64 GPU::GetTicks() const {
return nanoseconds_num * gpu_ticks_num + (nanoseconds_rem * gpu_ticks_num) / gpu_ticks_den;
}
+void GPU::RendererFrameEndNotify() {
+ system.GetPerfStats().EndGameFrame();
+}
+
void GPU::FlushCommands() {
rasterizer->FlushCommands();
}