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

[WebGL2] Large delay when creating first MeshInstance #16050

Closed
rubychill opened this issue Jan 25, 2018 · 5 comments
Closed

[WebGL2] Large delay when creating first MeshInstance #16050

rubychill opened this issue Jan 25, 2018 · 5 comments

Comments

@rubychill
Copy link

Godot version:
3.0 RC3

OS/device including version:
Windows 10
Intel 15-7500 (Intel HD Graphics 630)
Firefox Quantum/Chrome

Issue description:
There seems to be a large delay when the first MeshInstance is added to the game, whether that be loaded with the original scene (in which case the game will just be a black screen before the scene appears) or added to the scene via a script (in which case the game will hang). This delay is slightly noticeable in the editor or desktop exports, but is much longer in HTML5 exports (around 10 seconds). The delay can sometimes be extensive enough to cause a WebGL context lost error. Any subsequent MeshInstances do not have this delay.

Steps to reproduce:
Create project and add a MeshInstance with an attached Mesh. Either place it in the main scene or instance it via code in some way. Delay should occur between when the MeshInstance is added to the scene tree and when it first appears on screen.

Minimal reproduction project:
html5test.zip

@vnen
Copy link
Member

vnen commented Jan 25, 2018

For what I can tell this is an issue with ANGLE and its D3D11 backend (I'm struggling with UWP because of this). With Firefox and ANGLE disabled, it works much better.

@rubychill
Copy link
Author

When I disable angle I get "WebGL2 not available" on Chrome, and an immediate WebGL context lost error on Firefox. Same results on another PC with an i7 3770 + GTX970.

@vnen
Copy link
Member

vnen commented Jan 25, 2018

I believe Chrome has no native option if you disable ANGLE, other than the SwiftShader which is a CPU-bound implementation, so it won't really work (major performance caveat is set to true). For Firefox I'm a bit surprised, but I haven't tested it thoroughly.

@leonkrause leonkrause changed the title Large delay when creating first MeshInstance in HTML5 export WebGL 2: Large delay when creating first MeshInstance Nov 19, 2018
@leonkrause leonkrause added this to the 3.1 milestone Nov 28, 2018
@Chaosus Chaosus changed the title WebGL 2: Large delay when creating first MeshInstance [WebGL2] Large delay when creating first MeshInstance Dec 27, 2018
@akien-mga
Copy link
Member

Is this still reproducible with the GLES2 / WebGL 1 renderer in the current master branch?

@clayjohn
Copy link
Member

Hasn't been reproduced, so closing

@akien-mga akien-mga modified the milestones: 3.2, 3.1 Nov 30, 2019
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

5 participants