aboutsummaryrefslogtreecommitdiff
path: root/base/main.h
diff options
context:
space:
mode:
authorBastien Bouclet2017-12-30 19:01:14 +0100
committerBastien Bouclet2017-12-30 19:04:18 +0100
commit622adff628519c16991b4edacb7283660d1630e1 (patch)
tree166efbf3d1f8f2e228019bd722c2adde6b4fd136 /base/main.h
parentc5dea8caa452dd2982960a8cfafdd04c2002fd6d (diff)
downloadscummvm-rg350-622adff628519c16991b4edacb7283660d1630e1.tar.gz
scummvm-rg350-622adff628519c16991b4edacb7283660d1630e1.tar.bz2
scummvm-rg350-622adff628519c16991b4edacb7283660d1630e1.zip
GRAPHICS: Speed up drawing of rounded square soft shadows
When drawing a rounded rectangle, first its shadow is drawn, and then the rectangle proper is drawn over it. This optimization skips drawing a shadow rectangle that is entirely occluded by the main rectangle. A quick benchmark shows large improvements to the modern theme GUI draw speed. On a 1 GHz ARMv7 CPU with optimizations enabled, drawing the add game dialog @ 1920x1080 went from 976 ms to 136 ms.
Diffstat (limited to 'base/main.h')
0 files changed, 0 insertions, 0 deletions