MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Lord Nightmare
Speech Synth Berzerker
Reged: 03/08/04
Posts: 855
Loc: PA, USA
Send PM
Re: Question about cocktail mode screen flipping bugs in Mame.
12/28/12 06:04 AM


> I recently build myself a cocktail cabinet for running Mame.
>
> I noticed that a fair number of games don't properly handle screen flipping in
> cocktail mode and since I am also a c programmer from way back I figured that I might
> be able to help get them fixed.
>
> In looking at the code for a bunch of games it looks like the code for handling
> screen flipping is duplicated in a lot of places over and over. I was wondering why
> each game would duplicate the flip screen code when Mame seems to have a global
> rotate setting that might be able to be used for just that purpose. For example,
> instead of each game rendering it's pixmap rotated, it just modifies the global
> rotation setting and draws the pixmap as normal.
>
> Am I missing something?
>
> Thanks
> Kevin Pickell

Yes; every single hardware platform emulated by mame implements its own variant of screen flipping; not all of them are equivalent (some are); some the sprites are offset differently when the screen is flipped, and the background layers behave differently; some don't. The way screen flipping was implemented on each piece of arcade hardware is unique (well, almost always unique), and to properly emulate it requires figuring out the details from schematics (when we have them!) or by guessing based on other behavior (when we don't). It is not an easy task, but if you want to help work on it, you're more than welcome to! We could use the help.

LN


"When life gives you zombies... *CHA-CHIK!* ...you make zombie-ade!"







Entire thread
Subject Posted by Posted on
* Question about cocktail mode screen flipping bugs in Mame. KpexEA 12/28/12 02:43 AM
. * Re: Question about cocktail mode screen flipping bugs in Mame. grog  12/28/12 03:40 PM
. * Re: Question about cocktail mode screen flipping bugs in Mame. KpexEA  12/28/12 06:50 PM
. * Re: Question about cocktail mode screen flipping bugs in Mame. Lord Nightmare  12/28/12 06:04 AM
. * Re: Question about cocktail mode screen flipping bugs in Mame. R. Belmont  12/28/12 07:23 PM

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