Daphne shows screen tearing on Raspi 3B with RetroPie 4.4
-
@mediamogul Yes, just this weekend he fixed my joystick problems in Daphne. I will approach him about the rendering if he doesn't stumble upon this thread by himself. ;)
-
@clyde said in Daphne shows screen tearing on Raspi 3B with RetroPie 4.4:
@mediamogul Yes, just this weekend he fixed my joystick problems in Daphne. I will approach him about the rendering if he doesn't stumble upon this thread by himself. ;)
there is nothing we can do for daphne on the hardware acceleration front unless retropi allows opengl acceleration.
I would look at the video on windows and see if its just the way its been ripped. There is a -blend command line from memory that might help this. I used this in windows for dvd rips that werent good.
There is a port of daphne called hypseus for sdl 2 its very much beta though. If your comfortable with compiling and reading the issues on how to get it working you could try that. https://github.com/btolab/hypseus
-pal_dl Tells Daphne that you are using a PAL Philips Dragon's Lair disc instead of an NTSC Dragon's Lair disc. Only relevant when playing the USA version of Dragon's Lair.
-pal_dl_sc Tells Daphne that you are using a PAL Software Corner Dragon's Lair disc instead of an NTSC Dragon's Lair disc. Only relevant when playing the USA version of Dragon's Lair.
-pal_sa Tells Daphne that you are using a PAL Philips Space Ace disc instead of an NTSC Space Ace disc. Only relevant when playing the USA version of Space Ace.
-pal_sa_sc Tells Daphne that you are using a PAL Software Corner Space Ace disc instead of an NTSC Space Ace disc. Only relevant when playing the USA version of Space Ace. -
@grant2258 Hi grant, thanks for answering here. So, Retropie doesn't provide OpenGL? Do you know why that is? (i.e. what is missing technically?)
I could look at the video on my Linux PC, but the tearing doesn't look like encoding glitches. It looks exactly like screen tearing due to missing vsync. So, I don't think it's an encoding problem.
I'll look into Hypseus, thanks for the tip. Do you know if it compiles on Retropie 4.4?
There isn't any
-blend
option mentioned in http://www.daphne-emu.com/mediawiki/index.php/CmdLine , or any other option that sounds promising for this problem. What would this option do, or did you mean another program than Daphne?The CLI options you listed don't seem to fit either, since I don't use any particular disc to play but only the files that Daphne downloaded after verifying my DVDs. Or does Daphne download different files depending on the disc's region?
-
@Clyde Retropie does not use OpenGL. The following text is from the RetropPie setup wiki
"The OpenGL driver for the Raspberry PI VideoCore GPU was introduced to provide hardware accelerated OpenGL for the X11 OpenGL applications, during the Raspbian Jessie version.
RetroPie - and the underlying components - are not using the X11 server for display, enabling the OpenGL driver will not add any features or benefits for the system."
-
@clyde if the video is ripped from pal it will be 50fps ntsc will be 60fps The blend command line option is in the code not sure if its gl only though. Again test daphne in windows see if the results are any better if ist not it will be the encoding.
here is the -blend option from the code it is there
// handles VLDP-specific command line args
bool ldp_vldp::handle_cmdline_arg(const char *arg)
{
bool result = true;if (strcasecmp(arg, "-blend")==0) { g_filter_type |= FILTER_BLEND;
im not sure is it gl only just test it and see if it works. I would have to look through the code to see whats going on there. ive only tested hypseus on my x86 debian box
-
@grant2258 I don't have Windows, so I can't test it in Windows. But I could test it in the Kubuntu Linux on my PC and Laptop. I mean, I will test it as soon as I have the time. Alas, that won't be this week or the coming weekend.
As for OpenGL … I wonder if there's an OpenGL driver in the Raspbian repos that isn't dependant on X11. I may dive deeper into this topic on the web, unless you or someone else here knows for sure that there isn't a non-X11 driver, of course.
Hm … on second thought, is it possible to start a small Xserver from Emulation Station with just Daphne in it and with OpenGL support? Yes, that would be a big effort for a small benefit (no screen tearing), but I always were a "because I can" type of guy. ;) And I know such dedicated Xservers from the past as solutions for other game-related problems, e.g. if a game doesn't like the main desktop resolution or other settings.
One last thing, the CLI options
-nohwaccel
and-opengl
mention hardware acceleration in YUV mode of Daphne. Does anyone know more about this mode (it seems to be the standard mode in Daphne, since-opengl
is there to disable it) and what its requirements are to use hardware acceleration? -
@clyde said in Daphne shows screen tearing on Raspi 3B with RetroPie 4.4:
were
not quite sure what your asking here opengl is the hw acceleration. I dont think anyone is going to take on this project for one emulator unless you want to do it yourself.
if your interested in taking this project one look here https://benosteen.wordpress.com/2012/04/27/using-opengl-es-2-0-on-the-raspberry-pi-without-x-windows/ that a good guide for you to get started on it.
-
to be honest it is a bit concerning and surprising that the retropie daphne repo is supplying copyright material in daphne at https://github.com/RetroPie/daphne-emu/tree/retropie/sound i dont know if this is an oversight in there part or not.
-
Professionally, I've never been directly involved with the legality of distributing samples, but I believe it may fall under fair use depending on the length. Of course, Skywalker Sound brings in a king's ransom every year from officially licensing their libraries, so I don't know. It may only count as fair use if it's trans-formative in some way.
-
@mediamogul said in Daphne shows screen tearing on Raspi 3B with RetroPie 4.4:
Professionally, I've never been directly involved with the legality of distributing samples, but I believe it may fall under fair use depending on the length. Of course, Skywalker Sound brings in a king's ransom every year from officially licensing their libraries, so I don't know. It may only count as fair use if it's trans-formative in some way.
not quite sure how it all works just making sure its know that these samples are there in the reop in case it has just been an oversight.
-
@grant2258 said in Daphne shows screen tearing on Raspi 3B with RetroPie 4.4:
not quite sure what your asking here opengl is the hw acceleration. I dont think anyone is going to take on this project for one emulator unless you want to do it yourself.
I'll try to explain what I mean. The description of
-nohwaccel
says, "Disables hardware acceleration when in YUV mode." – So, there's a YUV mode that has hw acceleration under certain circumstances.The description of
-opengl
says, "Uses OpenGL hardware acceleration instead of hardware YUV overlays." – So, YUV and OpenGL are exclusive, but both provide hw acceleration.Thus, I wonder what hw accelerated YUV is and what it needs for hw acceleration, if not OpenGL.
if your interested in taking this project one look here https://benosteen.wordpress.com/2012/04/27/using-opengl-es-2-0-on-the-raspberry-pi-without-x-windows/ that a good guide for you to get started on it.
Thanks, I'll look into that as well.
-
ok you seem to know what your doing so ill do you a solid here is how to compile and test
cd ~
sudo apt-get install libsdl2-ttf-dev
sudo apt-get install libsdl2-image-dev
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfiggit clone https://github.com/grant2258/hypseus.git
cd hypseus/mkdir build
cd build
cmake ../src
make -j4cp ../doc/hypinput.ini /opt/retropie/emulators/daphne/
mkdir /opt/retropie/emulators/daphne/fonts
cp ../fonts/default.ttf /opt/retropie/emulators/daphne/fonts/
cp hypseus /opt/retropie/emulators/daphne/press f4 to get to command line you need to out of emulationstation for now to test
/opt/retropie/emulators/daphne/hypseus lair2 vldp -framefile /home/pi/RetroPie/roms/daphne/lair.daphne/lair.txt -useoverlaysb 2
use keyboard for now or set the joystickup in hypinput.ini
note this is beta if i missed and instructions let me know its just quick rough guide for you
-
@grant2258 said in Daphne shows screen tearing on Raspi 3B with RetroPie 4.4:
gh guide
if your happy with it all the retropie configuration to run it. im not sure if retropie 4.4 supports sdl2_opengles youll need to ask someone at retropie headquarters if they support this or have and intentions too. it runs very nice on a debian x64 :)
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.