Which stats is official? ( stats.js vs. stats-js )

This module has two different version which appears to be the same thing?

Is there an official one? Why the dupe?

Mr. Doob published the first one 4 years ago. Someone forked it and published the second one about a year ago.

If you’re using it with Three.js, just use the one that already comes with the library like this:

import Stats from 'three/examples/jsm/libs/stats.module.js';
stats = new Stats();

The @mrdoob one (stats.js) is the original.

i had no idea it was part of jsm :astonished:

1 Like