Many of the loaders in three.js are currently undergoing changes to return BufferGeometry
rather than Geometry
. This switch is primarily for improved loading speed and enhanced memory efficiency.
BufferGeometry
organizes data in a manner that can be easily transmitted to the GPU, whereas Geometry
stores data in a user-friendly format which may be more suitable for manual geometry manipulation.
Fortunately, three.js offers methods for converting between Geometry
and BufferGeometry
, allowing flexibility in your choice of data structure.
The amount of performance gain or memory saved varies depending on the specific use case.
By becoming proficient with both data structures, you can effectively determine which one best suits your application's needs.
Version: three.js r.75