Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the texture cache need to update if only dynamic properties were changed (opacity / transforms) #4216

Open
fschutt opened this issue Jan 16, 2021 · 1 comment

Comments

@fschutt
Copy link
Contributor

fschutt commented Jan 16, 2021

  • If I animate properties, I already skip the scene builder (because nothing has changed in the scene), but can I also skip calling renderer.update()?
  • How are transforms handled internally - can I just add a transform to any node (so that I don't have to rebuild the display list if a user decides to animate a random node) or would that incur a performance hit?
  • Is it possible to bind a dynamic color property to a gradient?
@kvark
Copy link
Member

kvark commented Jan 18, 2021

If I animate properties, I already skip the scene builder (because nothing has changed in the scene), but can I also skip calling renderer.update()?

There is scene building, and there is frame building following that. Both occur in "render backend". Calling update is necessary to receive that rebuilt Frame, even if the backend skipped the scene building.

How are transforms handled internally - can I just add a transform to any node (so that I don't have to rebuild the display list if a user decides to animate a random node) or would that incur a performance hit?

Good question! I'm not seeing any sources of overhead associated to this. @gw3583 do you recall any?

Is it possible to bind a dynamic color property to a gradient?

If not, you can make a PR to do this. I expect this to be straightforward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants