mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-03 16:39:01 -06:00 
			
		
		
		
	nvflinger: Call MicroProfileFlip on NVFlinger::Compose.
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user