store delta time instead of last frame time