Jump to content

Shader Compile Performance


Nixa
 Share

Recommended Posts

I'm working on a project in PIXI v4, using AdvancedBloomFilter. It works great after it loads. But right when it first renders, there's a performance hit. Chrome Devtools shows the delay in AdvancedBloomFilter's apply function, which deeper down has a long call to getShaderParameter. My understanding is that this is happening at compilation time for the shader, querying for success. What's the best approach to improve performance here? What could be causing the delay? Is it expected? This delay is causing stutter at a crucial moment. If the delay is unavoidable, is there a strategy for pre-loading? Should I set the stage, add the filters, and just keep it at alpha=0 until I'm ready for it? Any advice greatly appreciated.

image.png
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...