Contact emails [email protected]
Explainer No information provided Specification No information provided Summary Exposes a WorkletPerformance object on AudioWorkletGlobalScope.performance providing the now() method (DOMHighResTimeStamp). This allows AudioWorkletProcessor scripts running on the real-time audio rendering thread to measure sub-millisecond elapsed time and benchmark DSP or WebAssembly execution using the same monotonic clock and document time origin as Window and Worker contexts, subject to standard cross-origin isolation timer coarsening (5 microseconds when cross-origin isolated, 100 microseconds otherwise). Blink component Blink>WebAudio Web Feature ID Missing feature Motivation Real-time audio and WebAssembly DSP workloads cannot measure intra-quantum CPU execution time inside AudioWorkletProcessor.process(): currentTime represents sample-frame progression and remains frozen throughout process(), while Date.now() is non-monotonic and coarse. Exposing performance.now() on AudioWorkletGlobalScope via WorkletPerformance (High Resolution Time) provides a monotonic sub-millisecond timestamp anchored to the parent document's time origin, with the same cross-origin isolation coarsening as Window and Worker (5 µs when cross-origin isolated, 100 µs otherwise). This lets audio worklets benchmark per-quantum DSP cost and correlate timestamps directly with window.performance.now() Initial public proposal https://github.com/WebAudio/web-audio-api/issues/2413 Goals for experimentation None Tracking bug https://b.corp.google.com/issues/450309115 Estimated milestones No milestones specified Link to entry on the Chrome Platform Status https://chromestatus.com/feature/5108412173123584?gate=5188488818458624 This intent message was generated by Chrome Platform Status. -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6afe1197.5413fcea.895c7.015e.GAE%40google.com.
