How can I fix stuttering. Is it due to unoptimized code?

Hello,

I did not get to the stuttering… not get a quick response here to the “space” bar so could not play for any length of time.

This will show frameRate in title bar:

surface.setTitle("FrameRate: " + frameRate); //Set the frame title to the frame rate

From this example of an optimization:

I have not scrutinized the code.

That example may not apply in your case; it just illustrates that sometimes there is room for improvement.

:)

1 Like