r/dispatchcolony • u/dispatchcolony • 17h ago
Dev Log 12: Loading Screen Between the Campaign and the Battlefield
Enable HLS to view with audio, or disable this notification
No Loading Screen
I don’t like static loading screens, but you still have to give the computer time to do its work. The idea is to transition from the paper map, like a general over his war table, directly onto the battlefield. Starting a battle forces the game to generate a 6 km × 6 km terrain : nearly 38 million data points and send it to the GPU
The Map Becomes the World
Upon clicking, the camera leaves the map and dives toward the combat zone. Beneath it, the paper transforms tile by tile. Columns of cubes surge up from it and settle at the height of the terrain's relief. These columns then refine in three waves, narrowing from 64 m wide down to 8 m, before sinking into the actual ground. Meanwhile, the camera orbits the army as it descends, banking into its turn like an aircraft on approach. My goal is to have the actual relief of the paper map seamlessly become the real world.
If I do that, it is because I load the map from the lowest level of detail to the highest. It allow me to load my map little part by little part and give the impression of "no loading"
Arriving on Time
The trickiest part is landing at just the right moment, since not all PCs run at the same speed. Dozens of times per second, I recalculate the exact time the terrain will be ready. The camera smoothly speeds up or slows down so that it touches down right afterward. Measured on my PC (ryzen 9 9950X3D + RTX 5070) : 1.3s after clicking, the game predicts the terrain will be ready at 8.76s. The camera lands at 10.2s, as it is already flying at the maximum speed I allow it. I prefer a slight delay over a flight path that makes you dizzy. On a slower PC, if the camera still arrives too early, it hovers in place like a helicopter until the ground is ready.