get rid of magic number

This commit is contained in:
ZappoMan 2013-11-10 13:52:40 -08:00
parent 977b730fc0
commit 00fa5480c1

View file

@ -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++;