capping delta time to 30 ms