I haven't seen many threads focused on this so I thought I'd give it a go.
All in windowed mode, 64bit win7.
Possible leaks found so far:
-zooming in and out with mouse wheel (reported already AFAIK)
-toggling between existing unit designs in unit design section
-toggling to 'unit design' and 'dynasty' option in kingdom report menu. ( Example : switching from 'unit design' to 'dynasty' leaks over 2MB ).
-redrawing terrain from under fog of war leaks small amounts ( can be reproduced by moving repeatedly between two tiles visited already )
-toggling selection between objects on the map seems to leak memory when selection indicating box changes shape ( from city to unit ) or colour ( from an inn or bones to unit ) but this behaviour does not occur all the time and I can't seem to pinpoint it in any precise manner.
-opening and closing city improvements dialog leaks memory. Closing the list leaks more than opening it.
-pulling up 'unit details' screen leaks memory
-entering AND leaving 'item shop' leaks memory
-placing a building to be constructed leaks small amounts ( under 100kB )
-scrolling the map when zoomed in leaks memory when an animated tile comes into view
-scrolling the map in cloth map mode also leaks memory (especially when moving the view from an unexplored area into an explored one)
Other memory issues :
-opening help allocates memory, this block is not released when help is closed but it's not allocated again either.
Using above I managed to build up the game's memory usage to approx 720MB after 25 turns (having no units except the soveregin, one city with two buildings, moving just two tiles outside the starting location, and performing no quests)
Hope it helps.
I've been able to crash the game due to this problem in slightly over 25 moves. Perhaps that's explained by the fact that I do a lot of zooming in and out with the mouse wheel. I'm also on Win 7 64 bit.
Right, update time. Beta 2A.
All of the leaks mentioned in first post are still present.
*) Zooming in/out
There is a huge memory hit on first full zoom out (Caching?) of about 20MB. Each full zoom in to out ( or opposite way ) causes a further hit of 700 to 900 kB, precise figure seems to depend on whether the zoom is fluent or not.
*) Scrolling the map
That's in cloth map mode by dragging the map around method ( Edge scrolling doesn't work in windowed mode ). Memory hit is quite inconsistent. Easiest to observe when no object on the map is selected.
*) Selecting units/objects
Again visible hit on first select of given object ( caching? ) after that 10-30kB per selection change.
*) Kingdom Info screen
One time hit of 40MB. Seems a lot, but then again it's hard to tell exactly what this 40MBs is getting used on.
Moving into 'Dynasty' tab is a hit of 2MB on each visit.
Leaving 'Dynasty' tab is a hit of 300kB
Moving into 'Unit Design' leaks 1,3MB per visit. But that probably includes 300-400kB of memory each time you load an existing design inside the screen.
Leaving 'Unit Design' does not leak.
'Kingdom Report' and 'Research' are memory-tight.
*) Movement
May or may not leak. Hard to tell. Sometimes moving over and over between the same two tiles adds memory by about 20kB a time, sometimes it does not. Seems to depend what kind of tile is shown and hidden behind FOW.
*) Visiting an item shop
One time hit at first visit and then 500kB on each following one.
*) Unit Details screen
700kB each time the window is called regardless of unit type.
*) Buildings and cities
I'd expect some memory to be freed after city is razed. This does not happen. In fact the cities don't even disappear from the HUD/empire tree on the left of the screen.
There are many great features available to you once you register, including:
Sign in or Create Account