Coming from a more 'traditional' C++ background so more used to dealing with low level API's rather than something like the flash.display API.
My issue is rather rudimentary, but my searches haven't found a solution.
How does one avoid screen tearing/flickering in the display API? Even with a high framerate like 60 fps I'm experiencing some rather nasty flickering/tearing between frames.
Take the simplistic example below, where the children of the Sprite are merely instances of Shape and never change.
private function onEnterFrame(event:Event):void
{
var t:Number = (getTimer() - time) / 1000;
time = getTimer();
step(t);
}
private function step(t:Number):void {
var speed:Number = 100;
for (var i:uint = 0; i < numChildren; i++){
getChildAt(i).x += speed * t;
getChildAt(i).y += speed * t;
}
}
However, since everyone else is able to do seemingly smooth fast animations I'm sort of puzzled as to how actually do it since it basically seems like a sync issue.