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

    RetroPie 4.7.1: Trouble getting custom_viewport_... settings to work

    Scheduled Pinned Locked Moved Help and Support
    configconfigs
    9 Posts 2 Posters 602 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.
    • AlturisA
      Alturis
      last edited by

      I have been away for some time but recently upgraded my Pi 3 B+ to a Pi 4 and was in the process of migrating my RetroPie setup. Started with a fresh install of RetroPie as I had read on here that the differences in hardware require that.

      I am seeing that my settings for custom_viewport_width/height/x/y are no longer functioning and wondering if this works differently now. Did a search in the forums for custom_viewport and not seeing anything that sounds like that would be the case.

      Example:
      /opt/retropie/configs/gba/retroarch.cfg

      aspect_ratio_index = "22"
      custom_viewport_width = "960"
      custom_viewport_height = "640"
      custom_viewport_x = "480"
      custom_viewport_y = "220"
      
      input_overlay = "/opt/retropie/emulators/retroarch/overlays/arcade-bezels/gba_udb-ovl.cfg"
      input_overlay_enable = "true"
      input_overlay_opacity = "0.900000"
      input_overlay_scale = "1.000000"
      input_remapping_directory = "/opt/retropie/configs/gba/"
      
      video_shader_enable = "true"
      video_shader = "~/.config/retroarch/shaders/zfast_lcd_standard.glslp"
      
      input_a_btn = "4"
      input_b_btn = "3"
      input_x_btn = "0"
      input_y_btn = "1"
      
      #include "/opt/retropie/configs/all/retroarch.cfg"
      

      Results in it just filling the whole screen top to bottom but cut off at the sides at its aspect ratio.

      RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

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

        RetroArch's list of resolutions have switched the 'custom' aspect ration index to 23 - see https://retropie.org.uk/forum/topic/22553/retroarch-video-settings-not-working/6.

        AlturisA 2 Replies Last reply Reply Quote 0
        • AlturisA
          Alturis @mitu
          last edited by

          @mitu Thank you!

          RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

          1 Reply Last reply Reply Quote 0
          • AlturisA
            Alturis @mitu
            last edited by

            @mitu And now that I think about it I am pretty sure I ran into that previously when it was changed from 21 to 22 or whatever.
            Had forgotten. Thanks again.

            RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

            1 Reply Last reply Reply Quote 0
            • AlturisA
              Alturis @Alturis
              last edited by

              Was thinking about this more and I think this kind of thing could be improved. Software that has unique indexes of an enumeration that are supposed to be referenced in data is a bad thing. What could help this is making aspect_ratio_index accept either indexes (for backward compatibility) or enumeration names.

              If one could set

              aspect_ratio_index = "custom" 
              

              Then no matter how many times new aspect ratio types are changed/added/removed everyone's configurations will continue to work fine. (as long as those configuration enum names have not been removed)

              RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

              AlturisA 1 Reply Last reply Reply Quote 0
              • AlturisA
                Alturis @Alturis
                last edited by

                And interestingly, with a fresh install of RetroPie 4.7.1 the comments in the main retroarch.cfg are not up to date

                /opt/retropie/configs/all/retroarch.cfg

                # Index of the aspect ratio selection in the menu.
                # 19 = Config, 20 = 1:1 PAR, 21 = Core Provided, 22 = Custom Aspect Ratio
                # aspect_ratio_index = 19
                

                RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

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

                  @alturis said in RetroPie 4.7.1: Trouble getting custom_viewport_... settings to work:

                  And interestingly, with a fresh install of RetroPie 4.7.1 the comments in the main retroarch.cfg are not up to date

                  The file is copied verbatim from RetroArch's source - https://github.com/libretro/RetroArch/blob/master/retroarch.cfg - and customized with RetroPie's defaults.

                  AlturisA 1 Reply Last reply Reply Quote 0
                  • AlturisA
                    Alturis @mitu
                    last edited by

                    @mitu Yeah it appears to be wrong there as well. Are you suggesting I fix that myself in the github project? Happy to but don't want to step on anyone's toes.

                    RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

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

                      @alturis said in RetroPie 4.7.1: Trouble getting custom_viewport_... settings to work:

                      Are you suggesting I fix that myself in the github project?

                      The file is from the upstream Retroarch's repository - you can submit a PR there to have it fixed.

                      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.