mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-03 16:39:01 -06:00 
			
		
		
		
	Core: Make PerfStats internally locked
More ergonomic to use and will be required for upcoming changes.
This commit is contained in:
		@@ -281,8 +281,7 @@ ResultCode SetBufferSwap(u32 screen_id, const FrameBufferInfo& info) {
 | 
			
		||||
 | 
			
		||||
    if (screen_id == 0) {
 | 
			
		||||
        MicroProfileFlip();
 | 
			
		||||
        auto perf_stats = Core::System::GetInstance().perf_stats.Lock();
 | 
			
		||||
        perf_stats->EndGameFrame();
 | 
			
		||||
        Core::System::GetInstance().perf_stats.EndGameFrame();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return RESULT_SUCCESS;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user