Nuclear Nezz 2051 Share Posted February 3, 2015 The client doesn't run at 300+MB with no script. Your memory usage goes up to 1GB+ because you have your memory settings (the launcher) set that high. If you lower it, it will garbage collect more often and bring the memory back down. But I'd guess your memory is jacked because you have essentially two script threads running. Which is gross, by the way. Your anti thread handles banking. ._. Link to comment Share on other sites More sharing options...
Botre 27 Share Posted February 3, 2015 List<GameObject> objects = s.getGameObjects().getObjects(); List<GameObject> filtered = new ArrayList<>(); // FILTER LOOP // SET "OBJECTS" TO NULL GameObject chosen = filtered.get(randInt(0,filtered.size()-1)); // SET "FILTERED" TO NULL Link to comment Share on other sites More sharing options...
The Hero of Time 8 Share Posted February 3, 2015 Gf for me Link to comment Share on other sites More sharing options...
Takeoff 17 Share Posted February 4, 2015 curious what data you collect Link to comment Share on other sites More sharing options...
Explicit 213 Share Posted February 4, 2015 List<GameObject> objects = s.getGameObjects().getObjects(); List<GameObject> filtered = new ArrayList<>(); // FILTER LOOP // SET "OBJECTS" TO NULL GameObject chosen = filtered.get(randInt(0,filtered.size()-1)); // SET "FILTERED" TO NULL Why would he explicitly set a null reference when once the call stack unwinds it'll lose the reference anyway.... Link to comment Share on other sites More sharing options...
Botre 27 Share Posted February 4, 2015 Why would he explicitly set a null reference when once the call stack unwinds it'll lose the reference anyway.... To make the lists eligible for garbage collection (assuming they are the ones clogging up the memory)(?) I don't know much about the JVM or garbage collection, if I'm wrong please tell me Link to comment Share on other sites More sharing options...
Explicit 213 Share Posted February 4, 2015 To make the lists eligible for garbage collection (assuming they are the ones clogging up the memory)(?) I don't know much about the JVM or garbage collection, if I'm wrong please tell me All a reference variable holds is a reference to the objects data out on the heap, not the actual object itself. The GC works by examining all current object references and, at the end of the reference collection, deems any objects data which was not examined as "garbage". To visually represent this: As the variable goes out of scope once the method returns and both objects have their references removed they are then eligible for garbage collection. Note that they are eligible, the collector will decide in it's own time when to do a sweep. For more info: http://javabook.compuware.com/content/memory/how-garbage-collection-works.aspx Link to comment Share on other sites More sharing options...
basedbarry 1 Share Posted August 6, 2015 The .jar is no longer on megashare, is there a place I can find it? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.