mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Merge branch 'no-frameskip-replays' into 'master'
Do not pause 3d rendering ever in replays Closes #1226 See merge request KartKrew/Kart!2210
This commit is contained in:
		
						commit
						437d5283e0
					
				
					 1 changed files with 18 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -1019,16 +1019,26 @@ void D_SRB2Loop(void)
 | 
			
		|||
					}
 | 
			
		||||
					return true;
 | 
			
		||||
				};
 | 
			
		||||
				// 3D rendering is stopped ENTIRELY if the game is paused.
 | 
			
		||||
				// - In single player, opening the menu pauses the game, so it's perfect.
 | 
			
		||||
				// - One exception: freecam is allowed to move when the game is paused.
 | 
			
		||||
				if (((paused || P_AutoPause()) && none_freecam()) ||
 | 
			
		||||
					// 3D framerate is always allowed to at least drop if the menu is open.
 | 
			
		||||
					// Does not affect replay menu because that one is more like a HUD.
 | 
			
		||||
					(skiplaggyworld && menuactive && currentMenu != &PAUSE_PlaybackMenuDef))
 | 
			
		||||
				auto can_skip = [&]
 | 
			
		||||
				{
 | 
			
		||||
					// Would interfere with "Advanced Frame" button in replays.
 | 
			
		||||
					if (demo.playback)
 | 
			
		||||
						return false;
 | 
			
		||||
 | 
			
		||||
					// 3D rendering is stopped ENTIRELY if the game is paused.
 | 
			
		||||
					// - In single player, opening the menu pauses the game, so it's perfect.
 | 
			
		||||
					// - One exception: freecam is allowed to move when the game is paused.
 | 
			
		||||
					if ((paused || P_AutoPause()) && none_freecam())
 | 
			
		||||
						return true;
 | 
			
		||||
 | 
			
		||||
					// 3D framerate is always allowed to at least drop if the menu is open.
 | 
			
		||||
					if (skiplaggyworld && menuactive)
 | 
			
		||||
						return true;
 | 
			
		||||
 | 
			
		||||
					return false;
 | 
			
		||||
				};
 | 
			
		||||
				if (can_skip())
 | 
			
		||||
					world = false;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			ranwipe = D_Display(world);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue