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

Lazy shader compilation #13

Closed
simontaylor81 opened this issue Nov 17, 2015 · 1 comment
Closed

Lazy shader compilation #13

simontaylor81 opened this issue Nov 17, 2015 · 1 comment

Comments

@simontaylor81
Copy link
Owner

Instead of compiling shaders as soon as the script asks for one, just return a handle and defer until later.

Advantages:

  • Allows rest of script to execute, revealing errors, etc.
  • Necessary for parallel shader compile.
  • Possibly could only compile shaders actually needed for rendering (e.g. if different permutations are required depending on user variables).
@simontaylor81
Copy link
Owner Author

Done in 110da9b. Not going to do compilation of only used shaders because it gets messy with user properties -- what if the used subset changes frame-to-frame?

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