Closed wumaolinmaoan closed 2 months ago
The change introduces a conditional check in the GLShaderLibrary
class to determine if a shader has already been initialized. If the shader is initialized, the method exits early, skipping the linking process. This adjustment prevents unnecessary operations on shaders that are already set up.
Files | Change Summary |
---|---|
packages/effects-webgl/src/gl-shader-library.ts |
Added a conditional check in the GLShaderLibrary class to return early if the shader is initialized, bypassing the linking process. |
In the glade where shaders play,
A check was added, hip-hip-hooray!
If they're set, no need to link,
A clever change, I think, I think!
Hopping 'round with joy so bright,
Performance leaps, what a delight! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit