I’m trying to learn how to cap my framerate to 60 using JUST Java. I have a simple understanding yet far from perfect or even knowing how to get it working. I just know I need to get the time --> do rendering updates etc --> get the time again. I then need to do something with the difference (lastTime - firstTime) but I’m not sure what.
Any help with game looping and getting/setting the FPS would be much appreciated.
~Shazer2