Closed AlemSnyder closed 2 years ago
Forgot to add that this is not a memory leak (I tested with some memory management software).
12 macro tiles by 12 macro tiles, each macro tile is 32 x 32 tiles. The height is 128
12121283232 = 18874368 total tiles
Each tiles is 12 bytes without adjacent map. 18874368*12 = 226492416 or ~200 mb. Much less then measured.
.\FunGame.exe StressTest
to get results.
1.5 GB is from vertex data sent to the GPU. Is this necessary to save on the ram? Can it be saved only the GPU? 1.30-1.35 GB is from tile. About 1 GB can be removed. 350 MB is from saving tile adjacent. Will need to find a better way to do this.
LETS GO!!!!
Somewhere memory is being allocated incorrectly. This is linear with the number of tiles. This approximately doubles the expected memory usage of the program.