Sorry, I have no ideas how to change your times for the program. The timePassed values for the latest program:
// [10, 0, 0, 0, 0, 233, 384, 77, 85, 190, 89, 15, 8, 6, 7, 2, 6, 1, 1, 0, 2, 3, 1, 2, 2, 1, 4, 2, 30, 18]
Printable View
Sorry, I have no ideas how to change your times for the program. The timePassed values for the latest program:
// [10, 0, 0, 0, 0, 233, 384, 77, 85, 190, 89, 15, 8, 6, 7, 2, 6, 1, 1, 0, 2, 3, 1, 2, 2, 1, 4, 2, 30, 18]
You need more than a "method from mainclass". When you call a method of an object you usually do this to alter that object's behavior or state or to query its state, and what matters most and in fact what matters completely is the state and the behavior of the mainclass object that is currently being displayed, not some random mainclass instance that you create for the sole purpose of calling a method.
ok thank you anyway, I'll try on other computers...
Where are your image resources? Can you up load these?
sure, the background is just a yellow rectangle
http://i48.tinypic.com/mto5kg.png
and here's the ball
http://i49.tinypic.com/16c27a8.png
I tried on my father's computer, an old toshiba laptop, and it runs at 60 fps, this makes me angry >:(
does the fact that I use OSX affect the animation in any way?
someone told me to "enable hardware acceleration" to solve this problem...does anyone have any clue on how to do that?
Also posted at slow java on my computer
Not a crime. But it is courteous to post links to other sites where the the topic is posted so everyone can see what progress is being made.
I didn't make it cause as far as I know posting a link to another website (rival, i think) on a forum is considered as spam...