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
docs(changelog): pre-search numbers from one match at a time
Olcay Seyganadfdc888f45c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a5940d477..8acb2dc12 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -32,7 +32,7 @@ found and fixed, EA's own, not port damage.**## Long routes in big computer matches- A unit looking for a long way across a crowded map no longer stops mid-search and gives up. A search that runs out of its share of a step waits for the next one and carries on, and the limit on how much ground one search can cover is doubled. In eight Hard computer players on Twilight Flame, six matches a side, the pathfinding cost 34.9 seconds a match where it cost 42.8, with 28% fewer cells searched, and fewer units sat wedged. The worst frames of those matches did not get measurably shorter. Replays recorded before this change play out differently.-- Before a long search the pathfinder sketches a rough corridor over the map in blocks of ten cells, and two kinds of sketch were pure waste. One was drawn for a unit whose destination turned out to be taken, which then had to look for the nearest free spot instead. The other was a worker a step from his own building site: the half-built walls split the blocks the sketch walks while the ground he walks stays open, so it covered the whole map, 4 to 7 ms of a single frame, and found nothing. Now the sketch is drawn only for a search that will run, and it gives up past 5,000 cells, a size no sketch that found its corridor reached in three long matches. Every unit is handed the route it was handed before. Eight Hard computer players on Twilight Flame, six matches a side: frames where the pathfinder's own queue took over 5 ms fell from 624 to 198, fewer on every seed, and pathfinding cost 39.4 seconds a match where it cost 42.8. Which frame works a route out has moved, so replays recorded before this change play out differently.+- Before a long search the pathfinder sketches a rough corridor over the map in blocks of ten cells, and two kinds of sketch were pure waste. One was drawn for a unit whose destination turned out to be taken, which then had to look for the nearest free spot instead. The other was a worker a step from his own building site: the half-built walls split the blocks the sketch walks while the ground he walks stays open, so it covered the whole map, 4 to 7 ms of a single frame, and found nothing. Now the sketch is drawn only for a search that will run, and it gives up past 5,000 cells, a size no sketch that found its corridor reached in three long matches. Every unit is handed the route it was handed before. Eight Hard computer players on Twilight Flame, one match at a time on three seeds: frames where the pathfinder's own queue took over 5 ms went from 13 to none, and over 3 ms from 337 to 139, fewer on every seed. The pathfinder's total time stayed where it was, and the few frames over 33 ms are the opening's scripts, the same frames in every build. Which frame works a route out has moved, so replays recorded before this change play out differently.## Computer players earn double@@ -2574,6 +2574,7 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same- The computer's attack waves now travel as a crowd too. A selection you send, and a computer team told to gather at a point, were already handed a line across the road. The order that actually sends a wave down an approach path was not: every tank on it steered at the middle of the same road, which is the single file the crowd was written to stop. That order now hands out the same lines a move does, aimed at the next point on the path so a group already standing on the first waypoint still has a direction to spread across.- Since the first attempt at the band failed silently and passed every test it had, the band can now be drawn. A switch puts each moving unit's route on the ground in blue, the line it holds as a yellow mark sideways from the unit, and the offset that survived as a green mark from the route out to where the unit is actually aiming. The three failures that look identical from the camera - a line never given out, a line given out and dropped on the way, a line applied but too small to see - are three different pictures under it, and the same run writes them to the log as well.- One more go at the worst frames of a big computer match was measured and taken back on 6 November. A long route search that runs out of its share of a step is finished all at once by the next unit that asks the pathfinder anything, nearly always one told to step aside for a passing ally, and those finishes were three of the five slowest steps in two minutes of eight Hard players on Twilight Flame. Making that unit wait while the search carried on at its own pace only moved the cost onto the search's later steps. Over six eight-player matches a side the slowest step in a thousand read 41.0 ms against 40.0, and units spent 5% longer blocked behind each other, so the search is still finished in one go.+- A second try the same night was taken back as well. The search for the nearest free spot near a taken destination has no budget, and it ran on top of whatever the frame had already answered; the unit that needed one was made to wait for the next frame and run it first, with the frame to itself. One match at a time on three seeds, frames where the pathfinder's queue took over 3 ms fell from 139 to 89, but those over 5 ms went from none to 3, so the frame was no better bounded. Units did spend 16% less time blocked behind each other and 17% less wedged, which is worth a look of its own.---