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

Parallelise shader compilation and programs linking #33

Open
w0rm opened this issue Aug 14, 2020 · 0 comments
Open

Parallelise shader compilation and programs linking #33

w0rm opened this issue Aug 14, 2020 · 0 comments

Comments

@w0rm
Copy link
Collaborator

w0rm commented Aug 14, 2020

The first frame may take a while to render because the WebGL scene may be composed out of different combinations of shaders.

WebGL best practices recommend that the shader compilation and program linking should be run in parallel.

This would probably require the following steps:

  1. Loop through all the entities and initiate the shader compilation and figure out all the programs that need to be linked
  2. Loop through the programs to start linking these
  3. Loop through the programs again to check the linking status
  4. Loop through all the entities to draw them
@w0rm w0rm changed the title Parallelise shader compilation and linking programs Parallelise shader compilation and programs linking Aug 14, 2020
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