Skip to content

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.

feat(w3ddevice): name the 64-bit build in the corner readout

Olcay Seygan11d8ed369d25
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 22b0f6b96..aee9dfc97 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -450,7 +450,7 @@ found and fixed — EA's own, not port damage.**
- Timings everywhere: buildings, queues, superweapon charge, upgrades being researched.
- A charge bar now says how many seconds are left.
- Aircraft always show how many attack runs they have left.
-- The corner readout separates game time from real time, and sim rate from fps. It also says DX11 or DX9 after the frame rate, which is what your machine is actually drawing with: a graphics card that cannot start Direct3D 11 falls back to 9 without a word, and a frame rate means nothing until you know which of the two it belongs to.
+- The corner readout separates game time from real time, and sim rate from fps. It also says DX11 or DX9 after the frame rate, which is what your machine is actually drawing with: a graphics card that cannot start Direct3D 11 falls back to 9 without a word, and a frame rate means nothing until you know which of the two it belongs to. The 64-bit game writes x64 after it, so a screenshot says which build took it.
- Your computer's own clock leads that readout, so you can see the time without leaving the match.
- Pausing stops both clocks.
- Watching a match, the strip becomes every player's queue at once: one row each, bordered in that player's colour, showing the three that land soonest and a count of the rest. Buildings going up on the ground are in those rows too, so a player answering an attack with three war factories is visible while the concrete is still wet, and eight players fit on one screen because a row is three pictures wide.
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp
index 56d794222..e63dbc220 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp
@@ -4052,10 +4052,15 @@ void W3DDisplay::toggleMovieCapture(void)
}
/** Asks the device rather than the switch: a machine that cannot make a Direct3D 11 device carries
- * on with Direct3D 9 whatever -d3d9 said, and the corner has to name what is actually drawing. */
+ * on with Direct3D 9 whatever -d3d9 said, and the corner has to name what is actually drawing.
+ * A 64-bit exe says so beside it. */
const wchar_t *W3DDisplay::getRendererName(void) const
{
+#ifdef _WIN64
+ return Direct3D11_Is_Active() ? L"DX11 x64" : L"DX9 x64";
+#else
return Direct3D11_Is_Active() ? L"DX11" : L"DX9";
+#endif
}