[PATCH weston] xdg-shell: Make stable

Bill Spitzak spitzak at gmail.com
Tue Aug 26 15:19:08 PDT 2014


You are right, "as fast as possible" is a poor name.

What I think the options are is:

1. Use a scale so the surface exactly fills the screen

2. Use the largest integer that fits on the screen. This will produce a 
sharper image.

I'm unsure if there is any hardware where integer scaling is available 
but non-integer is not, so this might not ever be faster. I was also 
thinking there may be other schemes than an integer scale that are 
"better" or "sharper" but it seems unlikely, so it might be best to just 
be specific and say it is an integer.

I do not think there is any need for the unscaled-but-centered option. 
You can get that by using the integer scale with anything larger than 
1/2 the screen, or by using subsurfaces.

You can't get an arbitrary integer scale using a subsurface, though you 
can get any that divides into either the width or height of the screen 
size, which certainly covers most of the useful integers. So it is 
possible no option is needed at all.

On 08/26/2014 01:56 PM, Jasper St. Pierre wrote:
> For "as fast as possible", can I show randomly generated pixels instead?
> For a HiDPI display, it's as useful as running 1:1, centered, and it
> certainly is a hell of a lot faster.
>
> I don't care about "fast" if it can't make any guarantees about what the
> user gets in the end. Games might try and set the "as fast as possible"
> mode and end up with something completely unplayable, because we center
> their 320x480 Space Cadet Pinball window right in the smack dab middle,
> and the user loses.



More information about the wayland-devel mailing list