Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Performance tip?
Started by post.developer Jul 18 2019 08:01 AM

No replies to this topic
optimization performance
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

post.developer

[GLOBAL: userInfoPane.html]
post.developer
  • Observer

  • 1 posts
  • Corona SDK

Hello! In one of the old topics with performance tips, I read that you have to cache object data, for example, position and then use it in other functions:

function object:enterFrame(event)

-- then use these variables in other places
object.cachedX = object.x
object.cachedY = object.y

end

Is this relevant to this day?




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: optimization, performance