1
vote
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(...
1
vote
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
c# × 8456unity × 5707
xna × 1400
2d × 482
monogame × 401
collision-detection × 331
physics × 280
xna-4.0 × 260
rotation × 241
movement × 188
camera × 187
3d × 179
mathematics × 166
animation × 161
gui × 151
input × 131
architecture × 111
shaders × 106
vector × 106
sprites × 105
transformation × 102
optimization × 102
android × 100
raycasting × 95
gameobject × 95