Skip to content

feat(gsplat): auto-select GPU sort on WebGPU and promote it to stable#8941

Merged
mvaligursky merged 1 commit into
mainfrom
mv-gsplat-auto-gpu-sort
Jun 22, 2026
Merged

feat(gsplat): auto-select GPU sort on WebGPU and promote it to stable#8941
mvaligursky merged 1 commit into
mainfrom
mv-gsplat-auto-gpu-sort

Conversation

@mvaligursky

Copy link
Copy Markdown
Contributor

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_AUTO resolves to GSPLAT_RENDERER_RASTER_GPU_SORT on WebGPU, GSPLAT_RENDERER_RASTER_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 — not just when renderer is explicitly set.

API Changes:

  • GSPLAT_RENDERER_RASTER_GPU_SORT promoted from experimental (@alpha) to a public, stable API.
  • Default WebGPU gsplat rendering changes from CPU sort to GPU sort. Apps that need the previous behavior can set scene.gsplat.renderer = pc.GSPLAT_RENDERER_RASTER_CPU_SORT explicitly.

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.
@github-actions

Copy link
Copy Markdown

Build size report

This PR changes the size of the minified bundles.

Bundle Minified Gzip Brotli
playcanvas.min.js 2282.7 KB (+0.1 KB, +0.00%) 585.4 KB (+0.0 KB, +0.00%) 455.3 KB (+0.1 KB, +0.02%)
playcanvas.min.mjs 2280.1 KB (+0.1 KB, +0.00%) 584.7 KB (+0.0 KB, +0.01%) 454.6 KB (−0.2 KB, −0.05%)

@mvaligursky mvaligursky merged commit de714be into main Jun 22, 2026
10 checks passed
@mvaligursky mvaligursky deleted the mv-gsplat-auto-gpu-sort branch June 22, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: graphics Graphics related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant