Results 1 to 2 of 2
- 10-15-2012, 08:57 PM #1
Member
- Join Date
- Oct 2012
- Posts
- 1
- Rep Power
- 0
Netbeans runs better than compiled file
Hi everyone, i have an issue with a "game" i'm making...
The game have a graphical interface builded with canvas, it has 2 threads, and both have something like:
My problem is that when i run it in netbeans the average milliseconds the game uses to "render" is 25. But when i build and run the jar file the average time to render is even more than 80...Java Code:long startTime,endTime,Timeslice=40; while(true){ startTime=System.currentTimeMillis(); doStuff(); endTime=System.currentTimeMillis(); Thread.sleep(Math.max(timeSlice + startTime - endTime, 0)); }
So the game runs perfectly with netbeans but the jar runs verry badly.
- 10-23-2012, 10:24 AM #2
Member
- Join Date
- Jul 2012
- Location
- Earth
- Posts
- 75
- Rep Power
- 0
Similar Threads
-
examples of projects of database using java programming that runs in netbeans.,pls.
By bong in forum Java GamingReplies: 0Last Post: 07-21-2011, 10:06 AM -
project runs in netbeans but .jar wont work
By Zeo7 in forum New To JavaReplies: 3Last Post: 12-16-2010, 04:21 PM -
Jar file wont run but runs in netbeans
By ArmenBaba in forum NetBeansReplies: 14Last Post: 08-24-2010, 05:04 PM -
Opening file, runs in NetBeans but CommandPrompt
By fauzilhaqqi in forum NetBeansReplies: 2Last Post: 12-15-2008, 03:48 AM -
Program Runs in NetBEans but Not in cmd
By MeathUltra in forum NetBeansReplies: 1Last Post: 12-09-2008, 05:38 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks