Skip to content

Parallelise shader compilation and programs linking #33

@w0rm

Description

@w0rm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions