diff options
author | Michael Turvey <mwturvey@users.noreply.github.com> | 2017-04-30 22:22:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-30 22:22:55 -0700 |
commit | 3560f3c7e397c0dd2bcadaeb028b8a9fdcb17096 (patch) | |
tree | d25775c7afcf0e34674858aec9352a9b73e5d9ef | |
parent | 4fcff4d62c1b32911d64ee305c16f26ff0dc218d (diff) | |
download | libsurvive-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%
-rw-r--r-- | src/poser_turveytori.c | 2 |
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. |