Build Your Own Arcade Controls Forum

Software Support => GroovyMAME => Topic started by: billfor on May 05, 2014, 11:52:24 pm

Title: why does groovy mame set resolutions twice (smashtv)
Post by: billfor on May 05, 2014, 11:52:24 pm
I'm noticing that smashtv is playing in the wrong res on my setup. The log file shows that groovymame picks a good one and switches to it, but then it repeats the process and uses the wrong one.

Thanks.

btw the log looks something like:


SwitchRes: Entering switchres_modeline_setup
SwitchRes: v0.015a:[smashtv] Calculating best video mode for 399x253@54.815170 orientation: normal
.
.

Loading cheats file from cheat

Adjusting target speed to 98.2% (hw=54.00Hz, game=54.71Hz, adjusted=53.72Hz)
SwitchRes: Resolution change from 399x253@54.815170 to 410x256@54.706841
SwitchRes: Resolution change to 410x256@54

SwitchRes: Entering switchres_modeline_setup
SwitchRes: v0.015a:[smashtv] Calculating best video mode for 410x256@54.706841 orientation: normal

SwitchRes: [ 240]x[ 160]_(60=59.9370Hz)  << starts looking again
   rng(0):  out of range
   rng(1):  out of range
.
. [ lots of lines]
.
.SwitchRes: [smashtv] (1) horizontal (410x256@54.71)->(800x600@54.71)
   rng(5):  800 x 600_54.707p 34.192 [fract] scale(1, 2, 1) diff(0.00, 10.72, 0.0000) ratio(1.923, 2.344)
SwitchRes: Modeline "800x600_60 34.19KHz 54.71Hz" 35.01 800 832 944 1024 600 601 605 625   -hsync -vsync

This is the one that finally gets used and obviously the game looks wrong....


Title: Re: why does groovy mame set resolutions twice (smashtv)
Post by: Calamity on May 06, 2014, 02:55:17 pm
Hi billfor,

GM is just doing what the game is asking for. In this case the game requests 410x256. As you don't have this resolution available in your system, GM virtualizes it using the highest resolution available. So either add this mode with VMMaker (using ReslList.txt) or use magic resolutions so all imaginable resolutions will be at GM's disposal. The reason this mode is not created by VMMaker in the first place is because MAME doesn't report it through XML. It reports 399x256 instead, but the game switches the video mode later, as many Midway games do btw.
Title: Re: why does groovy mame set resolutions twice (smashtv)
Post by: billfor on May 06, 2014, 09:13:17 pm
Thanks Calamity!

I was using Dynamic Modes rather than the Magic resolutions.  I added 
410 x 256 @ 54.000000 smashtv

and it works great now.

Thanks again.