Hello Guest

Better way to handle garbage collection?

  • 18 Replies
  • 18783 Views
Better way to handle garbage collection?
« Reply #15 on: October 12, 2006, 17:41:52 »
I just uploaded a new version of the demo... so please feel free to try it again and let me know if the stuttering is still there. I tried reducing yet more of my resource usage.
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

Re: Better way to handle garbage collection?
« Reply #16 on: December 13, 2006, 01:10:51 »
I don't know about stuttering or anything since I haven't played it that much...however the game looks really cool. Kinda like a souped up asteroids (which is a good thing). It also reminds of this old Star Trek game I played many years ago. I don't quite remember the name of it though.
Well, the point is...really cool work.
Imagination is more important than knowledge.
-Albert Einstein

*

Offline erikd

  • *
  • 21
    • http://www.mycgiserver.com/~movegaga
Re: Better way to handle garbage collection?
« Reply #17 on: February 05, 2007, 12:31:24 »
before suspecting GC, you could run with -verbose:gc. Maybe the problem isn't gc at all.

*

Offline bobjob

  • ****
  • 394
  • LWJGL: WOW SO GOOD
Re: Better way to handle garbage collection?
« Reply #18 on: March 04, 2007, 17:42:49 »
umm had a similar problem with my apps, wasnt the gc though, it was the threads, I lowed the priority of less important threads(as i was networking so i had a few)like listening thread as it was tcp, and only slept the main game server thread interval minus clocktime, then sent an update 2 the other threads 2 do there thang. and sleeped them for only (1) if they hadnt been updated, done wonders for performance dont know if its a good thing 2 do