various discussions in the past and during the last few days in this topic for example
viewtopic.php?f=148&t=35669
Subject of this essay is the
The memory usage of PzC and the 1GB crash !
Let me say somehting up front....If I may sound overly critical at some stage I beg you pardon as english is not my native language...
and now lets move to the important things
1. Wherever we acknowledge it or not the game is a memory hog for no good reason...it builds up memory and depending on how many units on the map and how many different animations/sounds this goes very quickly...freeing routines for sounds/animations after each player turn could help a lot but have been discarded...not directly but indirectly...lot of coding with maybe unpredictable results ?...maybe to much of a hassle since the game is nearly build ?...its a mystery
2. This high memory usage may not be an issue for the relative small campaing maps and poeple rarely play so long to encounter the issue that the application reaches 1 GB and goes bust but this cant be really an argument for not doin the right thing and commercialize an engine with an artificial muzzle brake
3. The game crashes when reaching 1GB of RAM usage (evidence below)
4. The mentioned issues are surely dooming a series of current and possible future user made scenarios,campaigns and/or mods to death <VPaulus sound mod> Bigger Maps combined with Massis New Tile Sets > and so on...most probably including mine too where I have already spent over 100 hours only in the map..again..for no good reasonan cause there are possibilities
Now let me be clear..I fully understang that the game shall be playable on systems who only have a total of 2GB system RAM. However, since RAM is cheap nowadays and the bigger chunk of people who play games have at least 4GB RAM on Win7-32bit systems by now I dont see why we all have to suffer the consecuences only to enable a dwindling minority to play the game on their obsolete machines while all others can not only not take advantage of their systems but are even heavily penalized by the current setting not mentioning the mod comunity which is highly restricted this way.
I ask VPaulus to run a test with PzC 1.5 vanilla and his superduper crash scenario for demonstration purposes.
This scneario contains over 100 different units and uses his sound mod..when moving,attacking with most units the game quickly reaches close to 1GB RAM and 100% positive crashed then....which is no wonder since its amended to run on 2GB system RAM machines and wouldnt allow anyway for using more RAM,would it ?...specified highest user adress ?.....

Anyway..I flagged the header of the exe to Large Adress Aware and VPaulus gave it another run on his Win7X64 with his mega crasher scneario and voila we have a blockbuster...for the first time ever...the scenario did not crash cause it now adresses more memory...

- In Win XP Prof with 3GB switch the LAA exe lasted to 1,4GB then got runtime error (I guess faulty memory space reservation or bad garbage collection)...>freeing routines ???....still...record.
- Win7 32bit it crashed at 1,5GB
- Win7-64x with the LAA.exe the game lasted with 1.5GB load until Paulus gave up as he couldnt stress the application more...
...all proove that RAM beyond 1GB is not only pipe dream with PzC
I politely ask now for a definite official solution from the Developers side so that all poeple with at least 4GB RAM Win7- 32bit or more under X64, can adress more memory, including those with Win XP professional with the 3GB switch enabled...
The solution could be:
1. An option in the launcher where people choose 2GB system RAM or Higer and then a helper DLL Sets or Unsets the LARGEADDRESSAWARE bit on the PzC exe > changes the file header accordingly or specifes another highest user adress (preferable !?)
2. or directly 2 different exes
3. since I know the LAA fix works on some systems and on others not any other method you find convenient as long as it has the same result > more memory usage and no crash/freeze on 1GB RAM on systems with more RAM
maybe a PzC.exe which can properly adress the max 1.75 GB for a 32bit application seems the perfect solution apart from the regular PzC exe for the 2GigaBiters but this is obviously not my call...
I think that is a fair request and does not even requiere great effort but only a bit of discernment and sympathy...
Thank you for your consideration Gentlemen
Best Regards
Chris Klein
EDIT
After further testing VPaulus were able to stress the RAM load to 1,8GB on Win7-X64 with an absurd amount of different units and different sounds when it finally crashed..So a 1,75GB solution for all those with at least 3GB usable system RAM seems the best approach as it is doubtful that under real circumstances such a high load is reached




