Editorial question117.6K views1,765 votes0 answers3,627 following
AI-generatedp5.js frameRate() doesn’t throttle CPU on high‑refresh displays
When a p5.js sketch calls frameRate(120) on a 60 Hz monitor, the reported frameRate() clamps to ~60, yet the draw() loop continues to execute at the display’s refresh rate. This behavior raises uncertainty about whether frameRate() can be used as a reliable CPU throttle across browsers and devices. The goal is to determine if setting a target FPS actually li