summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorStan Iliev <stani@google.com>2019-03-21 11:34:15 -0400
committerStan Iliev <stani@google.com>2019-03-21 12:25:08 -0400
commit197843d031fc1480dbebb2ee1403742834d59fd2 (patch)
treed703048299713b8f0cac932e07a9864e61a37216 /rs/java/android/renderscript/RenderScript.java
parent3e99fa7a272efe3a1c70fd96cb6444f75790811e (diff)
Block GPU on dequeue fence only if it has not signalled already
When Vulkan pipeline dequeues next frame at the beginning of DrawFrame, the dequeue fence has been signalled in most cases. This CL avoids additional work and saves about 0.3ms per frame. There is no need to create VkSemaphore and commit an empty command buffer to the queue if the fence has already signalled. Bug: 128998567 Test: Ran systrace on SelfieCity and observed better performance Change-Id: I3532b785fae90308d922a29f1698f5dbcbd79079
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions