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 glGetBufferSubData warning #61446

Open
clayjohn opened this issue May 26, 2022 · 0 comments
Open

WebGL glGetBufferSubData warning #61446

clayjohn opened this issue May 26, 2022 · 0 comments

Comments

@clayjohn
Copy link
Member

Godot version

3.5 rc 2

System information

Intel Graphics 400, Linux, Firefox, GLES3

Issue description

The below warning is printed to the console when running certain scenes in the WebGL2 renderer.
Clipboard - May 25, 2022 2_27 PM

I beleive that particles are responsible for this.

In any case, It appears the issue comes from our OpenGL Buffer usage. We typically use *_draw hints and *_copy hints when creating Buffer objects. On desktop this is perfectly allowed as the hints are just hints. On the web, ANGLE is very strict about hints and appears to be telling us that we are causing a pipeline stall by reading from a buffer that was not created with a *_read hint.

To resolve this issue, we likely need to create a staging buffer each time that we use glGetBufferSubData, copy the data to the staging buffer and then copy the data to the CPU.

Steps to reproduce

Run the Web editor and inspect the console output

Minimal reproduction project

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant