Timeline for Game object appears to accelerate too slowly
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 2, 2018 at 16:44 | comment | added | Ryan1729 |
Have you tried printing out curTime - lastTime ? I think it will be longer than a second. I think you are getting 60 updates but they are taking longer than a second to happen, causing the slowness.
|
|
Jul 2, 2018 at 15:13 | comment | added | Fruot | I edited the code I provided to reflect a frame and update counter that I added. It seems that the loop is updating and rendering 60 times as desired. I also experimented with changing the original numbers for target frames and updates, and the counter changed accordingly. | |
Jul 1, 2018 at 16:34 | history | answered | Ryan1729 | CC BY-SA 4.0 |