A packaged build of the game crashes with a “FATAL ERROR”, when the big game map is being loaded the second/third time.
The structure of the game world is like Skyrims. A player in the big open world map is entering a shop - the game is opening the shop map.
However, then on return to the main game map - the game may crash on the second or the third time.
I suspect it has to do with VRAM being full, or DirectX cache being full and not cleaning itself.
I had this map crashing the game on the first load due to DX11 error, so I switched to using DX12 and now its crashing it on the second/third time
How to fix it? Clearing DirectX cache manually doesnt help. The system has 16GBs of RAM and 12GB of VRAM.
Other games with big open worlds do not crash.
In addition: loading any somewhar big game map right after closing the game and launching it again - is crashing the game. However, if you wait for 5 minutes - the medijm sized maps work. So I suspect that this has something to do with memory management that Unreal cant do properly.
So I tried Flushing Level Streaming, but no. I still get the FATAL ERROR crash when opening big maps. Some of these maps are without level streaming, so its definitely not related to this
I reduced the final build size twice, reduced texture sizes even further just for the test - still crashes on the second/third load. Or on the first load, if I start the game right after the crash.
I get ~100 fps on crashing maps, so its not that computer cant handle it. I think that there is something with the engine and how it deals with the graphics api or memory