[compute-pressure] Scenario - compute pressure for improving interactivity (#235)

nhelfman has just created a new issue for https://github.com/w3c/compute-pressure:

== Scenario - compute pressure for improving interactivity ==
Following up of TPAC 2023 discussion.

I would like to highlight another possible scenario which I believe can be relevant for this API and would be interested hearing feedback on this.

In Excel Online (although not a video streaming app) we have observed cases where when the CPU/GPU is highly utilized, perhaps due to another processing intensive app running at the same time on the OS, interactivity experience degrades. This would manifest as increased response time to interactions due to expensive React components which needs to render and scroll smoothness related impact due to expensive rendering of grid content on the main thread.

We are looking into providing an adaptive experience to the user based on external factors beyond the app control. For example, rendering simpler grid content while there is high CPU pressure and then render complete content when there is more idle time is something we are considering. 

Another example is providing simple skeleton content to the immediate interaction on the same animation frame and schedule a full response to a later time when we know CPU pressure is relatively high. This way, the user will not experience prolong UI blocking periods.

From reading the proposal it feels like the main scenario it tries to address is video/gaming related aspects but I think it may also be possible to utilize it for other cases.

Please view or discuss this issue at https://github.com/w3c/compute-pressure/issues/235 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 21 September 2023 07:38:29 UTC