Time accumulation is a technique to create dynamic graphical applications that render smoothly over time. I've created example pseudocode below:
// Frame-independent tick cycles for games, simulations, other dynamic UI applications
DT = 0.01;
private void tick() {
deltaTime = currTime - prevTime;
dt_accumulator += deltaTime;
while (dt_accumulator >= DT) {
update();
dt_accumulator -= DT;
}
render();
}
Built With
- pseudocode
Log in or sign up for Devpost to join the conversation.