• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

Custom viewports not working?!?

Scheduled Pinned Locked Moved Help and Support
viewport
4 Posts 3 Posters 1.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.
  • R
    Ronoh55
    last edited by 2 Jan 2019, 22:34

    I got a pi3B+ for Christmas and went to setting it up with a fresh install of retropie 4.4

    After struggling with getting overlays working (turns out RetroArch doesn't like images bigger than 1920x1080) I'm trying to get my viewport to fit inside the overlay. No matter what settings I change I either have a "full screen" default display or a display that's seems to be correct but cannot be changed by the custom_viewport_width/height options.
    video_scale_integer is the only option that seems to work and is what changes between the 2 sizes.

    This is my .cfg in /opt/retropie/configs/snes/

    # All settings made here will override the global settings for the current emulator core
    
    #video_shader = /opt/retropie/emulators/retroarch/shader/ntsc-pass4.glsl
    #video_shader_enable = true
    #video_smooth = false
    
    input_overlay = "/opt/retropie/emulators/retroarch/overlays/arcade-bezels/SuperNintendoEurope-glare.cfg"
    input_overlay_enable = "True"
    input_overlay_opacity = "0.900000"
    input_overlay_scale = "1.000000"
    
    video_scale_integer = false
    # 20 = Config, 21 = 1:1 PAR, 22 = Core Provided, 23 = Custom Viewport
    aspect_ratio_index = “22”
    
    # these two define the pixel size of the emulated screen
    # keep this in the same ratio as the original console
    # eg: GBA 240x160 * 3 = 720 x 480
    custom_viewport_width = “960”
    custom_viewport_height = "720”
    
    # the following two decide how far from the left and top the game screen is shown
    # to centre the game display use your original resolution, minus the screen size, divided by two
    # this example for 1080p screen (1920x1080)
    # (1920 - 720) / 2 = 600
    custom_viewport_x = “480”
    custom_viewport_y = “180”
    
    
    #include "/opt/retropie/configs/all/retroarch.cfg"
    
    

    On a side note, the irc doesn't work anymore? It says I have to register or something.

    M D 2 Replies Last reply 3 Jan 2019, 04:41 Reply Quote 0
    • M
      mitu Global Moderator @Ronoh55
      last edited by 3 Jan 2019, 04:41

      @Ronoh55 There was a change in RetroArch at some point, you need to use aspect_ratio_index=23 now since they've added a new resolution in the list. See this topic for the change.

      1 Reply Last reply Reply Quote 0
      • R
        Ronoh55
        last edited by 3 Jan 2019, 04:47

        I saw this, and had changed it between the 2 options with no difference in the problem.
        Fortunately I was finally able to pull the old cfg from my pi2 to the new pi and got it working!

        Now if only I could get the irc channel working lol

        1 Reply Last reply Reply Quote 0
        • D
          dankcushions Global Moderator @Ronoh55
          last edited by 3 Jan 2019, 07:03

          @Ronoh55
          FYI - think your issue with this one would be wrong quote signs used. eg:

          custom_viewport_width = “960”
          custom_viewport_height = "720”
          

          note the different types of quote signs you’ve used around the numbers. only the vertical ones are right - " - not the slanted type. in fact, i’m not sure you need quotes around things like the aspect ratio index, but check an existing config to be sure.

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            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.

            This community forum collects and processes your personal information.
            consent.not_received