texture loading in background
-
lindsay.kay (at xeolabs)
Strangely, it appears as if WebGL in Chromium is queuing up texture creation and doing that in a big batch that blocks the browser, only unblocking when all texture creations complete.
But not in Minefield, which seems to create the textures immediately, where you get slow scene interactivity in the meantime.
I found that even if I substitute untextured geometry to render in place while texture loads, it has no effect in Chromium because it seems the whole browser is being blocked for all the texture loads.
Eventually I plan to use worker threads I think.
-
lindsay.kay (at xeolabs)
- State changed from new to open
-
lindsay.kay (at xeolabs)
So the COLLADA parsing is actually very fast - I'll show that with logging of texture loads and an example showing no textures.
-
lindsay.kay (at xeolabs)
Confirmed: geometry is initially rendered without textures in their absence, but then WebGL texture creation happens in a big burst and freezes everything.
Will detect support for Web workers and employ those in supported browsers.
-
lindsay.kay (at xeolabs)
- Milestone set to V0.7.4
-
lindsay.kay (at xeolabs)
- State changed from open to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.