We are about to switch to a new forum software. Until then we have removed the registration on this forum.
My goal is to achieve 60fps consistently. If I set frameRate(100); it never drops below 60 - so the program is capable of runnung fast enough. The problem is though on either setting - frameRate(60 and frameRate(100) - there are noticeable "jumps" of the frame rate. It will be at 55 at one point and then at 65 a fraction of a second later. This leads to a stuttery and not so smooth outcome. I use the default renderer and I only need to render a couple of dozen shapes and text for the framrate.
Are there any tricks and tips to achieve a more consistent framerate? Any idea why this inconsistency occurs?
P.s.: I also noticed something very strange. If I let another java program run in the background (it's actually a trident project, but I don't think it's relevant) the framerate could not be more stable. Even on frameRate(100) it never even drops 1 fps above or below 100. I assume it may have to do with a second CPU core beeing used or sth like that. But I suspect there could be more going on, it's uncanny how it jumps a good 3-10 fps at one point and as soon as I open the second java program it's crazy stable. When I close the program it's starting to stutter again like before.