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

RFE: Optimize drop_shadow.shader #16

Open
skeletonbow opened this issue May 31, 2022 · 0 comments
Open

RFE: Optimize drop_shadow.shader #16

skeletonbow opened this issue May 31, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@skeletonbow
Copy link
Owner

skeletonbow commented May 31, 2022

  • Use float or uint instead of int.
  • Use swizzle to reduce code and improve readability.
  • Use step() instead of conditionals.
  • Use mad() fused multiply-add intrinsic instead of discreet math operations.
  • Explore optimizing the blur operation by sampling multiple pixels at a time with bilinear filtering to reduce GPU cost.
  • Use clamp() for binding the blur radius range instead of min()/max().
@skeletonbow skeletonbow added the enhancement New feature or request label May 31, 2022
@skeletonbow skeletonbow changed the title Optimize: drop_shadow.shader RFE: Optimize drop_shadow.shader May 31, 2022
@skeletonbow skeletonbow added this to the 2.0 Alpha Test Release 1 milestone May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant