RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Daphne shows screen tearing on Raspi 3B with RetroPie 4.4

    Scheduled Pinned Locked Moved Help and Support
    daphnevsynctearing
    15 Posts 4 Posters 3.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DougAD
      DougA
      last edited by

      @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."

      1 Reply Last reply Reply Quote 0
      • G
        grant2258 Banned @Clyde
        last edited by grant2258

        @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

        ClydeC 1 Reply Last reply Reply Quote 0
        • ClydeC
          Clyde @grant2258
          last edited by

          @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?

          G 1 Reply Last reply Reply Quote 0
          • G
            grant2258 Banned @Clyde
            last edited by grant2258

            @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.

            ClydeC 1 Reply Last reply Reply Quote 0
            • G
              grant2258 Banned
              last edited by

              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.

              mediamogulM 1 Reply Last reply Reply Quote 0
              • mediamogulM
                mediamogul Global Moderator @grant2258
                last edited by mediamogul

                @grant2258

                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.

                RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                G 1 Reply Last reply Reply Quote 0
                • G
                  grant2258 Banned @mediamogul
                  last edited by

                  @mediamogul said in Daphne shows screen tearing on Raspi 3B with RetroPie 4.4:

                  @grant2258

                  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.

                  1 Reply Last reply Reply Quote 0
                  • ClydeC
                    Clyde @grant2258
                    last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • G
                      grant2258 Banned
                      last edited by

                      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/pkgconfig

                      git clone https://github.com/grant2258/hypseus.git
                      cd hypseus/

                      mkdir build
                      cd build
                      cmake ../src
                      make -j4

                      cp ../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

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        grant2258 Banned @grant2258
                        last edited by grant2258

                        @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 :)

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        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.