THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/06/2010 at 09:36, xxxxxxxx wrote:
Cinema 4D Version: R9-10
Platform: Windows ;
Language(s) : C++ ;
There seems to be an issue specific to Windows in R9 and R10, which is causing problems with my tag. In the Execute() function, it's calling a function to integrate the object's state, incrementing the delta time in a while loop until the time is equal to the difference between the previous frame and the current frame. Everything works fine until I navigate the view (move, rotate or zoom) while the animation is running, which causes the object to zoom out into infinity. It's a bit difficult to debug, because once I add GePrint() statements to track the object's state, the problem disappears and navigating the view while the animation is running seems fine.
It's not a problem on Mac OS, nor is it a problem in R10.5+ on Windows. It is specific to R9 through R10 on Windows.
I've added current/previous frame comparison and current/previous GeGetTime() comparison, but the problem is still there, although now the object simply blinks while navigating, and then disappears when the mouse button is released.
The object goes back to normal once the timeline rewinds to the beginning, because that's when the object's start state is reinitialized.
It almost seems like the calls to the tag's Execute() function are being doubled or tripled when navigating the view?
What do I need to do to fix it?