irixxxx / picodrive

Fast MegaDrive/MegaCD/32X emulator
Other
52 stars 24 forks source link

Screen scaling on RG350M #21

Closed Medard22 closed 3 years ago

Medard22 commented 3 years ago

The latest version PicoDrive-opendingux_1.98.opk doesn´t work well on my RG350M, the output is not scaled at all. It shows a small window in the middle of the screen. There is no option to scale the output to fullscreen.

rchrdcrg commented 3 years ago

Are you on the OpenDingux Beta or on another firmware like stock 1.5.1 or Rogue?

Medard22 commented 3 years ago

Stock firmware with HDMI update from here - https://github.com/retrogamehandheld/rg350m/wiki/Firmware-and-software-updates

irixxxx commented 3 years ago

I've just checked the release opk on my rg350m. It's working as expected, however I don't have the HDMI version, just the stock firmware that came with the device. What exactly isn't scaled for you?

Medard22 commented 3 years ago

It seems to run in 320x240 resolution and doesn´t scale at all. Only possible output is SDL window. IMG20210428125451

irixxxx commented 3 years ago

Picodrive just uses the resolution offered by the device which in my case is 320x240. Upscalig to screen resolution is handled automatically somewhere else. That leaves the question why your device is defaulting to the screen resolution.

Medard22 commented 3 years ago

I have no idea, but the 1.97 release works fine.

irixxxx commented 3 years ago

It doesn't seem to be possible to detect whether there is hardware scaling available. Just setting the resolution of the emulator screen to 320x240 fails on some platforms, sometimes even without returning an error - the screen is just black or distorted in that case. Would a setting to set the "SDL window resolution" to either "default" or "320x240" be an acceptable solution? The menu screen would in that case always use the default resolution to avoid a failed menu display.

zeroix15 commented 3 years ago

are you using simple menu to launch the emulator? this is one of the reason why the screen is not scaled properly try launching it direcly from gmenu2x

Medard22 commented 3 years ago

I am using Esoteric. I will try to launch it from gmenu2x later on.

irixxxx commented 3 years ago

I've added a currently invisible option to set the screen format to 320x240 in SDL window mode. Are you able to compile a version for rg350? I can supply information about enabling the option.

Medard22 commented 3 years ago

@zeroix15 was right. When launched from gmenu2X the scaling works perfectly. The problem is only when I launch it via Esoteric. I wonder why it´s so. I use the standard 320x240 resolution and don´t use any high-resolution skin.

@irixxxx Sorry I really don´t know how to compile it. I could try to set it up if you give me instructions. Or, if you send me the opk , I can test it right away.

zeroix15 commented 3 years ago

if that's the case then its the bug on esoteric, it also happen at the old version of simplemenu, but fixed after an update from the devs

Medard22 commented 3 years ago

Damn, that's bad. Esoteric doesn't look like it´s being actively developed anymore. I guess I can´t expect them to fix it on their side.

irixxxx commented 3 years ago

Well, I don't know if it really works (can't check since I'm not at home). Anyway, try this, it should have a scaling option in the display section:

PicoDrive.opk.gz

Medard22 commented 3 years ago

@irixxxx Works great. Fixed :)

irixxxx commented 3 years ago

I've reworked the larger part of the scaling logic with d5d1778, adding software scaling and some handling for correct display aspect ratio. I sincerely hope this is finally solved ;-)