• Florian Will's avatar
    win32u: Only retrieve the dc size if needed. · 6dfad4c2
    Florian Will authored
    SetMapMode(.., MM_TEXT) is called a lot in common gdiplus use cases via
    gdi_transform_acquire(). Querying the size and resolution can be
    expensive, so skip it when its not needed.
    
    When running the "ZusiDisplay" ET423 diagnostic display, which uses
    gdiplus heavily, this change increases the "indicator blinking speed"
    from 0.6 per second to 1 per second and probably hits the FPS limit now.
    Also, CPU usage of the ZusiDisplay.exe process goes down from ~75% to
    ~42% of one core according to "top", and wineserver CPU usage goes down
    from ~48% to ~3%.
    Signed-off-by: 's avatarFlorian Will <florian.will@gmail.com>
    Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    6dfad4c2
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...