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

Component reuse (like texture reuse) #376

Open
lmatteis-wm opened this issue Apr 4, 2022 · 0 comments
Open

Component reuse (like texture reuse) #376

lmatteis-wm opened this issue Apr 4, 2022 · 0 comments

Comments

@lmatteis-wm
Copy link

In Lightning there's logic to reuse textures and garbage collection mechanism to free unusued textures and reuse them when possible since it's quite computationally intensive to re-create them all the time.

We've noticed that extensive computation is also caused by component instantiation. Hence we were wondering whether similar logic could be applied to components instances as well.

We're trying to implement this at the app-level but it's getting quite convoluted and we were wondering if there was an easy way to avoid instantiating specific component types and instead reuse them from a pool of "unused" ones.

Thoughts?

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

No branches or pull requests

1 participant