RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    crt-pi shader users - reduce scaling artifacts with these configs in lr-mame2003, lr-fbalpha, lr-nestopia (and more to come)

    Scheduled Pinned Locked Moved Ideas and Development
    crt-pi shadercrt-picrt-pi-verticalshaderslr-mame2003
    385 Posts 42 Posters 259.5k 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.
    • A
      Aksen
      last edited by

      Hi all! I'm wondering if I can apply this method to the picade cabinet I'm working on - The resolution is 1024x768, and I'm going to be using MajorDangerNine's romsets from here:

      https://retropie.org.uk/forum/topic/20348/all-in-one-overclocked-rpi3b-arcade-rom-set-setup

      This uses FBA v0.2.97.44, MAME 2003 Plus, and MAME 2010.

      DarksaviorD 1 Reply Last reply Reply Quote 0
      • DarksaviorD
        Darksavior @Aksen
        last edited by

        @Aksen Shaders work best at 1080p. With that low res, I don't think it's worth using shaders.

        A 1 Reply Last reply Reply Quote 0
        • A
          Aksen @Darksavior
          last edited by

          @Darksavior Maybe so, but I still like 'em

          1 Reply Last reply Reply Quote 0
          • sergioadS
            sergioad @dankcushions
            last edited by

            @dankcushions I tried to get the console configs for the x768 resolution and the link is broken; my TV uses an odd 720p resolution (the previously mentioned) and I want those bars gone :)

            dankcushionsD 1 Reply Last reply Reply Quote 0
            • dankcushionsD
              dankcushions Global Moderator @sergioad
              last edited by

              all the cfgs are available here: https://drive.google.com/open?id=0B_51EcTfJiTqME44R3E3ZU5kdFU

              however they won't work as per https://github.com/libretro/RetroArch/issues/7536

              i need to fix the script and rebuild them all but my (tiny) protest about how retroarch handles unneeded and (IMO) foolish config changes like these is to not fix the mess they create (i probably will once they actually respond to my issue, though)

              sergioadS 1 Reply Last reply Reply Quote 0
              • RiverstormR
                Riverstorm
                last edited by Riverstorm

                A temporary workaround of what changed and needs to be modified in the script can be found in this thread in the last post.

                Here's a link to the script. You can use something like Notepad++ to make the modifications. It's only a few lines and it works well.

                I could upload them. I think I have a few scripts modified for the mame2003/FBA and mame2003-plus/FBA changes using either the crt-pi or zfast shader.

                O 1 Reply Last reply Reply Quote 1
                • sergioadS
                  sergioad @dankcushions
                  last edited by

                  @dankcushions @Riverstorm thanks to both of you

                  1 Reply Last reply Reply Quote 0
                  • F
                    fomt
                    last edited by

                    Hello again. Last time I used these configs for my 1080p I didnt really know how to use them, i had ”core privided” to every game so I guess these configs never worked. 😵
                    Now i’m want to use them on a new install, and I have put them in the desire folders, and the shaders are working. If I change from ”core privided” to ”custum” in retroarch then I think the aspect ratio works to. Am I doing it correct? Should I have it on custom only or should I also have ”integer scale” on?
                    If yes, how do I set ”custom” as default? As now I have to change in every game. Should I edit retroarch.cfg?

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      fomt @fomt
                      last edited by fomt

                      Think I must change:
                      aspect_ratio_index = "22"
                      to
                      aspect_ratio_index = "23"

                      EDIT:
                      Yep, 23 works, custom must have been changed from 22 to 23

                      F 1 Reply Last reply Reply Quote 0
                      • F
                        fomt @fomt
                        last edited by fomt

                        should I add "video_scale_integer =true" in /opt/retropie/configs/arcade/retroarch.cfg ?
                        @dankcushions

                        dankcushionsD 1 Reply Last reply Reply Quote 0
                        • dankcushionsD
                          dankcushions Global Moderator @fomt
                          last edited by

                          @fomt said in crt-pi shader users - reduce scaling artifacts with these configs in lr-mame2003, lr-fbalpha, lr-nestopia (and more to come):

                          should I add "video_scale_integer =true" in /opt/retropie/configs/arcade/retroarch.cfg ?
                          @dankcushions

                          no :)

                          F 1 Reply Last reply Reply Quote 0
                          • F
                            fomt @dankcushions
                            last edited by fomt

                            @dankcushions No? What should I do then?
                            So then I guess integer scale should be OFF?

                            dankcushionsD 1 Reply Last reply Reply Quote 0
                            • dankcushionsD
                              dankcushions Global Moderator @fomt
                              last edited by

                              @fomt integer scaling is off by default in retropie, so you shouldn't have to do anything in that regard. i think you should scroll up a bit to see the recent discussions about retroarch's config changes. specifically: https://retropie.org.uk/forum/post/183831

                              F 1 Reply Last reply Reply Quote 0
                              • F
                                fomt @dankcushions
                                last edited by fomt

                                @dankcushions ok, shall read. Red on another forum that they added a new aspect ratio to the index. so the custom 22 has moved to 23 instead.
                                So I just run in powershell:

                                Get-ChildItem 'f:\cfg\*.cfg' -Recurse | ForEach {
                                (Get-Content $_ | ForEach { $_ -replace 'aspect_ratio_index = "22"', 'aspect_ratio_index = "23"' }) |
                                Set-Content $_
                                }
                                

                                then added them do the dirs in retropie, works great..

                                1 Reply Last reply Reply Quote 0
                                • RiverstormR
                                  Riverstorm
                                  last edited by Riverstorm

                                  @fomt - Integer scaling would interfere and takes priority over the custom viewports so you would want to leave it off. As @dankcushions pointed out it's probably off unless you turned it on.

                                  You already found the index change but also make sure you're in .cfg files are in the correct directory /opt/retropie/configs/all/retroarch/config/MAME (0.78) or /opt/retropie/configs/all/retroarch/config/MAME 2003-Plus. That was a change that happened at some point too.

                                  If they are in the correct directory and you're using the correct index it will automatically show Custom due to every .cfg files basically is a custom viewport with a shader.

                                  If you it doesn't show Custom but the shader or an incorrect shader is working then it's probably been enabled on another level like the global, system or ROM. It shouldn't be set in core as these custom configs are core level.

                                  I guess also it might show Custom but be incorrect due to integer scaling. Basically in certain scenarios the video options don't display accurately depending on combinations of options set or also some backdrops will force resolution changes too.

                                  F 1 Reply Last reply Reply Quote 0
                                  • F
                                    fomt @Riverstorm
                                    last edited by fomt

                                    @Riverstorm Thank for the info
                                    @dankcushions On another TV the screenmode is 1360x768. Tried to create cfg's with the script but I only got this in the config files,

                                    # Auto-generated crt-pi.glslp .cfg
                                    # Place in /opt/retropie/configs/all/retroarch/config/mame2003/
                                    video_shader_enable = "false"
                                    

                                    Do I have to change something in the script?
                                    Or if you have time to create a zip with 1360x768 I would be thankfull

                                    EDIT:
                                    It appears that my TV can handle 1366x768 resolution, so I will download those configs instead.

                                    1 Reply Last reply Reply Quote 0
                                    • O
                                      omitrix02 @Riverstorm
                                      last edited by

                                      @Riverstorm Could you please upload those modified scripts for the zfast shader, it'd be a real help.

                                      1 Reply Last reply Reply Quote 0
                                      • DarksaviorD
                                        Darksavior
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • RiverstormR
                                          Riverstorm
                                          last edited by Riverstorm

                                          @omitrix02 - Here's a download link to the script files. It's been quite a while since I used them but they should still be valid. There's 8 files in the zip.

                                          1. crt-pi - mame2003
                                          2. crt-pi - mame2003-plus
                                          3. zfast - mame2003
                                          4. zfast - mame2003-plus

                                          I modified the scripts so they could also be used for mame2003-plus. They are identical cores except for a few hundred games. Mostly mame2003-plus exclusives but there's also around a dozen or so that are 2003 only.

                                          If a game is not in one of the resolution_db files (as they are getting older now) you can add an entry fairly easy by looking at what information is needed. It's a flat text file, one game entry per line and most of the fields are unused.

                                          Another option is to find a clone or parent ROM .cfg file that has already been generated for the core and just copy/rename it. For example you can easily use the Donkey Kong .cfg file for Donkey Kong Remix, etc.

                                          The other 4 files in the archive are just batch files to create both a 720 and 1080 set of cfgs at the same time. You can modify the batch file and add/remove the resolutions you would like to use for your setup. They aren't needed though if you prefer to just run python script from the command line.

                                          Also I haven't updated FBA in a while (still running lr-fbalpha) so I don't know the exact path changes for new FBNeo core rename or I would modify it.

                                          O ectoE 2 Replies Last reply Reply Quote 0
                                          • O
                                            omitrix02 @Riverstorm
                                            last edited by

                                            @Riverstorm Thanks for the scripts, as well as the detailed explanation, but I'm getting the same issue when I was editing the script myself: when using the zfast shader alongside curvature, the resulting configs will have completely empty lines. This only occurs with the zfast shader and curvature, as crt-pi works perfectly in all cases and zfast works when using 1920x1080.

                                            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.