From 3560f3c7e397c0dd2bcadaeb028b8a9fdcb17096 Mon Sep 17 00:00:00 2001 From: Michael Turvey Date: Sun, 30 Apr 2017 22:22:55 -0700 Subject: 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% --- src/poser_turveytori.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/poser_turveytori.c') 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. -- cgit v1.2.3