Altitude Game: Forums  

Go Back   Altitude Game: Forums > Altitude Support > Suggestions
FAQ Community Calendar

Suggestions Post ideas and suggestions here.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2010, 07:12 PM
QauNuckShin QauNuckShin is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Default System.gc()

I had a boring lecture today, and decided to fire up Altitude on my netbook. It's actually working pretty well. However, I get these random (temporary) freezes from time to time. Not very often, but sometimes at inconvenient times. I'm wildly theorizing that this is caused by garbage collection being done in the background by the java vm.

I have one minor suggestion: please call System.gc() right after you die (like, when the "you were killed by..." popup is shown), to suggest to the vm that it's a good time to do some cleaning up.

It's not guaranteed to help, and if it helps it won't remove all occurences of the freezes. But it's a tiny change, and there is a chance.
Reply With Quote
  #2  
Old 01-19-2010, 08:04 PM
lamster lamster is offline
Administrator
 
Join Date: May 2008
Posts: 1,655
Default

Edit ~Altitude/config/options.xml and on the <generalOptions... line change:

garbageCollectOnSpawn="false" to garbageCollectOnSpawn="true"
Reply With Quote
  #3  
Old 01-20-2010, 11:42 AM
QauNuckShin QauNuckShin is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Default

Hooray, thanks!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:03 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
2008 Nimbly Games LLC