Skip to content
Snippets Groups Projects
Unverified Commit e90a12f8 authored by James Rowe's avatar James Rowe Committed by GitHub
Browse files

Merge pull request #352 from bunnei/fix-microprofile

nvflinger: Call MicroProfileFlip on NVFlinger::Compose.
parents d019bb16 de185921
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment