When playing in the large terrain and panning or zooming out in the map the game starts stuttering and eventually crashes if the map is not quickly closed. Crash report indicates its a memory issue possibly due to the large size of the map image.
Description
Details
- Severity
- Crash
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 11 x64
- Category
- Game Crash
- Open terrain in editor 2. Open map 3. Zoom out.
The terrain
Event Timeline
"Out of memory (requested -788108 KB).\n footprint 50066368 KB.\n pages 131072 KB.\n"
Ah yes. The good old -788MB of memory. A true classic.
In reality it tried to allocate 12gb of memory in one chunk, that was simply too much.
This happened while trying to draw the height-lines on the map screen, under the sea.
Wow that terrain throws alot of asserts trying to load it D:
Yeah you can see the height lines are F'ed
There are just too darn many. And over the water its just too too too many.
You surely can fix that in your heightmap somehow. Other terrains aren't that bad.
Especially your northern edge is totally messed up.
Some of the terrain heights up there are NaN.
I fixed all the messes, but please don't publish such a messed up terrain :D
The countlines are now reduced to 10% on any terrain bigger than 128km², and map rendering will completely skip any cell's with NaN's in the heightmap.
Next dev-branch or profiling branch sometime this week.