Skip to main content

Module capacity

Module capacity 

Source
Expand description

How much the renderer can draw: each kind of work grows until a frame stops fitting.

The screens in scenes ask whether real screens are cheap; this asks where the renderer itself becomes the bottleneck for whoever uses it. The time counted runs from handing the scene over to the GPU having finished, because the GPU’s own clock is too coarse on short passes, and because this is what a frame really has to fit in.

Structs§

Assets
What the scenes draw with.
Load
One kind of work.
Point2
What a frame took with this much work.

Constants§

BUDGET_60
A frame on a 60 Hz screen, in seconds.
BUDGET_120
A frame on the 120 Hz screen, in seconds.
LOADS
Every kind of work measured, in the order reported.

Functions§

drops_from
The size at which shapes started being left out, for a load made of shapes.
fits
How much fits in budget seconds, between the sizes measured; None when all of it did.