Skip to content

sega/megadriv.cpp, sega/mdconsole.cpp, video/315_5313.cpp: Allow LCM scaling for handle mismatch 32x vs megadriv vdp horizontal screen width case#14884

Open
cam900 wants to merge 4 commits intomamedev:masterfrom
cam900:mega32x_lcm

Conversation

@cam900
Copy link
Contributor

@cam900 cam900 commented Jan 29, 2026

H32 mode in 32x used at nflqb (still not support yet in MAME)

…ismatch 32x vs megadriv vdp horizontal screen width case

H32 mode in 32x used at nflqb (still not support yet in MAME)
32x screen width is fixed to 320 pixels.
@cam900 cam900 changed the title sega/megadriv.cpp, sega/mdconsole.cpp: Allow LCM scaling for handle mismatch 32x vs megadriv vdp horizontal screen width case sega/megadriv.cpp, sega/mdconsole.cpp, video/315_5313.cpp: Allow LCM scaling for handle mismatch 32x vs megadriv vdp horizontal screen width case Jan 29, 2026
Copy link
Member

@angelosa angelosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this, it looks a timing drift nightmare on something that already has timing issues for a game that doesn't even work because the base driver needs the cart rewrite.

screen_device &screen(SCREEN(config, "megadriv", SCREEN_TYPE_RASTER));
screen.set_refresh_hz(double(OSC1_CLOCK) / 10.0 / 262.0 / 342.0); // same as SMS?
// screen.set_refresh_hz(double(OSC1_CLOCK) / 8.0 / 262.0 / 427.0); // or 427 Htotal?
screen.set_refresh_hz(double(OSC1_CLOCK) / 3420.0 / 262.0); // 3420 clock per scanline
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3420 x 262 screenshot memes for a game that don't even boot ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants