Question about Screen Resolutions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about Screen Resolutions

Jeremy L.
I'm not deep into squeak enough to know if this is possible, so I'm throwing the question around here.

Is there a way to use hardware to scale output to the display?  I.e. if I set up an image to have a specific resolution, is there a way to not use internal scaling to upscale/downscale the visual output?  I know it's possible inside of squeak to have squeak make up for the difference, but it's quite taxing for such a task that would be better off handed to the OS to do natively.

Thanks for any insights.  


Reply | Threaded
Open this post in threaded view
|

Re: Question about Screen Resolutions

marcel.taeumel
Hi, there.

Does this help?

Best,
Marcel

Am 26.04.2018 10:03:38 schrieb Jeremy Landry <[hidden email]>:

I'm not deep into squeak enough to know if this is possible, so I'm throwing the question around here.

Is there a way to use hardware to scale output to the display?  I.e. if I set up an image to have a specific resolution, is there a way to not use internal scaling to upscale/downscale the visual output?  I know it's possible inside of squeak to have squeak make up for the difference, but it's quite taxing for such a task that would be better off handed to the OS to do natively.

Thanks for any insights.  


Reply | Threaded
Open this post in threaded view
|

Re: Question about Screen Resolutions

Bert Freudenberg
Yes, it's possible that the VM scales the display. For example, SqueakJS has a "fixed resolution" mode where it gives Squeak a fixed-sized screen to draw in, and scales that to whatever size the browser window is. Inversely, it scales system mouse events to Squeak's virtual resolution. See for example here:
When you resize the browser window, the image does not even notice.

AFAIK no other VM does that, but it would certainly be possible to add. 

We did need that feature for displaying the OLPC version of Etoys (which runs at a fixed 1200x900 resolution) on other platforms. To avoid having to add this to all VMs (Windows, Mac, X11), Andreas set up the "internal scaling" you mention which uses WarpBlt. But indeed there is a noticeable slow-down, and having this feature in the VM would be much better.

- Bert -

On 26 April 2018 at 10:56, Marcel Taeumel <[hidden email]> wrote:
Hi, there.

Does this help?

Best,
Marcel

Am 26.04.2018 10:03:38 schrieb Jeremy Landry <[hidden email]>:

I'm not deep into squeak enough to know if this is possible, so I'm throwing the question around here.

Is there a way to use hardware to scale output to the display?  I.e. if I set up an image to have a specific resolution, is there a way to not use internal scaling to upscale/downscale the visual output?  I know it's possible inside of squeak to have squeak make up for the difference, but it's quite taxing for such a task that would be better off handed to the OS to do natively.

Thanks for any insights.