Making Wayland Game-friendly

Nikolai Kondrashov spbnick at gmail.com
Tue Nov 9 02:01:13 PST 2010


On 11/09/2010 12:54 PM, Luke Benstead wrote:
> I do have another idea, but whether it would work in practice I'm not
> sure, so I'll just throw this out there. What if, instead of changing
> the native resolution, Wayland allocated an off-screen buffer of the
> requested resolution. As far as the app is concerned it's rendering to a
> fullscreen window at the requested res, but then Wayland scales the
> offscreen buffer and blits it to the screen. If the window loses focus
> then it's minimized. (I know we are sort of stumbling onto WM territory
> here, I'm not really sure how to handle that. Perhaps it doesn't need to
> be minimized just displayed non-fullscreen).
For this to work properly Wayland would need to sometimes apply aspect ratio
transformation, because the application might expect the aspect ratio
different from the one of the current resolution. This would be great if
Wayland could handle it. It would also be great if Wayland didn't force
minimize the window as Windows does.

Sincerely,
Nick


More information about the wayland-devel mailing list