diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-25 03:30:11 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-25 03:30:11 +0200 |
commit | ac0104b8b0584023cfbd7a4800f1ca1db890188f (patch) | |
tree | a1651d48113413e2de1e6e309362511b1ff7ffa8 /src/core/hle/service | |
parent | Merge pull request #1063 from Subv/hw_renderer_debug_fb (diff) | |
parent | Integrate the MicroProfile profiling library (diff) | |
download | yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.gz yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.bz2 yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.lz yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.xz yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.zst yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/gsp_gpu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp index fde508a13..c3d0d28a5 100644 --- a/src/core/hle/service/gsp_gpu.cpp +++ b/src/core/hle/service/gsp_gpu.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include "common/bit_field.h" +#include "common/microprofile.h" #include "core/memory.h" #include "core/hle/kernel/event.h" @@ -229,6 +230,10 @@ void SetBufferSwap(u32 screen_id, const FrameBufferInfo& info) { if (Pica::g_debug_context) Pica::g_debug_context->OnEvent(Pica::DebugContext::Event::BufferSwapped, nullptr); + + if (screen_id == 0) { + MicroProfileFlip(); + } } /** |