I have recently followed and completed this tutorial . I am now trying to make my own application based on the guidance of the tutorial. The tutorial sets up a package with classes for framework, framework implementation, and then the actual game code. With two images being used as a scrolling background my game stutters every couple of seconds. I couldn't find anything in the tutorial about controlling fps. My question is would setting a max fps fix my problem and if so could someone show me an example of what it should look like. I apologize if this is a stupid question this is my first attempt at making an application in java and I have no formal instruction.