View Single Post
  #109  
Old 11-05-2011, 11:12 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Just throwing this out there, but there seems to be garbage collection issues when there are large amounts (20k?) of TStaticVars.

It seems like it decides to do the GC cycle whenever you click the mouse or move the mouse out of the screen, and the TStaticVars all survive until that cycle, then the CPU is pegged at full load for ages.

Of course, the solution is to manually destroy() the TStaticVar when it is no longer needed, but I feel like there should be nicer GC being done that doesn't choke entirely on what is not a large amount of memory usage.

Quote:
Stats:
System:
Time: Sat Nov 5 00:57:55 2011
Client-version: 6.011
OS: linux 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011
CPU: x86

Memory (in bytes):
Total: 29261456
Bitmaps: 1051648
Drawing panels: 1204224
Textures (possibly in video RAM): 2695168

Game engine profiler:
Measured time: 41.655651092 seconds
Ordered by non-sub total time:
%NSTime % Time Invoke # Name
57.035 57.035 4 GarbageCollector
...
Reply With Quote