Maps the readback buffer, computes timestamps[1] - timestamps[0] (nanoseconds) and converts to milliseconds, then returns the kit to its device's pool. Returns undefined if ts is null (benchmark mode off).
timestamps[1] - timestamps[0]
undefined
ts
from resolveTimestamp
elapsed GPU time in ms
Maps the readback buffer, computes
timestamps[1] - timestamps[0](nanoseconds) and converts to milliseconds, then returns the kit to its device's pool. Returnsundefinediftsis null (benchmark mode off).