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

Enable texture throttling #427

Open
wouterlucas opened this issue Nov 4, 2024 · 0 comments
Open

Enable texture throttling #427

wouterlucas opened this issue Nov 4, 2024 · 0 comments

Comments

@wouterlucas
Copy link
Contributor

In Lightning 2.x there is a concept of "Texture Throttling" which processes batches of textures to avoid overloading the CPU -> GPU upload bridge.

In current L3 all textures are loaded & uploaded to the GPU on the addQuads step during the main render loop. This means if you load up 20k nodes at the start, the Renderer will attempt to add 20k textures at once. While this kinda works on your dev machine this absolutely will not perform on a 2016 Smart TV.

Introduce:

  • Concept of source loaders, decouple loading of Texture source from the main render loop
  • Concept of Texture throttling, upload a batch of textures per render loop (configurable)
  • Configurable Texture process Load & Batch size to dynamically control the size of which these are processed
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