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
build(data): ship 77 missing direct3d 11 shader programs
Olcay Seygan03a5794dd1f1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8012cc291..2987c156d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -438,6 +438,7 @@ found and fixed, EA's own, not port damage.**- A slow moment costs you a dropped frame, not a slow game.- A long match no longer drags every flash it ever lit behind it. The lights a muzzle flash or a blast puts on the ground were kept after they went out, ready for the next one, and the game looked at every one of them, lit or dark, five times a frame. By minute 24 of a four-way Hard match that was close to a quarter of the game's main loop. Spent lights now wait aside until they are needed again, and the game looks only at the ones that are burning.- Explosions no longer catch the picture. The first time each kind of fire, smoke or blast reached the screen, the game stopped for 25 to 60ms to prepare it, and the opening volley of a fight cost 300ms at once. That work is kept on disk and ships with the game, so it happens while the map loads, in about 3ms, and the worst frame of the same battle went from 141ms to 38ms.+- First use of Modern water, GPU particle floods, multisampling and the new shadow casters no longer stalls for a compile: those programs ship ready-made.- The price, build time and power figures on the command bar buttons stopped costing you frames. All the buttons shared one piece of text, so every figure on the bar was lettered from scratch every frame, about 33 of them. Each now keeps its own: a battle that averaged 14ms a frame averages 11.7ms, frames slower than 60 a second went from one in six to one in a hundred, and the old renderer gets about 0.8ms back too. The money readout was lettered again every frame as well, for a number that had not changed; it is lettered when the number moves. Over a whole battle the game now letters 163 pieces of text where it lettered 68,227.- The seconds over a building that is producing, or over a superweapon charging, were lettered from one shared line. Every building in view with a different time left had that line made again, every frame. Each building keeps its own, and it is made again only when the second changes. Twelve buildings counting down together, 1,200 frames: 313 letters, where the shared line wrote 6,181. The frame stayed at 8.6ms.- A screen full of fire and smoke is cheaper to draw. Thirty Inferno Cannons shelling twenty Crusaders used to send the graphics card 459 separate batches of see-through effects a frame, mostly the same texture again and again, and the game looked up the same seven card settings from scratch for every one of them. Matching effects go out together now, and settings that have not changed are not looked up again: 177 batches, and the same battle went from 11.6ms a frame to 8.6ms. It is at 6.7ms now, since the game stopped preparing everything it draws a second time for a copy of the picture nobody sees. Nothing on screen changes, the effects are drawn in exactly the order they were.diff --git a/GeneralsMD/Code/Data/dx11shaders.shipped b/GeneralsMD/Code/Data/dx11shaders.shippedindex 010964307..25fb4d6eb 100644Binary files a/GeneralsMD/Code/Data/dx11shaders.shipped and b/GeneralsMD/Code/Data/dx11shaders.shipped differ