Reputation: 10276
I have to decide whether JavaFX (2) is the correct UI toolkit for a gaming platform we're about to build. The games are simple 2D games, nothing very fancy, but for the user experience it is important that the games look "smooth".
Currently, I'm having some concerns about the frame rate exhibited by a simple test application (moving some sprites in ImageViews around).
PerformanceTracker.getAverageFPS()
or the JavaFX Balls demo application) does not go down (in fact, the reported number even goes up by a couple frames: normally it's running around ~128fps, when the animation looks like it's stuttering the reported fps is ~131). This is with javafx.animation.fullspeed=true
.Does anyone have any idea where this poor performance comes from? Is it immaturity of the platform or some inherent limitation? Is JavaFX a poor basis for a (simple 2D) games platform and is there no other solution than to drop down to C++ with OpenGL acceleration?
Upvotes: 1
Views: 1187
Reputation: 17131
No reason that JavaFX would cause the issue you are describing.
It sounds very much like you have mismatched graphics cards, is this the case?
Upvotes: 0