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

Optimise Transparency Resolution #15

Open
viluon opened this issue Feb 14, 2017 · 0 comments
Open

Optimise Transparency Resolution #15

viluon opened this issue Feb 14, 2017 · 0 comments

Comments

@viluon
Copy link
Owner

viluon commented Feb 14, 2017

It could be possible to rewrite the transparency resolution logic in :render() and :cook_lines() to use a single loop for resolving all three pixel properties. After all, the coordinate repositions are duplicate code. We could determine three flags marking which properties need resolution before the loop starts, and then break once all three are falsy. Should theoretically speed things up as well as minify the code!

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

No branches or pull requests

1 participant