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
Adding renderer=webgpu to a browser that doesn't support WebGPU will make Pixi fall back to WebGL 1, because Rapid is passing an undefined variable here:
The auto-detected useragent string for your browser (leave blank if you're manually filling this form out)
No response
The text was updated successfully, but these errors were encountered:
emersonveenstra
changed the title
When requesting WebGPU, Browsers with no support fall back to WebGL 1 instead of WebGL 2
When requesting WebGPU, browsers with no support fall back to WebGL 1 instead of WebGL 2
Dec 7, 2024
Good catch, thanks @emersonveenstra ! I agree that looks safe to me too.
I kind of wonder - should we maybe have Rapid not start at all in this case?
The person testing might think they are using webgpu when they really are not, and this would be an opportunity to let them know that they need to adjust some settings in their browser to test it properly.
Good catch, thanks @emersonveenstra ! I agree that looks safe to me too.
Cool, i'll open a PR
I kind of wonder - should we maybe have Rapid not start at all in this case?
The person testing might think they are using webgpu when they really are not, and this would be an opportunity to let them know that they need to adjust some settings in their browser to test it properly.
Might be useful, I also thought about using UiApiStatus to show an error in that case
Description
Adding
renderer=webgpu
to a browser that doesn't support WebGPU will make Pixi fall back to WebGL 1, because Rapid is passing an undefined variable here:Rapid/modules/core/GraphicsSystem.js
Line 657 in e8c46e7
main...emersonveenstra:Rapid:webgl-fallback fixes it, and I think is safe because Pixi will automatically fall back to WebGL 1 if the browser doesn't support WebGL 2
Screenshots
No response
Version
canary
What browser are you seeing the problem on? What version are you running?
No response
The OS you're using
No response
Steps to reproduce
PixiJS 8.6.3 - webgl 1 - http://www.pixijs.com/
The browser URL at the time you encountered the bug
https://rapideditor.org/canary#map=2.00/0.0/-180.0&background=Bing&datasets=fbRoads,msBuildings&disable_features=boundaries&renderer=webgpu
The auto-detected useragent string for your browser (leave blank if you're manually filling this form out)
No response
The text was updated successfully, but these errors were encountered: