[2/3] winex11: Cache XRandR 1.0 display mode.

Sam Edwards cfsworks at gmail.com
Wed May 8 10:52:33 CDT 2013


This makes use of the event handler to cache the XRandR 1.0 display mode 
so that xrandr10_get_current_mode returns nice and fast.

I have an application (Audiosurf) that likes to poll the display mode 
20-ish times per frame, and because XRRGetScreenInfo takes about 4ms to 
run on my system, this results in an unplayable framerate. By caching 
the mode instead, the 4ms penalty only hits when changing the display 
resolution.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-winex11-Cache-XRandR-1.0-display-mode.patch
Type: text/x-patch
Size: 1951 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130508/de5cdf3f/attachment.bin>


More information about the wine-patches mailing list