aboutsummaryrefslogtreecommitdiff
path: root/src/poser_turveytori.c
diff options
context:
space:
mode:
authorMichael Turvey <mwturvey@users.noreply.github.com>2017-04-30 22:22:55 -0700
committerGitHub <noreply@github.com>2017-04-30 22:22:55 -0700
commit3560f3c7e397c0dd2bcadaeb028b8a9fdcb17096 (patch)
treed25775c7afcf0e34674858aec9352a9b73e5d9ef /src/poser_turveytori.c
parent4fcff4d62c1b32911d64ee305c16f26ff0dc218d (diff)
downloadlibsurvive-3560f3c7e397c0dd2bcadaeb028b8a9fdcb17096.tar.gz
libsurvive-3560f3c7e397c0dd2bcadaeb028b8a9fdcb17096.tar.bz2
Reduce Poser Calls
I've been seeing starvation that manifests itself as weird light data coming into the disambiguator. A major cause ended up being starvation. This change will cut the frequency of poser calls by by 75%
Diffstat (limited to 'src/poser_turveytori.c')
-rw-r--r--src/poser_turveytori.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poser_turveytori.c b/src/poser_turveytori.c
index c526161..7abf5d0 100644
--- a/src/poser_turveytori.c
+++ b/src/poser_turveytori.c
@@ -1520,7 +1520,7 @@ int PoserTurveyTori( SurviveObject * so, PoserData * poserData )
counter++;
// let's just do this occasionally for now...
- //if (counter % 1 == 0)
+ if (counter % 4 == 0)
QuickPose(so, 0);
}
// axis changed, time to increment the circular buffer index.