New answers tagged timing
2
votes
Why are Time.realtimeSinceStartup and Time.realtimeSinceStartupAsDouble so slow when called repeatedly?
High resolution timers on Windows have always been somewhat slow to query. I found a 20 year old Dr Dobbs article, that reports QueryPerformanceCounter() being around 88 times slower than GetTickCount(...
2
votes
Why are Time.realtimeSinceStartup and Time.realtimeSinceStartupAsDouble so slow when called repeatedly?
I would not use either of these Time properties for timing a loop.
For that, you should use a Stopwatch. It's designed expressly for the purpose of timing how long ...
Top 50 recent answers are included
Related Tags
timing × 62unity × 11
game-loop × 11
c++ × 10
c# × 7
animation × 7
timer × 7
java × 4
collision-detection × 4
2d × 3
javascript × 3
input × 3
sdl × 3
timestep × 3
glut × 3
realtime × 3
xna × 2
libgdx × 2
android × 2
physics × 2
game-design × 2
algorithm × 2
directx × 2
multiplayer × 2
optimization × 2