spedo_76
Posts: 1
Joined: Tue May 07, 2024 9:55 am

Real game resolution

Hello everyone.
I'm developing my own front end for mame. In order to extract the game list and features I extract the xml file from mame by running the commandline -listxml.

In this output document are present all the games with relative features and properties and among them is present the resolution.
For some games this seems to be correct, like for ghouls'n ghosts, a cps1 game, where in the file we can find this related line:

<display tag="screen" type="raster" rotate="0" width="384" height="224" refresh="59.637405" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="262" vbend="16" vbstart="240" />

For other games like tekken 3 it is present a resolution of 640x480 but the game runs at a resolution of 512x240 like displayed in the game info inside mame.

<display tag="screen" type="raster" rotate="0" width="640" height="480" refresh="60.000000" />

Where it is possible to obtain the correct resolution, the correct one used and displayed while emulating?

Please help :)!
Thanks
User avatar
Tafoid
Posts: 352
Joined: Thu Nov 06, 2014 12:50 pm
Location: USA
Contact: Website

Re: Real game resolution

spedo_76 wrote: Wed May 08, 2024 8:29 am Hello everyone.
I'm developing my own front end for mame. In order to extract the game list and features I extract the xml file from mame by running the commandline -listxml.

In this output document are present all the games with relative features and properties and among them is present the resolution.
For some games this seems to be correct, like for ghouls'n ghosts, a cps1 game, where in the file we can find this related line:

<display tag="screen" type="raster" rotate="0" width="384" height="224" refresh="59.637405" pixclock="8000000" htotal="512" hbend="64" hbstart="448" vtotal="262" vbend="16" vbstart="240" />

For other games like tekken 3 it is present a resolution of 640x480 but the game runs at a resolution of 512x240 like displayed in the game info inside mame.

<display tag="screen" type="raster" rotate="0" width="640" height="480" refresh="60.000000" />

Where it is possible to obtain the correct resolution, the correct one used and displayed while emulating?

Please help :)!
Thanks

As I understand things, the XML outputs the starting (base) resolution for the machine in question. Some machines/hardware can change resolution on-the-fly which makes what you ask ne'er impossible (Playstation hardware specifically comes to mind). There is a possibility that a properly created LUA script could poll the emulation for current resolutions values - not certain though. Someone else may have a solution.

Return to “MAME Discussion”