feat(gsplat): auto-select GPU sort on WebGPU and promote it to stable#8941
Merged
Conversation
GSPLAT_RENDERER_AUTO now resolves to GSPLAT_RENDERER_RASTER_GPU_SORT on WebGPU (CPU sort on WebGL). Extracted the resolution into a shared _resolveRenderer helper used by both the constructor and the renderer setter, so the default (untouched) AUTO path resolves correctly. Promoted GSPLAT_RENDERER_RASTER_GPU_SORT from experimental/alpha to a public, stable API.
Build size reportThis PR changes the size of the minified bundles.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On WebGPU,
GSPLAT_RENDERER_AUTO(the default) now resolves to the GPU-sort renderer instead of CPU sort. Now that the raster GPU-sort path is fully featured, it becomes the automatic choice on WebGPU; WebGL is unchanged (CPU sort).Changes:
GSPLAT_RENDERER_AUTOresolves toGSPLAT_RENDERER_RASTER_GPU_SORTon WebGPU,GSPLAT_RENDERER_RASTER_CPU_SORTon WebGL._resolveRendererhelper used by both the constructor and therenderersetter, so the default (untouched) AUTO path resolves correctly — not just whenrendereris explicitly set.API Changes:
GSPLAT_RENDERER_RASTER_GPU_SORTpromoted from experimental (@alpha) to a public, stable API.scene.gsplat.renderer = pc.GSPLAT_RENDERER_RASTER_CPU_SORTexplicitly.