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

    How does runcommand change the resolution?

    Scheduled Pinned Locked Moved Help and Support
    help and suppor
    5 Posts 2 Posters 464 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.
    • M
      McCarthy
      last edited by

      Hi ladies and gentlemen,
      I ask myself how runcommand changes the resolution for an emulator. The problem I have is that my on Raspbian installed Hatari runs pretty slow. I assume it’s because of the used resolution 1920x1080. The Retropie version is much faster. Is it a simple “fbset -xres 640 -yres 480” for example?
      Thanks in advance 😊

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Runcommand also changes the monitor's resolution with tvservice. So it's something like

        # Switch to DMT 640x480
        tvservice -e "DMT 4"
        fbset --geometry 640 480 640 480 32
        

        However, this may not be the only reason why your Hatari is slow, maybe it's using software rendering for the video output instead of an accelerated GL codepath.

        M 1 Reply Last reply Reply Quote 0
        • M
          McCarthy @mitu
          last edited by

          @mitu
          when I install it from the Raspbian repo shouldn’t it be running hardware accelerated out of the box? Is there a manual around for compiling parameters, I guess it has to use SDL2.

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @McCarthy
            last edited by mitu

            @McCarthy RetroPie installs a slightly patched version of SDL2, which activates the RPI video driver by default, I think the Raspbian version uses X11 by default - which might not have hardware acceleration by default.

            M 1 Reply Last reply Reply Quote 0
            • M
              McCarthy @mitu
              last edited by

              @mitu
              Thanks for clarifying :)

              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.