mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 08:56:36 +02:00
get rid of magic number
This commit is contained in:
parent
977b730fc0
commit
00fa5480c1
1 changed files with 2 additions and 1 deletions
|
@ -633,9 +633,10 @@ void* animateVoxels(void* args) {
|
|||
uint64_t now = usecTimestampNow();
|
||||
uint64_t animationElapsed = now - lastAnimateTime;
|
||||
int withinAnimationTarget = ANIMATE_VOXELS_INTERVAL_USECS - animationElapsed;
|
||||
const int CLOSE_ENOUGH_TO_ANIMATE = 2000; // approximately 2 ms
|
||||
|
||||
int animateLoopsPerAnimate = 0;
|
||||
while (withinAnimationTarget < 2000) {
|
||||
while (withinAnimationTarget < CLOSE_ENOUGH_TO_ANIMATE) {
|
||||
processesPerAnimate = 0;
|
||||
animateLoopsPerAnimate++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue