Search code examples
javalwjglframe-rategame-loop

LWJGL Display.update() automatically capping FPS to 60


I am trying to get my game's FPS to go to e.g. 100 and even though I correctly call

Display.sync(100);

The FPS is 60..

Main loop looks like this:

int delta = this.getDelta();
this.update(delta);
this.drawGL();

this.updateFPS();

Display.update(); // Automatically caps FPS to 60--unwanted
Display.sync(100); // And yet FPS is 60

I should add that completely removing Display.sync(100); makes no difference to the FPS..


Solution

  • This is machine-specific. Running on different machine solved it.

    Thank you