Skip to main content

monitoring_fps

๐Ÿ—“๏ธ 17032024 1253
๐Ÿ“Ž

Tags: #threejs #performance

FPS metricImplication
HighApplication running smoothly / rendering frames efficiently ๐Ÿ‘ Smooth and responsive experience for users
VariableFPS fluctuating significantlyโš ๏ธ Indicating that there are performance issues
LowApplication struggling to render frames efficiently

Usageโ€‹

import Stats from "stats.js";

const stats = new Stats();
stats.showPanel(0); // 0: fps, 1: ms, 2: mb, 3+: custom
document.body.appendChild(stats.dom);

const tick = () => {
stats.begin();

// ...

stats.end();
};
SUMMARY

Better for FPS reading to be consistently high ๐Ÿ˜ƒ


References