MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Mariosgeorgiou
MAME Fan
Reged: 06/09/16
Posts: 22
Send PM


Prescale setting maximum value
#364157 - 03/09/17 09:23 PM


What is the maximum value i can set to the Prescale setting in
mame.ini file in the latest version of mame? I thing it reverts to default 1 when i put a higher number to this setting without knowing the maximum value mame supports.



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: Prescale setting maximum value new [Re: Mariosgeorgiou]
#364174 - 03/10/17 06:45 AM


According to an old blog entry from Aaron Giles, the value for the -prescale parameter is an integer from 1 to 8.

But in practice, I think the maximum is limited by the resolution of your monitor.

For example street fighter has a resolution of 384 × 224.
Assuming a typical monitor with 1920 x 1080 resolution...

If you set prescale 1, the screen is rendered at 384×224 before scaling up to your monitor resolution and...

prescale 2 = 768 x 448 before scaling up
prescale 3 = 1152 x 672 before scaling up
prescale 4 = 1536 x 896 before scaling up
prescale 5 = 1920 x 1120 before scaling up
etc...

Note that the vertical at prescale 5 is taller than the monitor's native resolution...
1120 > 1080

So I believe that the highest prescale that would work for Street Fighter and a 1920 x 1080 monitor is prescale 4.


http://docs.mamedev.org/commandline/windowsconfig.html

Quote:


-prescale

Controls the size of the screen images when they are passed off to the graphics system for scaling. At the minimum setting of 1, the screen is rendered at its original resolution before being scaled. At higher settings, the screen is expanded by a factor of before being scaled. With -video d3d, this produces a less blurry image at the expense of some speed. The default is 1.





GroovyMAME support forum on BYOAC



Mariosgeorgiou
MAME Fan
Reged: 06/09/16
Posts: 22
Send PM


Re: Prescale setting maximum value new [Re: krick]
#364175 - 03/10/17 10:19 AM


> According to an old blog entry from Aaron Giles, the value for the -prescale
> parameter is an integer from 1 to 8.
>
> But in practice, I think the maximum is limited by the resolution of your monitor.
>
> For example street fighter has a resolution of 384 × 224.
> Assuming a typical monitor with 1920 x 1080 resolution...
>
> If you set prescale 1, the screen is rendered at 384×224 before scaling up to your
> monitor resolution and...
>
> prescale 2 = 768 x 448 before scaling up
> prescale 3 = 1152 x 672 before scaling up
> prescale 4 = 1536 x 896 before scaling up
> prescale 5 = 1920 x 1120 before scaling up
> etc...
>
> Note that the vertical at prescale 5 is taller than the monitor's native
> resolution...
> 1120 > 1080
>
> So I believe that the highest prescale that would work for Street Fighter and a 1920
> x 1080 monitor is prescale 4.
>
>
> http://docs.mamedev.org/commandline/windowsconfig.html
> -prescale
>
> Controls the size of the screen images when they are passed off to the graphics
> system for scaling. At the minimum setting of 1, the screen is rendered at its
> original resolution before being scaled. At higher settings, the screen is expanded
> by a factor of before being scaled. With -video d3d, this produces a less blurry
> image at the expense of some speed. The default is 1.

When i run the mame -prescale x command beyond value 3 from command line it says 'invalid command, reverting to 1'.



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: Prescale setting maximum value new [Re: Mariosgeorgiou]
#364182 - 03/11/17 06:44 AM


> When i run the mame -prescale x command beyond value 3 from command line it says
> 'invalid command, reverting to 1'.

Yep. I just looked at the source code and the valid values for prescale are 1, 2, or 3.

I don't see the harm in allowing higher prescale values. I don't know why it's capped at 3. 1-8 seems completely reasonable to me. Maybe one of the MAME devs will comment on this thread and explain the reason for the cap.



GroovyMAME support forum on BYOAC


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 138 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2374