diff options
author | Bastien Bouclet | 2017-12-30 19:01:14 +0100 |
---|---|---|
committer | Bastien Bouclet | 2017-12-30 19:04:18 +0100 |
commit | 622adff628519c16991b4edacb7283660d1630e1 (patch) | |
tree | 166efbf3d1f8f2e228019bd722c2adde6b4fd136 /engines/hopkins/events.cpp | |
parent | c5dea8caa452dd2982960a8cfafdd04c2002fd6d (diff) | |
download | scummvm-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 'engines/hopkins/events.cpp')
0 files changed, 0 insertions, 0 deletions