diff options
| author | 2018-04-19 12:18:47 -0600 | |
|---|---|---|
| committer | 2018-04-19 12:18:47 -0600 | |
| commit | e90a12f80c72244c74b39eaff38f0122370b7bdb (patch) | |
| tree | fd173d6393151d4bf51d8fd6e6c2053f3e40fc59 /src | |
| parent | Merge pull request #353 from Subv/compressed_formats (diff) | |
| parent | nvflinger: Call MicroProfileFlip on NVFlinger::Compose. (diff) | |
| download | yuzu-e90a12f80c72244c74b39eaff38f0122370b7bdb.tar.gz yuzu-e90a12f80c72244c74b39eaff38f0122370b7bdb.tar.xz yuzu-e90a12f80c72244c74b39eaff38f0122370b7bdb.zip | |
Merge pull request #352 from bunnei/fix-microprofile
nvflinger: Call MicroProfileFlip on NVFlinger::Compose.
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index 0d30f54dc..ee1bf0404 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | 6 | ||
| 7 | #include "common/alignment.h" | 7 | #include "common/alignment.h" |
| 8 | #include "common/microprofile.h" | ||
| 8 | #include "common/scope_exit.h" | 9 | #include "common/scope_exit.h" |
| 9 | #include "core/core.h" | 10 | #include "core/core.h" |
| 10 | #include "core/core_timing.h" | 11 | #include "core/core_timing.h" |
| @@ -128,6 +129,8 @@ void NVFlinger::Compose() { | |||
| 128 | // Search for a queued buffer and acquire it | 129 | // Search for a queued buffer and acquire it |
| 129 | auto buffer = buffer_queue->AcquireBuffer(); | 130 | auto buffer = buffer_queue->AcquireBuffer(); |
| 130 | 131 | ||
| 132 | MicroProfileFlip(); | ||
| 133 | |||
| 131 | if (buffer == boost::none) { | 134 | if (buffer == boost::none) { |
| 132 | // There was no queued buffer to draw, render previous frame | 135 | // There was no queued buffer to draw, render previous frame |
| 133 | Core::System::GetInstance().perf_stats.EndGameFrame(); | 136 | Core::System::GetInstance().perf_stats.EndGameFrame(); |