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)


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




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