You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I realized that running it in the main thread makes my FPS drop from 120FPS to ~60FPS when moving the view around a lot with Google Tiles.
So I made a version of TileCreasedNormalsPlugin that runs in a webworker. Moving it to a webworker takes the FPS back to 120FPS.
There's a little bit of subtelty involved with passing array buffers to worker and back, so the code is not trivial, but not too bad either (200 lines total).
Would you be interested in upstreaming it here? I don't see any worker support here yet
The text was updated successfully, but these errors were encountered:
Thanks! Unfortunately webworkers are still fairly difficult to publish due to the bundling ecosystem but I think it would be okay to add this to the "examples" folder. Does the webworker run well locally? I recall having some issues awhile ago related to that but I don't recall the details.edit: This is just related to shared array buffers which presumably won't be needed here.
Hi, I realized that running it in the main thread makes my FPS drop from 120FPS to ~60FPS when moving the view around a lot with Google Tiles.
So I made a version of TileCreasedNormalsPlugin that runs in a webworker. Moving it to a webworker takes the FPS back to 120FPS.
There's a little bit of subtelty involved with passing array buffers to worker and back, so the code is not trivial, but not too bad either (200 lines total).
Would you be interested in upstreaming it here? I don't see any worker support here yet
The text was updated successfully, but these errors were encountered: