winex11: Keep some last unused font cache entries in cache a bit longer.
Ričardas Barkauskas
rbarkauskas at codeweavers.com
Fri Sep 16 09:05:05 CDT 2011
This helps scrolling on Steam store page by lowering percentage spent in
SelectObject from ~6% to ~0.8%. This slow down becomes especially
noticeable on some special promotions shown on the page. This happens as
application goes selecting some fonts in a loop which are not yet in
cache forcing them to overwrite each other in the cache. Causing font
cache entries stay until font is somehow deleted maybe would work for
gdi32, but would fail for gdiplus anyway, as it creates/deletes fonts
with gdi functions on every text output.
If there's better way to do this, please suggest.
---
dlls/winex11.drv/xrender.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winex11-Keep-some-last-unused-font-cache-entries-in-ca.txt
Type: text/x-patch
Size: 1008 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110916/ef89eb46/attachment.bin>
More information about the wine-patches
mailing list