Skip to content

Examples: Remove "setDecoderPath" in non-gltf path examples#33604

Merged
gkjohnson merged 2 commits into
mrdoob:devfrom
gkjohnson:draco-examples
May 19, 2026
Merged

Examples: Remove "setDecoderPath" in non-gltf path examples#33604
gkjohnson merged 2 commits into
mrdoob:devfrom
gkjohnson:draco-examples

Conversation

@gkjohnson
Copy link
Copy Markdown
Collaborator

Related issue: #33564 (comment)

Description

Removes calls to "setDecoderPath" in cases where the examples are setting it to the full "jsm/libs/draco/" decoder (now the default load URL).

There are still examples that load from "jsm/libs/draco/gltf", which I'm also willing to remove so our examples demonstrate use that works globally across bundlers as well as vanilla JS, but the gltf draco bundles are a bit smaller than the versions:

glTF variant full variant diff
draco_wasm_wrapper.js 58kb 59kb 1kb
draco_decoder.wasm 192kb 286kb 94kb

@gkjohnson gkjohnson requested review from Mugen87 and donmccurdy May 19, 2026 00:52
# Conflicts:
#	examples/misc_exporter_usdz.html
#	examples/webgl_loader_draco.html
#	examples/webgl_postprocessing_gtao.html
#	examples/webgl_postprocessing_ssr.html
#	examples/webgpu_caustics.html
#	examples/webgpu_postprocessing_ao.html
#	examples/webgpu_postprocessing_ssr.html
#	examples/webgpu_upscaling_fsr1.html
#	examples/webgpu_upscaling_taau.html
#	examples/webgpu_volume_caustics.html
@gkjohnson gkjohnson merged commit b821fdd into mrdoob:dev May 19, 2026
9 checks passed
@gkjohnson gkjohnson deleted the draco-examples branch May 19, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants