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 60hz(TURBO) and the frame rate
Olcay Seygan5a95d697ba6f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ad44d1f71..38002fb9a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -58,6 +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.## A lobby built for your screendiff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cppindex 9b1d99fd2..5c1bd9321 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp@@ -9314,13 +9314,25 @@ void InGameUI::drawHudOverlay( void )WallClockTime wallClock;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+ const 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,+ m_hudFps.shown );+ else+ rateText.format( u"%dhz(%dfps)", m_hudLogicHz.shown, m_hudFps.shown );+UnicodeString text;- text.format( u"%02d:%02d %02d:%02d:%02d(%02d:%02d:%02d) %dhz(%dfps) %s",+ text.format( u"%02d:%02d %02d:%02d:%02d(%02d:%02d:%02d) %s %s",wallClock.wHour, wallClock.wMinute,gameSecs / 3600, (gameSecs / 60) % 60, gameSecs % 60,realSecs / 3600, (realSecs / 60) % 60, realSecs % 60,- m_hudLogicHz.shown, m_hudFps.shown,- TheDisplay->getRendererName() );+ rateText.str(), TheDisplay->getRendererName() );UnicodeString frameText;frameText.format( u" frame %d", (Int)logicFrame );