Ok, so I’m playing around with DrawScript and I’m writing a LUA wrapper so that I can import images from Illustrator (through DrawScript) directly into Corona.
There might be another way to draw the objects but here is how I do it now:
I have an image with a lot of Bezier curves and I import them from a JSON file. After that I calculate the different points (through Rajendras excellent snippet: https://github.com/neostar20/Bezier-Curve-for-Corona-SDK/blob/master/bezier.lua ) and then I draw diffrent circles for all the different points and they are a lot.
Why do I do it like this? It’s because later on I draw up the image on the screen.
So, can I make it so it doesn’t consume to much memory as it starts lagging after a while?
I precache all the circles i.e. move them on-screen and then off-screen.
I’m trying out snapshot right now but it doesn’t seem to affect the performance that much.
Does anyone know how I can draw a lot of objects without the application lagging?
Thanks in advance,
Best regards,
Tomas