-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Description
Feature
VoxelTraversal constructs a Megatexture for each metadata field coming from the VoxelProvider. The megatextures are sized rather simplistically:
- Maximum size is set to 512 MB. The
VoxelTraversalconstructor takes amaximumTextureMemoryByteLength, but this parameter is not set when theVoxelTraversalis constructed inVoxelPrimitive. - Each metatadata field is allowed the full
maximumTextureMemoryByteLength. There is no option to limit the total memory of the wholeVoxelTraversal
After constructing the megatextures, the VoxelTraversal then uses the maximumTileCount from the first Megatexture, to compute things like the length of the priority queue. However, if different metadata fields have different sample sizes in memory (e.g., single float vs RGBA float), the different megatextures could potentially have different maximumTileCount values--because they were all allocated with the same maximum memory.
Some ideas for improvement:
- Expose maximum memory limits to the user, similar to Cesium3DTileset.maximumCacheOverflowBytes.
- Divide the maximum available memory among the metadata properties proportionally to the different byte sizes of a single sample in the property
- Compute a valid
maximumTileCountthat is the same for allMegatextures
Reactions are currently unavailable