summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorNed Burns <pixel@google.com>2020-01-14 20:35:36 -0500
committerNed Burns <pixel@google.com>2020-01-15 15:37:07 -0500
commit69485e3ca0bcd308ee03bd05847472d7f2f750f5 (patch)
tree7efb9935e4c8bf5ec099e972dbe2080a65ee1513 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parenta65024de3b736b8d95b3c3f53769ffedf63cba85 (diff)
Debounce GroupCoalescer instead of using single timeout
Previously GroupCoalescer would delay all notifs in a group until some max time limit had been reached. However, it can take a full group upwards of 400ms to be delivered, but we don't want to delay ALL group notifications by 400ms, because updates to individual children would also have to wait that long. Instead, switch to a debounce system where each time a grouped notification is posted, it sets a timer for a relatively short amount of time (~50ms). If another notification from the same group comes in, the timer is reset. And there's still a max of 500ms for safety purposes. This way, something that is truly a large group post can take up to 500ms by constantly resetting its timer, but a one-off group update can take place almost immediately. Test: atest SystemUITests:GroupCoalescerTest Change-Id: I9808258069c00e7d994035edcfb154b93f75d15a
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions