Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

display.setDrawMode
Started by Quantumwave Aug 09 2013 12:44 PM

3 replies to this topic
[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

Quantumwave

[GLOBAL: userInfoPane.html]
Quantumwave
  • Contributor

  • 103 posts
  • Corona SDK

Is there any docs for display.setDrawMode()? Other than "forceUpdate" as a parameter, what other options are there?

 

Thanks,

Dave

 



[TOPIC: post.html]
#2

admin

[GLOBAL: userInfoPane.html]
admin
  • Administrator

  • 68 posts
  • Administrators

The docs still need updating.

 

If you use a filter that's time-based (e.g. "filter.wobble"), there's technically no invalidation of any display object, so Corona doesn't know it needs to render the scene to let the filter vary over time. "forceUpdate" is a very heavy hammer for the following situation. Eventually, we'd like to make it smarter so that if there is a filter that's time based, Corona knows to update, but for now, we're pushing the responsibility to you all :)

 

The other mode that's interesting is "wireframe". It's very similar to the physics debug draw modes, which we're also considering adding as parameters, but we haven't decided if they are orthogonal to these draw modes yet.



[TOPIC: post.html]
#3

Quantumwave

[GLOBAL: userInfoPane.html]
Quantumwave
  • Contributor

  • 103 posts
  • Corona SDK

Does it matter where this is used (e.g. as the app starts, in enterframe...etc.)? And is it a one-time setting?

 

Thanks,

Dave



[TOPIC: post.html]
#4

admin

[GLOBAL: userInfoPane.html]
admin
  • Administrator

  • 68 posts
  • Administrators

No, it's a dynamic setting




[topic_controls]
[/topic_controls]