Abstract base class of a timestamp query pool.
Creates a new timestamp query pool.
maxQueries
Maximum number of queries this pool can hold.
Default is 256.
How many queries allocated so far.
Default is 0.
Stores all timestamp frames.
Whether the pool has been disposed or not.
Default is false.
The total frame duration until the next update.
Default is 0.
Maximum number of queries this pool can hold.
Default is 256.
This property is used to avoid multiple concurrent resolve operations. The WebGL backend uses it as a boolean flag. In context of WebGPU, it holds the promise of the current resolve operation.
Default is false.
Tracks offsets for different contexts.
Stores the latest timestamp for each render context.
Whether to track timestamps or not.
Default is true.
Allocate queries for a specific uid.
uid
A unique identifier for the render context.
frameId
The current frame identifier.
Dispose of the query pool.
Returns the timestamp for a given render context.
uid
A unique identifier for the render context.
Returns: The timestamp, or undefined if not available.
Returns all timestamp frames.
Returns: The timestamp frames.
Returns whether a timestamp is available for a given render context.
uid
A unique identifier for the render context.
Returns: True if a timestamp is available, false otherwise.
Resolve all timestamps and return data (or process them).
Returns: The resolved timestamp value.