Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(gameclient): turbo readout reads TURBO 60hz(fps)
Olcay Seygan2f9661d2b030
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 014196d34..04b339791 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -58,7 +58,7 @@ found and fixed — EA's own, not port damage.**- In a network game the host ticks the box and every machine in the room plays at that speed, so nobody falls out of step. A recorded stats game online plays at normal speed. A replay plays back at the speed its match had, and its speed buttons still work from there.- Campaign and Generals' Challenge missions have the box in Options, under Interface: Turbo Mode in Missions. Ticked in the middle of a mission, it speeds that mission up at once.- A skirmish lobby or a saved game left on x0.5 or x0.75 comes back at normal speed. A map script can no longer change how fast a match runs, and the speed console command picks between normal and turbo.-- In a turbo match the corner readout says 60hz(TURBO) and the frame rate after it, where it said 120hz. The battle still steps 60 times for every second of battle; turbo fits two of those seconds into each real one, and 120hz read as if the step itself had changed.+- In a turbo match the corner readout says TURBO 60hz with the frame rate beside it, where it said 120hz. The battle still steps 60 times for every second of battle; turbo fits two of those seconds into each real one, and 120hz read as if the step itself had changed.## A lobby built for your screendiff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cppindex 5c1bd9321..462aea09c 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp@@ -9315,14 +9315,14 @@ void InGameUI::drawHudOverlay( void )getLocalWallClock( &wallClock );// Turbo mode runs twice the logic frames a second, so its rate reads as the normal rate it is- // doubling, marked TURBO, with the frame rate after it. A replay's 1x is the rate its match was- // played at; the speed keys move the engine's limit but not that+ // doubling, with TURBO in front of it. A replay's 1x is the rate its match was played at; the+ // speed keys move the engine's limit but not thatconst Int turboFps = GameEngine_matchFramesPerSecond( TRUE );const Int matchFps = TheRecorder->getMode() == RECORDERMODETYPE_PLAYBACK? replayNormalFramesPerSecond() : TheGameEngine->getFramesPerSecondLimit();UnicodeString rateText;if( matchFps == turboFps )- rateText.format( u"%dhz(TURBO) %dfps", m_hudLogicHz.shown * GameEngine_matchFramesPerSecond( FALSE ) / turboFps,+ rateText.format( u"TURBO %dhz(%dfps)", m_hudLogicHz.shown * GameEngine_matchFramesPerSecond( FALSE ) / turboFps,m_hudFps.shown );elserateText.format( u"%dhz(%dfps)", m_hudLogicHz.shown, m_hudFps.shown );