Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

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

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

qwertier

[GLOBAL: userInfoPane.html]
qwertier
  • Enthusiast

  • 61 posts
  • Enterprise

Hey,

 

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,

 

qwertier




[topic_controls]
[/topic_controls]