Schoening
Schoening

Reputation: 79

Three.js - No performance gain using buffer geometry

I had a look at this Three.js example: webgl_performance

I then added the following line to convert the model into a buffer geometry:

var buffer = THREE.BufferGeometryUtils.fromGeometry( geometry );

I expected this to improve performance (buffer geometry magic y'know) but I am getting exactly the same fps (~20) in both the original and the altered version.

Original: webgl_performance

Altered: webgl_performance_buffer_geometry

I am just curious why I did not get any improvements. Does the json loader already use buffer geometries? Shouldn't I always convert to buffer geometries if possible?

Upvotes: 0

Views: 1307

Answers (1)

mrdoob
mrdoob

Reputation: 19602

Performance should be pretty much the same in that example. That example is mostly measuring the speed of the scenegraph update.

If anything it should be saving on memory.

Upvotes: 2

Related Questions