I thought that our code gets about 16ms of time to execute, since the rendering rate is 60 fps, so 1000 /60 = ~16ms. However, if I run this in Chrome:
requestIdleCallback((deadline)=>{
console.log(deadline.timeRemaining(), deadline.didTimeout)
});
timeRemaining gives me 49.9ms of time. Does it mean that Chrome doesn't re-render every 16ms? I assume that it's true in this case, if nothing changes there's no need to re-render.