mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-31 07:59:02 -05:00 
			
		
		
		
	Kernel: Correct redundant yields to only advance time forward.
This commit is contained in:
		 Fernando Sahmkow
					Fernando Sahmkow
				
			
				
					committed by
					
						 FernandoS27
						FernandoS27
					
				
			
			
				
	
			
			
			 FernandoS27
						FernandoS27
					
				
			
						parent
						
							7176857177
						
					
				
				
					commit
					27d571c084
				
			| @@ -1577,10 +1577,12 @@ static void SleepThread(Core::System& system, s64 nanoseconds) { | ||||
|     } | ||||
|  | ||||
|     if (redundant) { | ||||
|         system.CoreTiming().Idle(); | ||||
|     } else { | ||||
|         system.PrepareReschedule(current_thread->GetProcessorID()); | ||||
|         // If it's redundant, the core is pretty much idle. Some games keep idling | ||||
|         // a core while it's doing nothing, we advance timing to avoid costly continuos | ||||
|         // calls. | ||||
|         system.CoreTiming().AddTicks(2000); | ||||
|     } | ||||
|     system.PrepareReschedule(current_thread->GetProcessorID()); | ||||
| } | ||||
|  | ||||
| /// Wait process wide key atomic | ||||
|   | ||||
		Reference in New Issue
	
	Block a user