>>1489725Hey, thanks for responding.
>but I don't know how much of that was written by you and how much was copypasted so I'll cover my basesDefinitely got my fair share of help from Stackoverflow on the steps to construct a simple game loop. Didn't know where to begin, honestly.
>which works out to be 150 per second no matter what instead of 150 per frameAhh, thank you for explaining delta time for me. I did read about that but didn't understand the purpose of it.
So it just smooths out the gameplay so a player entity (for instance) doesn't slow down or speed up depending on framerate?
>should go into an else{} after you check that it's <0if (remainingTime < 0) {
remainingTime = 0;
} else {
remainingTime = remainingTime / 1000000;
}
Like this, right? Agreed that saving this computation doesn't make or break any modern CPU, but hey, best practises.
Just doing this stuff on my freetime because I want to get better at Java. Only had Python in college mostly for math.