Welcome to קודגורו Sign in | Join | Faq

אקסטרים

Started by aantn at 02-11-2009 6:12. Topic has 5 replies.

Print Search
Sort Posts:    
   02-11-2009, 6:12
aantn is not online. Last active: 3/11/2009 9:40:13 PM aantn

Top 10 Posts
Joined on 02-02-2009
Posts 16
Memory Leak in the Game Engine
Reply Quote
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 is not online. Last active: 6/15/2010 8:19:10 PM GalDor

Top 10 Posts
Joined on 09-09-2008
Posts 34
Re: Memory Leak in the Game Engine
Reply Quote
This never happened to me. How much RAM do you have?
   Report 
   02-11-2009, 8:44
aantn is not online. Last active: 3/11/2009 9:40:13 PM aantn

Top 10 Posts
Joined on 02-02-2009
Posts 16
Re: Memory Leak in the Game Engine
Reply Quote
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 is not online. Last active: 3/11/2009 9:40:13 PM aantn

Top 10 Posts
Joined on 02-02-2009
Posts 16
Re: Memory Leak in the Game Engine
Reply Quote
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 is not online. Last active: 3/11/2009 9:40:13 PM aantn

Top 10 Posts
Joined on 02-02-2009
Posts 16
Re: Memory Leak in the Game Engine
Reply Quote
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 is not online. Last active: 6/15/2010 8:19:10 PM GalDor

Top 10 Posts
Joined on 09-09-2008
Posts 34
Re: Memory Leak in the Game Engine
Reply Quote
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 
קודגורו » פורומים » אקסטרים » Re: Memory Leak in the Game Engine

Powered by Community Server, by Telligent Systems