Closed xeolabs closed 4 years ago
\ping @tmarti
Added in 1.3.51
Hi,
I'm getting the following error when trying to destroy the viewer:
objectCullStates._destroy is not a function
Pointing to the ObjectCullStates.js
file and the following piece of code:
scene.on("destroyed", () => {
delete sceneObjectCullStates[sceneId];
objectCullStates._destroy();
});
Could you please look into it? Thanks.
ViewCullPlugin
See PR https://github.com/xeokit/xeokit-sdk/pull/355
Create
ViewCullPlugin
, which uses frustum culling to accelerate rendering performance.ViewCullPlugin
works by automatically marking everyEntity
culled whenever it falls outside our current view.Since xeokit's renderer does not process culled
Entity
s, this plugin can be used to avoid wasting GPU on objects that we're not looking at.Use
ViewCullPlugin
by simply adding it to yourViewer
.