Page 1 of 1

How exactly does the "Scale" option under "Audio & Video" work?

Posted: Tue Oct 08, 2024 10:28 am
by setiawan

Basically the subject. I've seen people talk about using it, and from what I've observed, it seems to affect the horizontal scaling. It doesn't seem to work consistently on all cores though.

I've not been able to find any documentation on this, so rather than guess, I was hoping someone could tell me what the different options are meant to do, what options (if any) are required for it to take effect, whether it introduces a framebuffer when using the VGA analog output, etc.

Any clarification around this is much appreciated, thanks!


Re: How exactly does the "Scale" option under "Audio & Video" work?

Posted: Tue Oct 08, 2024 2:00 pm
by FoxbatStargazer

"Normal" scale will make the scaler abide by your vscale_mode setting in mister.ini. If its 0 it will fill the screen, 1 will be vertical integer scaling, 2 will do half-integer steps, etc. Many (but not all) cores that have a 5x cut/216p option require vscale_mode=0 for it to work.

V-integer will mostly ovveride your vscale_mode setting and force a whole vertical integer scale, with the horizontal following the core's aspect ratio.

HV-Integer introduces whole horizontal integer scaling. By default it will tend to go to the closest whether that's wider or narrower. + will force it to go wider than default (round up) while - will make it go narrower (round down.)

Things get complicated if your output is actually wider than your display resolution (i.e. some handheld cores for 4:3 output. Also vscale_mode 5 and 6 change the output resolution by logic I don't fully understand.

Most of these settings have no effect on the analog output (unless you use vga_scaler, in which case all of them do.) The only one that tends to have an effect is the settings some cores have for visible area (i.e. border or 5x cut.) Even in that case its not going to add a framebuffer, that would only be for a handful of handheld cores that have explicit buffering options.


Re: How exactly does the "Scale" option under "Audio & Video" work?

Posted: Wed Oct 09, 2024 1:31 pm
by neogeo81
setiawan wrote: Tue Oct 08, 2024 10:28 am

Basically the subject. I've seen people talk about using it, and from what I've observed, it seems to affect the horizontal scaling. It doesn't seem to work consistently on all cores though.

I've not been able to find any documentation on this, so rather than guess, I was hoping someone could tell me what the different options are meant to do, what options (if any) are required for it to take effect, whether it introduces a framebuffer when using the VGA analog output, etc.

Any clarification around this is much appreciated, thanks!

https://mister-devel.github.io/MkDocs_MiSTer/


Re: How exactly does the "Scale" option under "Audio & Video" work?

Posted: Wed Oct 09, 2024 1:35 pm
by FPGA64