Skip to content

Tree nodes grow unbounded in orthographic view and easily run out of memory #1554

@WilliamLiu-1997

Description

@WilliamLiu-1997

Description

When using the three globe XYZ image tile path, switching to an orthographic camera and browsing continuously causes memory usage to keep increasing. Switching back to a perspective camera does not make the memory drop in any noticeable way.
In orthographic view, the tree nodes number can easily exceed 1 million

Reproduction steps

  1. Use the three globe XYZ image tile path
  2. Switch to an orthographic camera
  3. Pan, zoom, and browse continuously
  4. Observe memory usage and tree node count

Code

registerPlugin(
new XYZTilesPlugin({
url: config.url,
center: true,
levels: config.levels ?? 20,
shape: 'ellipsoid',
} as any),
)

Live example

https://threejs-3d-tiles-renderer.vercel.app/

Screenshots & Tile Set

Image

check the tree node number and memory useage

Library Version

newestVersion

Three.js Version

newestVersion

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions