Buffering objects to a surface

Hi all

I am writing a drawing app. I have a problem with sluggish performance after many lines have been drawn. All lines remain as vectors in the scenegraph… Is there any method in corona to buffer these objects onto a single bitmap for example? Much like Frame buffer objects in OpenGL?

Thanks [import]uid: 136578 topic_id: 25860 reply_id: 325860[/import]

In our game Wordoodle - http://itunes.apple.com/us/app/wordoodle/id518019091?mt=8 - we had a similar issue with performance and came up with a “good enough” solution.

Essentially when we got to a certain number of lines ( just trial and error on devices to get a nice number for each of them ), we take a screenshot of the current canvas, remove all the vector shapes and replace it with just the screenshot and then allow them to continue drawing. There is a very small lag for less than a second when it happens but we decided it was acceptable.

If anyone has any better solutions to this we would be very happy to hear them. [import]uid: 119420 topic_id: 25860 reply_id: 104628[/import]