-
Notifications
You must be signed in to change notification settings - Fork 470
Simplify FlxGraphicShader #3327
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
base: dev
Are you sure you want to change the base?
Conversation
gonna shelf this until I learn why hasTransform is being set to false, in renaine |
Why change if statements to mix? |
If statements should be avoided in GPUs, wherever possible. Here's an explanation: https://stackoverflow.com/questions/37827216/do-conditional-statements-slow-down-shaders/37837060#37837060 |
Any plan to do this the same to openfl GraphicsShader too? |
None of this will happen if I don't find a good way to profile these changes. As for openfl, I dunno, the gains here are pretty small, and changing it wont impact us all that much as we already overwrite theirs in the extended class |
Addition to #3326
Another attempt at the other part of #3321
Simplifies FlxGraphicsShader and removes ifs for mix calls. Let's hope that's a good thing
To Dos