summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorNader Jawad <njawad@google.com>2021-05-13 19:08:04 -0700
committerNader Jawad <njawad@google.com>2021-05-13 19:08:04 -0700
commit91a55b613d572497a660fb3303a6326d1844cd02 (patch)
tree3149947d941d0fcd0e9d84373e0575bc18d24c04 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent5ac4488fecbccb9779b51798d4f3c9c0c7e06fb3 (diff)
Improve Stretch shader performance
Refactor stretch shader to return within conditional blocks instead of falling through to main function body. Improves performance on coral by approximately 60% ~600 fps to ~1k fps on non-surfaceview case ~300 fps to 500 fps on surfaceview case Bug: 187718492 Test: manual Change-Id: Ida0d0dee9c94b0ac210a024708100283fecc2a5c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions