Jump to content

This operation requires zeroing texture data. This is slow.


gamefan
 Share

Recommended Posts

Or is it?

Hi again, Today I finally decided to question this error that firefox has been bugging. There is no rendering glitch or run time error. Everything runs as expected but ff spams the console with this:

Error: WebGL warning: drawElements: This operation requires zeroing texture data. This is slow.

Error: WebGL: No further warnings will be reported for this WebGL context. (already reported 32 warnings)

I narrowed it down, seems its related to creating reflection probes. (Or may be any render target cube texture). Of what I could amass from the internets is that this occurs when an "out-of-viewport" pixel is read and rendered - This question in pixi.js subforum - but I couldn't figure where and what method is accessing out-of-viewport pixels. If this is just a browser thing, can this be safely ignored? because chrome does not log these errors.


https://www.babylonjs-playground.com/#KA93U#243

Thanks

Link to comment
Share on other sites

You can safely ignore this error.

This comes from the diffuseTexture of the ground taking time to load. So the RTT cannot render because the meshes are not ready (waiting for the diffuse texture to load). Then when you run the main rendering, the RTT are used as texture but need to be zero out as they don't have data yet (which will be fixed as soon as the diffuseTexture is ready)

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...