Why does this happen? PhyUnfTim decreases, causes movement error
by Ezra · in Torque Game Builder · 03/18/2006 (3:53 pm) · 2 replies
I've been noticing a weird behavior, after 20 or so seconds of running my game, the camera or possibly just objects using physics begin to glitch out with their movement. It can best be described as drawing a frame or two of where the object was, and then popping back to where it should be.. so you get this laggy glitching flicker behind objects..
I've just realized it occurs when PhyUnfTime decreases below 0.01, once it gets that low it begins cycling from 0.005 and then back to 0.01 which causes this glitchy behavior.. If I set the $timescale to 2.0 or something, and then back to 1.0 it resets PhyUnfTime to 1.0 and then it slowly begins dropping back down to 0.01 - 0.005
are my physics settings totally messed up or something??
I've just realized it occurs when PhyUnfTime decreases below 0.01, once it gets that low it begins cycling from 0.005 and then back to 0.01 which causes this glitchy behavior.. If I set the $timescale to 2.0 or something, and then back to 1.0 it resets PhyUnfTime to 1.0 and then it slowly begins dropping back down to 0.01 - 0.005
are my physics settings totally messed up or something??
About the author
Torque Owner Ezra
I have $Pref::timeManagerProcessInterval = 15; so that the max FPS hovers just around 60...
but I had the PhysicsTargetFPS set to 60.. and I guess it was somehow falling behind when the fps would be greater than 60.. so raising the physicsTargetFPS to 70 solved everything.