yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #352 from bunnei/fix-microprofile

nvflinger: Call MicroProfileFlip on NVFlinger::Compose.
This commit is contained in:
James Rowe 2018-04-19 12:18:47 -06:00 committed by GitHub
commit e90a12f80c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
#include <algorithm>
#include "common/alignment.h"
#include "common/microprofile.h"
#include "common/scope_exit.h"
#include "core/core.h"
#include "core/core_timing.h"
@ -128,6 +129,8 @@ void NVFlinger::Compose() {
// Search for a queued buffer and acquire it
auto buffer = buffer_queue->AcquireBuffer();
MicroProfileFlip();
if (buffer == boost::none) {
// There was no queued buffer to draw, render previous frame
Core::System::GetInstance().perf_stats.EndGameFrame();