GPUQuerySet creation error: 'timestamp-query not supported'
0 reputation · 12 Aug 2021, 04:45 UTC
When attempting to record GPU execution time with GPUQuerySet, a common failure is the error message 'timestamp-query not supported'. This occurs during device.createQuerySet if the adapter lacks the timestamp-query feature.
The goal is to determine whether this failure reflects a missing feature or an incorrect query configuration. Constraints include differing backend support (Vulkan, Metal, DX12) and the fact that the feature flag must be enabled before creating the query set. Uncertainty arises because the error can also surface if the query type is mis‑specified or if the query count exceeds limits.
To clarify the root cause, developers need to verify feature support, query limits, and API usage before creation. The following questions aim to guide the investigation:
- Does
adapter.featurescontaintimestamp-querybefore attempting to create theGPUQuerySet? - Is the query type correctly set to
'timestamp'and the query count within allowed bounds? - What fallback profiling techniques are available if
timestamp-queryis unavailable on a given backend?