[AS3] So, getting rid of tearing!

Hello,

okay so here is the deal, I’ve been trying to get rid of my incredibly annoying tearing for a while now, and I simply don’t know what to try anymore, it just wont go away!

I’ve tried switching around the tween timers (TweenMax), changing my frame rate and I’ve implemented something like a double buffer (I think…), but I’m still seeing tearing! :frowning:

I’ll post my rendering function, as it seems to be the most appropriate:

[AS]
private function render(evt:Event = null):void
{
// This is a bitmapData object instantiated earlier in the class
internal_backBuffer.fillRect(new Rectangle(0, 0, internal_backBuffer.width, internal_backBuffer.height), internal_bgFill);

var len:int = internal_displayList.length;
for(var i:int = 0; i < len; i++)
{
	if(internal_displayList*.hidden) continue;
	internal_backBuffer.copyPixels(internal_displayList*.bitmapData, internal_displayList*.bitmapData.rect, new Point(internal_displayList*.x, internal_displayList*.y));
}

// This bitmapData object is tied directly to the class itself (which extends the Bitmap class)
// Basically this.bitmapData = internal_bitmapData;
internal_bitmapData.copyPixels(internal_backBuffer, internal_backBuffer.rect, new Point(0, 0));

}
[/AS]

Any tips? If further code is needed, I’ll post whatever you need.

edit Right now I have the frame rate set to 24, I’ve got TweenMax moving the object by 200y over 1 second… If that changes anything

Matt