|
|
אקסטרים
Started by aantn at 02-11-2009 6:12. Topic has 5 replies.
 
 
|
|
Sort Posts:
|
|
|
|
02-11-2009, 6:12
|
aantn
Joined on 02-02-2009
Posts 16
|
Memory Leak in the Game Engine
|
|
|
|
|
The game engine seems to leak memory every match. (By "match," I'm referring to one game with 4 players.)
After 100 matches the game engine slows down significantly. If I try running 1000 matches, Java eventually throws an exception when the game runs out of memory.
Can anyone else confirm this? If I have time, I might try to write a patch to fix this issue.
|
|
|
|
|
Report
|
|
|
|
02-11-2009, 7:53
|
GalDor
Joined on 09-09-2008
Posts 34
|
Re: Memory Leak in the Game Engine
|
|
|
|
|
This never happened to me. How much RAM do you have?
|
|
|
|
|
Report
|
|
|
|
02-11-2009, 8:44
|
aantn
Joined on 02-02-2009
Posts 16
|
Re: Memory Leak in the Game Engine
|
|
|
|
|
Only 512 mb, but it shouldn't make any difference. The game engine still shouldn't leak memory as time goes on.
|
|
|
|
|
Report
|
|
|
|
02-11-2009, 8:49
|
aantn
Joined on 02-02-2009
Posts 16
|
Re: Memory Leak in the Game Engine
|
|
|
|
|
Just to clarify, the first 100 matches run in a few seconds. The next hundred (100-200) take longer to run and by the time that I reach the 800th match it takes a few seconds to run each individual match.
GalDor,
Can you confirm the slow down?
|
|
|
|
|
Report
|
|
|
|
02-11-2009, 8:51
|
aantn
Joined on 02-02-2009
Posts 16
|
Re: Memory Leak in the Game Engine
|
|
|
|
|
Actually, it seems like I can't confirm the slowdown 100% of the time. I'll look into this a bit more and post if I find something.
|
|
|
|
|
Report
|
|
|
|
02-11-2009, 10:46
|
GalDor
Joined on 09-09-2008
Posts 34
|
Re: Memory Leak in the Game Engine
|
|
|
|
|
I've had no slowdown whatsover. Furthermore, the engine is written in java, which has an automatic garbage cleaner, so I can't see how there can be any leaks (I have read the code - it doesn't do anything that might cause a leak in a garbage collected language, such as keep an array that grows with each match or something. The code's quite simple and elegant...). Is it possible that this has something to do with your system?
|
|
|
|
|
Report
|
|
|
|
|
|