File: TimestampQueryPool.md | Updated: 11/15/2025
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.
TODO
Default is 0.
Maximum number of queries this pool can hold.
Default is 256.
TODO
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.