Skip to catalogue

96

frame budget

A 60fps frame has about 16ms. If you spend 20, you are not at 60. Measure before you decorate.

What is frame budget?

Frame budget is the time you may spend per tick for the target rate. 60fps is ~16.7ms, 30fps ~33ms. Update, physics, and render share it. A spike drops a frame.

Why does frame budget matter when vibe coding?

Models add lights, particles, and full-screen effects until the tab fans the laptop. They never looked at a timer. Name the budget and a counter.

How do you do frame budget?

Pick 60 or 30 and say it. Time update and render separately in debug. If you are over, cut draw calls or pool spawns before adding content. Do not “optimize” blind.

How do you ask a model for frame budget?

Target (60 or 30) fps. Show update ms and render ms in a debug counter. Do not add effects that blow the frame. Pool spawns. Batch draws.

What goes wrong with frame budget?

Reading the counter every frame in a way that itself costs a frame. Sample, do not allocate strings in the hot path.

adjacent