summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSangkyu Lee <geteuid@gmail.com>2012-11-16 00:03:17 +0900
committerSangkyu Lee <geteuid@gmail.com>2012-11-28 09:28:50 +0900
commit7bb3cfe1cca4016ce95d3ef059761f4bb2d668bb (patch)
treeb9440572c9d1e7fb3d82c26996444c3fe2ba7fbe /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentc88047bf86fd83e5b0204d26b35776cad97ed877 (diff)
Another optimization of glyph cache uploads
Previously, cache textures were updated whenever mCurrentCacheTexuture was changed. Since updating cache textures needs glTexSubImage2D call, frequent changing of mCurrentCacheTexture (which can easily happen when an app uses lots of unique glyphs even with precaching) caused many glTexSubImage2D calls and bad framerates. This patch optimized isssueDrawCommand function. Consequently, changing mCurrentCacheTexture doesn't cause glTexSubImage2D call any more and it will improve font rendering performance. Change-Id: Id19d959fa0e69eeb2a39f83a57e311d7394586b2 Signed-off-by: Sangkyu Lee <geteuid@gmail.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions