mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Merge pull request #4882 from jroweboy/frametime-logging
Frametime logging for tracking performance over time
This commit is contained in:
		
						commit
						00eeaf0e9c
					
				
					 12 changed files with 87 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -307,7 +307,7 @@ ResultCode SetBufferSwap(u32 screen_id, const FrameBufferInfo& info) {
 | 
			
		|||
 | 
			
		||||
    if (screen_id == 0) {
 | 
			
		||||
        MicroProfileFlip();
 | 
			
		||||
        Core::System::GetInstance().perf_stats.EndGameFrame();
 | 
			
		||||
        Core::System::GetInstance().perf_stats->EndGameFrame();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return RESULT_SUCCESS;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -228,7 +228,7 @@ void Module::UpdateGyroscopeCallback(u64 userdata, s64 cycles_late) {
 | 
			
		|||
 | 
			
		||||
    Common::Vec3<float> gyro;
 | 
			
		||||
    std::tie(std::ignore, gyro) = motion_device->GetStatus();
 | 
			
		||||
    double stretch = system.perf_stats.GetLastFrameTimeScale();
 | 
			
		||||
    double stretch = system.perf_stats->GetLastFrameTimeScale();
 | 
			
		||||
    gyro *= gyroscope_coef * static_cast<float>(stretch);
 | 
			
		||||
    gyroscope_entry.x = static_cast<s16>(gyro.x);
 | 
			
		||||
    gyroscope_entry.y = static_cast<s16>(gyro.y);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue