Skip to content

Dispose the 3D Tiles renderers when the tiles examples are destroyed - #9985

Merged
mvaligursky merged 1 commit into
mainfrom
claude/tiles-app-destroy
Nov 9, 2026
Merged

mvaligursky merged 1 commit into
mainfrom
claude/tiles-app-destroy

Conversation

@mvaligursky

Copy link
Copy Markdown
Contributor

Switching to another example while the Mars or Helsinki 3D Tiles example was still loading logged a TilesRenderer : Failed to load tile error and a TypeError: Cannot read properties of null (reading 'add') for every tile in flight. Their downloads completed after the application was destroyed and were parsed against the released asset registry.

Changes:

Examples:

  • integrations/mars-3d-tiles
  • integrations/helsinki-3d-tiles

…oyed

Switching away from the Mars or Helsinki 3D Tiles example while tiles were
loading logged a "Failed to load tile" error and a TypeError for every tile
still in flight, as their downloads completed after the application was
destroyed. Both examples now dispose their TilesRenderer on the application's
destroy event, which aborts the pending loads.
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Build size report

This PR does not change the size of the minified bundles.

Bundle Minified Gzip Brotli
playcanvas.min.js 2829.6 KB — 736.7 KB — 570.3 KB —
playcanvas.min.mjs 2826.3 KB — 734.7 KB — 569.3 KB —

@mvaligursky
mvaligursky merged commit 6a41bb7 into main Nov 9, 2026
9 checks passed
@mvaligursky
mvaligursky deleted the claude/tiles-app-destroy branch November 9, 2026 15:12
mvaligursky added a commit that referenced this pull request Nov 9, 2026
…oyed (#9985)

Switching away from the Mars or Helsinki 3D Tiles example while tiles were
loading logged a "Failed to load tile" error and a TypeError for every tile
still in flight, as their downloads completed after the application was
destroyed. Both examples now dispose their TilesRenderer on the application's
destroy event, which aborts the pending loads.

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>

This branch was successfully deployed

2 active deployments
Preview – engine — db630143 Deployed Nov 9, 2026 by vercel[bot]
Preview – engine-api-docs — db630143 Deployed Nov 9, 2026 by vercel[bot]
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.

1 participant