Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

Drawing efficiency
Started by qwertier Nov 28 2013 11:14 PM

No replies to this topic
efficiency newline newrect
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Enthusiast

  • 61 posts
  • Enterprise



I have a question about drawing efficiency differences between several objects.


Let's imagine that I would like to create a rectangle under a small perspective. Which would be more efficient, a display.newLine (using append) or a display.newRect (using paths) object?


I have tried both objects and it seems as if the display.newLine renders a bit faster compared to a distorted rectangle.


Maybe a Corona dev (or others) could clarify the efficiency of the different display objects and whether the 2.5D engine operations are as efficient as hard-coding a line with the append method...


Thanks in advance!



Kind regards,