Changelog
7.1.1:
getReport()
now returns additional infos such as the vendor, WebGL renderer and versionChangelog
7.1.0:
logsPerSecond
parameter to specify the refresh rate of the logsChangelog
7.0.0:
Complete refactor for headless mode, new CPU metric fot the loop duration in ms, switches to Vite for bundling and uses Rollup's preserveModules option to create subentry targets. Also publishes sourcemaps for debug and browser profiling.
Cpu
value which translates to the duration the r3f render loop takes each frame.<PerfHeadless />
which is the new lighter headless mode usable in production. See the #PerfHeadless section in the README.mdgetReport()
method, available through the store const getReport = usePerf(s=> s.getReport)
will give you a complete report of the average performances since when the <Perf />
or <PerfHeadless />
was mounted.getPerf
, setPerf
and usePerf
are now shallowed exposed shortcuts of the internal store.const { perf} = getPerf()
round
property define a change the float precision (0.00 by default).Memory
as the value was only available on Chrome and not relevant and replaced it with Cpu
.trackCPU
parameterusePerf()
is now a zustand
store and does not return an object anymore.deepAnalyze
mode where showing wrong values.