Results 1 to 5 of 5
- 05-13-2011, 01:10 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 54
- Rep Power
- 0
How do I reduce lag in a java game that I am making?
I am making a game in Java. It works without lag as long as i keep playing it. If i die and restart the game, i starts lagging, if i die and restart the game again, it lags even more. lag gets worser each time you restart. I cannot provide the code. But i think the problem is that i am not properly disposing the objects after each restart. How can i dispose the objects in a JPanel?
Sorry for the limited info, help would be appreciated
-
Last edited by Fubarable; 05-13-2011 at 01:38 AM.
- 05-13-2011, 01:39 AM #3
Best I can figure is that there's a list somewhere that isn't reset and still keeps references to the old objects. But without code, it's impossible to say which list, or if it even is that way.
-
Heck, we've already been through this same game before with you:
How to stop lagging in a JPanel?
- 05-13-2011, 03:24 PM #5
Member
- Join Date
- Nov 2010
- Posts
- 54
- Rep Power
- 0
Similar Threads
-
Making a breakout Game
By JavaIsSoEasy?? in forum Java GamingReplies: 0Last Post: 03-05-2011, 10:52 AM -
Making hangman game
By Snow_Fox in forum New To JavaReplies: 0Last Post: 11-29-2010, 09:42 PM -
Game making help
By Mrkantaloupe in forum New To JavaReplies: 2Last Post: 07-13-2010, 10:15 PM -
need help making a game board
By Don k in forum New To JavaReplies: 2Last Post: 04-30-2010, 12:09 AM -
Java Applet Help - Making "Snake" Game
By Alphimeda in forum Java AppletsReplies: 15Last Post: 04-04-2010, 05:39 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks