mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-24 08:38:29 +00:00
nvflinger: Call MicroProfileFlip on NVFlinger::Compose.
This commit is contained in:
parent
c93ea96366
commit
de18592179
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
#include "common/alignment.h"
|
#include "common/alignment.h"
|
||||||
|
#include "common/microprofile.h"
|
||||||
#include "common/scope_exit.h"
|
#include "common/scope_exit.h"
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
#include "core/core_timing.h"
|
#include "core/core_timing.h"
|
||||||
|
@ -128,6 +129,8 @@ void NVFlinger::Compose() {
|
||||||
// Search for a queued buffer and acquire it
|
// Search for a queued buffer and acquire it
|
||||||
auto buffer = buffer_queue->AcquireBuffer();
|
auto buffer = buffer_queue->AcquireBuffer();
|
||||||
|
|
||||||
|
MicroProfileFlip();
|
||||||
|
|
||||||
if (buffer == boost::none) {
|
if (buffer == boost::none) {
|
||||||
// There was no queued buffer to draw, render previous frame
|
// There was no queued buffer to draw, render previous frame
|
||||||
Core::System::GetInstance().perf_stats.EndGameFrame();
|
Core::System::GetInstance().perf_stats.EndGameFrame();
|
||||||
|
|
Loading…
Reference in a new issue