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

WebGL warning: drawElements in Firefox #3897

Closed
gordyr opened this issue Mar 30, 2017 · 13 comments
Closed

WebGL warning: drawElements in Firefox #3897

gordyr opened this issue Mar 30, 2017 · 13 comments
Labels
🤔 Question User question, similar to Help Wanted or Needs Help. These can be addressed whenever someone has tim

Comments

@gordyr
Copy link
Contributor

gordyr commented Mar 30, 2017

Although everything appears to work fine, i'm getting this error in Firefox when rendering sprites:

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

Is there a more optimal solution?

@themoonrat themoonrat added the 🤔 Question User question, similar to Help Wanted or Needs Help. These can be addressed whenever someone has tim label Apr 2, 2017
@englercj
Copy link
Member

englercj commented Apr 17, 2017

This usually is logged in firefox when you try to read pixels from an out-of-viewport location and render them. Because there are no out-of-viewport pixels to read the browser has to create a buffer filled with zeroes for you, which is slow.

Can you provide a minimal code pen/jsfiddle that shows this issue happening please?

@coderD1mka
Copy link

coderD1mka commented Jun 23, 2017

I have the same error. All code is here:
PixiError.zip

@kevingranade
Copy link

http://pixijs.github.io/examples/#/basics/basic.js exibits this.

@grondilu
Copy link

FYI, this message shows up on the Khronos WebGL tutorial called "SpiritBox" :
https://www.khronos.org/registry/webgl/sdk/demos/webkit/SpiritBox.html

No message is shown with that same page on Microsoft Edge. Can't try with chrome.

@nxtpl
Copy link

nxtpl commented Oct 18, 2017

No message in Chrome either

@trongthanh
Copy link

Still got this message with the basic example on Firefox 57, macOS 10.13.1 and the demo cause the laptop heat up although no significant CPU activities.

@finscn
Copy link
Contributor

finscn commented Dec 10, 2017

in the last version of Firefox , there is a warning about SpriteRenderer too:

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

@GoodBoyDigital
Copy link
Member

closing as this has been fixed in v5 👍

@finscn
Copy link
Contributor

finscn commented Feb 23, 2018

@GoodBoyDigital could you tell me how to fix it? I want to fix it in my fork-v4 . thanks

@GuillaumeLeclerc
Copy link

How to get this since the v5 has not been released yet ?

@tywang2006
Copy link

How to get this since the v5 has not been released yet ?

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)

@lock
Copy link

lock bot commented May 20, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

1 similar comment
@lock
Copy link

lock bot commented May 20, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤔 Question User question, similar to Help Wanted or Needs Help. These can be addressed whenever someone has tim
Projects
None yet
Development

No branches or pull requests