My Game's Framerate (Am I paranoid?)

I attempted to run your game, and unless I do it from Command Line, I get a WSOD (White Screen of Death?).

Slick’s pretty easy to run with and it comes with a lot of stuff that can be helpful to you, like the various stuff for controlling the frame rate, etc. And it has an extension for the lovely TWL GUI system, which can make a lot of things easier.

LibGDX is a personal favorite right now, mainly because I recently got myself an Android phone and it makes writing/testing things for the Android easier than trying to dig through LogCat. However, learning its built in UI system can lead to some fun do to the dearth instructions and the like (Though, just reading the sparse Javadocs and the actual code can teach you a lot about it).

I started with Java2D as well and added/switched to OpenGL with LibGdx at some point. That was relatively easy and worth it.

But before doing so, it would make very much sense to identify your problems first, otherwise you could end up with the same problems after porting.
I never encountered hiccups with Java2d.
Could be that suspicious OpenGl-switch, wrong usage of sleep() calls, using unmanaged images, creating too much garbage, bad algorithms, testing on ancient machines, anything…

After running your game for about 1 minute there was a huge amount of garbage created:
~ 500MB for double[]
~ 100MB for java.awt.Dimension

That is way too much for a ball and a background. I didnt’ even move the ball. I would first check that. Even the best garbage collectors reaches its limits at some point. And that’s not Java’s fault or that of the GC principle.

Alright, I’m gonna just shelf what I have currently even tough it pains me to do so to no end… For the time being, I’ll pick up slick. I’m used to developing games without focusing too much on what’s going on under the hood, so I guess it’s in my best interest to pick that up. When I become more experienced with the topic, I definitely WILL invest more time into rendering graphics on my own. Thanks again for the quick responses! I was just looking for an opinion, but I got an entire diagnosis!

HTML5!? OMG!
:slight_smile: !!!

anyone tried this?

Yup, you can find their demos on their website.