w3c / compute-pressure

A web API proposal that provides information about available compute capacity
https://www.w3.org/TR/compute-pressure/
Other
69 stars 10 forks source link

Use-case: GPU pressure #9

Open alexcyn opened 3 years ago

alexcyn commented 3 years ago

It would be nice to understand GPU load as well, as in some cases this is a bottleneck, not a CPU. For example, when on low notebook in a video conference I screenshare external 4k screen, built-in internal GPU is 50-60% busy, CPU is 30% busy, and everything starts working very slowly - even mouse becomes jerky.

kenchris commented 2 years ago

Yes, we could support this in the API using someting like entryTypes (https://www.w3.org/TR/performance-timeline/#dom-performanceobserverinit) ie "cpu", "gpu".

Thought level 1 is CPU only, we should make sure it can be extended to support other sources in the future

anssiko commented 2 years ago

In video conferencing use cases, the bottleneck could also be the camera capture device. For example, iOS/iPadOS provide AVCaptureDevice.SystemPressureState API: https://developer.apple.com/videos/play/wwdc2021/10047/?time=1698

It is perhaps a good idea to document possible future extensions somewhere in the specification.