ADFFS integer scaling?

General development discussion not covered by a specific forum
Post Reply
Vanfanel
Posts: 600
Joined: Mon Sep 16, 2013 12:01 am

ADFFS integer scaling?

Post by Vanfanel »

I have asked in the Raspberry Pi forums too, but just in case you know something about the matter:
Is it possible to somehow achieve integer scaling with ADFFS?

Using scaling_kernel = 8 without integer scaling causes shimmering in scrolling games (expected: nearest neighbour + non-integer results in uneven pixel scaling...)

Thanks!
JonAbbott
Posts: 3033
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

Re: ADFFS integer scaling?

Post by JonAbbott »

It should be achievable by using a monitor resolution that's a multiple of 320x256, so 1280x1024 for example.

That's obviously only going to work with standard modes, games with bespoke resolutions would not be performing integer scaling.
Vanfanel
Posts: 600
Joined: Mon Sep 16, 2013 12:01 am

Re: ADFFS integer scaling?

Post by Vanfanel »

JonAbbott wrote: Fri Jul 12, 2024 7:54 am It should be achievable by using a monitor resolution that's a multiple of 320x256, so 1280x1024 for example.

That's obviously only going to work with standard modes, games with bespoke resolutions would not be performing integer scaling.
What I meant is that maybe ADFFS could do integer scaling, now that you use the BCM overlays (you can scale to arbitrary sizes using the BCM functions, at least on GNU/Linux).

For example: if the physical videomode is 1920x1080, and a game is 320x256, scale it to a surface of 1280x1024, which is 4 times 320x256.
The games would be displayed on an area smaller than the screen, of course, but that's the tradeoff for proper pixel-perfect scaling.

Setting a video mode that is different than the monitor-native resolution causes the monitor scaling to kick in, destroying the pixel perfect scaling.
Post Reply