Pass:tick

Starts a GPU measurement. One of the slots in a Tally object will be used to hold the result. Commands on the Pass will continue being measured until Pass:tock is called with the same tally and slot combination. Afterwards, Pass:read can be used to read back the tally result, or the tally can be copied to a Buffer.

Pass:tick(tally, slot)

Arguments

NameTypeDescription
tallyTally The tally that will store the measurement.
slotnumber The index of the slot in the tally to store the measurement in.

Returns

Nothing

Notes

pixel and shader measurements can not be nested, but time measurements can be nested.

For time measurements, the view count of the pass (Pass:getViewCount) must match the view count of the tally, which defaults to 2.

See also