• 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
..
dibdrv Loading commit data...
tests Loading commit data...
Makefile.in Loading commit data...
bitblt.c Loading commit data...
bitmap.c Loading commit data...
brush.c Loading commit data...
clipboard.c Loading commit data...
clipping.c Loading commit data...
dc.c Loading commit data...
dib.c Loading commit data...
driver.c Loading commit data...
emfdrv.c Loading commit data...
font.c Loading commit data...
freetype.c Loading commit data...
gdiobj.c Loading commit data...
input.c Loading commit data...
main.c Loading commit data...
mapping.c Loading commit data...
ntgdi_private.h Loading commit data...
opentype.c Loading commit data...
painting.c Loading commit data...
palette.c Loading commit data...
path.c Loading commit data...
pen.c Loading commit data...
printdrv.c Loading commit data...
region.c Loading commit data...
syscall.c Loading commit data...
vertical.c Loading commit data...
vulkan.c Loading commit data...
win32u.spec Loading commit data...
win32u_private.h Loading commit data...
window.c Loading commit data...
winstation.c Loading commit data...
wrappers.c Loading commit data...