Minimum update time is 144FPS

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 3 years ago committed by GitHub
parent 27d5e9ec64
commit 8d26b031cd
  1. BIN
      bin/RabiClone.jar
  2. 2
      src/sig/RabiClone.java

Binary file not shown.

@ -90,7 +90,7 @@ public class RabiClone{
while (true) {
long timePassed = System.nanoTime()-lastGameTime;
lastGameTime=System.nanoTime();
double updateMult = Math.min(1/60d,timePassed/1000000000d);
double updateMult = Math.min(1/144d,timePassed/1000000000d);
handleGameControllers();

Loading…
Cancel
Save