MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Haze
Reged: 09/23/03
Posts: 5244
Send PM
Re: MAME weird pixel stretching on SNES games
01/09/18 01:19 AM


> I was under the impression this is just a MAME thing. Shouldn’t it be possible to
> allow for resolution to switch dependent on the mode?

real resolution switching isn't instant, so is automatically out.

low-resolution and high-resolution scanlines can be mixed, this was very common on platforms like the Amstrad CPC (and even used on things like Doom for the Jaguar) in such cases part of the screen would need to be pixel doubled anyway, so the effect wouldn't work anyway, the shaders wouldn't know how to deal with some lines being high resolution and others low resolution for the same reasons.

fake resolution switching would still require the higher resolution screenmode in advance anyway due to the ability to mix modes, it would also just complicate the code as it already has to be able to double pixels etc. to handle the aformentioned case.

and as already stated, some systems mix resolutions, so there's no chance of it working there (and trying to use any shaders like the ones mentioned would just make a hideous mess)

It's a limitation of shaders that assume things about relative pixels etc.

MAME just does it in the way that actually works for emulation cases.

Don't use crap shaders. This is one reason MAMEdev were against adding such shaders for a long time.

even if MAME was to stop using internal bitmaps, and use a series of lines of variable length, and try to do the scaling outside of the driver that would fail completely for cases where different layers are different resolutions.

what you could do for the SNES case is write a shader that knows the expected resolution and knows some pixels are going to be stretched and some might be higher resolution, checks that they're all the same colour, and disables the effect if they're not (which would indicate a high resolution part) otherwise processes it, but that's extra work. It's all about shaders making bad assumptions tho, they only really work if you dumb down the cases your emulator can otherwise handle properly.







Entire thread
Subject Posted by Posted on
* MAME weird pixel stretching on SNES games Marcelo_20XX 01/09/18 12:19 AM
. * Re: MAME weird pixel stretching on SNES games TafoidAdministrator  01/09/18 10:05 PM
. * Re: MAME weird pixel stretching on SNES games Marcelo_20XX  01/09/18 10:35 PM
. * Re: MAME weird pixel stretching on SNES games Haze  01/09/18 12:30 AM
. * Re: MAME weird pixel stretching on SNES games anikom15  01/09/18 12:48 AM
. * Re: MAME weird pixel stretching on SNES games Haze  01/09/18 01:19 AM
. * Re: MAME weird pixel stretching on SNES games smf  01/09/18 03:44 PM
. * Re: MAME weird pixel stretching on SNES games Haze  01/09/18 05:48 PM
. * Re: MAME weird pixel stretching on SNES games smf  01/09/18 09:03 PM
. * Re: MAME weird pixel stretching on SNES games Haze  01/09/18 09:12 PM
. * Re: MAME weird pixel stretching on SNES games anikom15  01/09/18 01:58 AM
. * Re: MAME weird pixel stretching on SNES games Marcelo_20XX  01/09/18 01:38 AM
. * Re: MAME weird pixel stretching on SNES games Haze  01/09/18 02:02 AM
. * Re: MAME weird pixel stretching on SNES games Marcelo_20XX  01/09/18 02:40 AM
. * Re: MAME weird pixel stretching on SNES games Haze  01/09/18 02:59 AM
. * Re: MAME weird pixel stretching on SNES games Marcelo_20XX  01/09/18 03:06 AM
. * Re: MAME weird pixel stretching on SNES games anikom15  01/09/18 03:13 AM
. * Re: MAME weird pixel stretching on SNES games Marcelo_20XX  01/09/18 03:21 AM
. * Re: MAME weird pixel stretching on SNES games Haze  01/09/18 03:26 AM
. * Re: MAME weird pixel stretching on SNES games Dullaron  01/09/18 01:11 PM
. * Re: MAME weird pixel stretching on SNES games Marcelo_20XX  01/09/18 06:33 PM
. * Re: MAME weird pixel stretching on SNES games anikom15  01/09/18 04:35 AM
. * Re: MAME weird pixel stretching on SNES games smf  01/09/18 03:29 PM
. * Re: MAME weird pixel stretching on SNES games Haze  01/09/18 04:53 AM

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