Issue with sprite rotation distortion and need advice on speed of rotation

Oh I see :slight_smile: is there any reason for the tick implementation over a simple float that adds on the delta time? I’m just asking so I understand correctly. This is what i’m talking about:


public class Timer{
    private float time;
    
    public void update(){
        time += Gdx.graphics.getDeltaTime();
       
        if(time >= 1f){
             time = 0;
             System.out.println("Time reached");
         }
    }
}

It doesn’t really matter for singleplayer games, but it matters the most in multiplayer games where you can’t spam movement packets 60 times a second. I have to limit it to 20 per second and interpolate the positions in-between frames.

Also, that snippet of code in your reply was essentially my tick counter, albeit with (1f / TICKS where TICKS is 20). I changed it to nano-second time for precision.