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

    GLSLP Shader Stack Defaults

    Scheduled Pinned Locked Moved Help and Support
    retroarch
    7 Posts 3 Posters 2.4k 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
      MikeS82
      last edited by

      Hello All,

      I am new to both the Forum and RetroPie, having built a machine just few weeks ago. So far I've been able to achieve just about all I've wanted through reading the forum, watching YouTube videos, etc. and have got everything running fairly smoothly. There's been a bit of a learning curve for me, though not too bad, and I like to tinker with things.

      I am running RetroPie rev 4.2.18 on a RPI3 Model B. RetroArch rev 1.6.7.

      Anyway, while getting a feel for RetroArch I was experimenting with the Shaders and inadvertently made some changes I would like to reverse and haven't been able to figure out how. I've tried reading the help files and searching the forums to no avail.

      What I've done for example was load up an SNES game, press Selext+X to pull up the RetroArch menu, went to Quick Menu > Shaders > Load Shader Preset.

      One of the GLSLP presets I loaded was SNES.GSLP, which according to the file under Opt/RetorPie/Configs/All/RetroArch/Shaders should have 2 default shader passes; shaders/bsnes_gamma_ramp.glsl, and snes-hires-blend.glsl.

      It worked as expected when I first loaded it up, but then I started fooling around with the shaders and number of passes. While using SNES.GLSLP, at one point I changed the number of passes from 2 to 1; and the shader from bsnes_gamma_ramp.glsl to stock.glsl. I believe at this point I then selected Apply Shader Changes. Then I set the number of passes to 0, and selected Apply Shader Changes once more.

      What happens now if I load up an SNES game, pull up the Quick Menu and load up SNES.GLSLP is it has 0 passes, if I then change it to 1 it brings up stock.glsl rather than bsnes_gama_ramp.

      I'd like to set the SNES and a few of the other GLSLP presets that I messed with back to their original states.

      I haven't created or saved any system specific that I am aware of, but after applying the changes I made to SNES.GLSLP, it appears to me that RetroArch created, and is now accessing this file from a directory other than \Configs\All\RetorArch\Shaders, as the snes.glslp file in this location still has the original shaders and number of passes.

      I don't see anything saved under \Configs\SNES that looks to be related to the shaders, and my retroarch.cfg file in this directory looks to be stock. It reads:

      "# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line

      input_remapping_directory = "/opt/retropie/configs/snes/"

      #include "/opt/retropie/configs/all/retroarch.cfg""

      I tried updating RetroPie from both the source and binaries but it didn't make any difference. When I load up a GLSLP file I had applied changes to it still brings up my saved changes rather than the defaults.

      I was hoping there is a way, short of re-imaging, to have RetroArch once again load the GLSP file's default settings when I load a shader preset rather than the changes I inadvertently saved.

      Any help on this matter would be very much appreciated. Apologies for the long post.

      Thanks,
      Mike

      1 Reply Last reply Reply Quote 0
      • chipsnblipC
        chipsnblip
        last edited by chipsnblip

        i'm pretty sure renaming (or deleting) the files in /opt/retropie/configs/all/retroarch/shaders/presets/<emulator> should do the trick.
        they can also be edited directly with a text editor.

        M 1 Reply Last reply Reply Quote 0
        • M
          MikeS82 @chipsnblip
          last edited by

          @chipsnblip Thanks for the response.

          I tried deleting the Shaders folder from /opt/retropie/configs/all/retroarch and rebooting the system. It created a new Shaders folder but the directory was empty, it didn't automatically reinstall any of the shader files/presets.

          Next I went to Retropie Setup and updated RetroArch from binaries. This action did reinstall all of the files in the Shaders folder as expected, however if I load an SNES game and then try to apply the snes.glslp preset it still recalls the changes that I had applied prior to deleting the folder and reinstalling.

          The recently reinstalled /opt/retropie/configs/all/retroarch/shaders/snes.glslp file reads:

          shaders = "2"
          shader0 = "shaders/bsnes_gamma_ramp.glsl"
          filter_linear0 = "false"
          wrap_mode0 = "clamp_to_border"
          float_framebuffer0 = "false"
          shader1 = "snes-hires-blend.glsl"
          filter_linear1 = "true"
          wrap_mode1 = "clamp_to_border"
          float_framebuffer1 = "false"

          However, if start a game and then load the preset, the number of passes is still "0." If I manually change the number of passes to "2" it does not automatically select the bsnes gama ramp and snes hires blend shaders per the snes.glslp file, I have to manually select those as well.

          This is telling me that after I originally messed with the GLSLP and applied the changes, it created a file in some other directory that RetroArch is now accessing which overrides the one located in /opt/retropie/configs/all/retroarch/shaders/, because deleting the folder and then reinstalling should have fixed it had that been the case.

          I would have thought any potential overriding file to be stored in /opt/retropie/configs/emulator, but I'm not seeing any files referencing shaders in /configs/snes, nor does the /configs/snes/retroarch.cfg file have any shader entries. This is what is stumping me at the moment.

          By the way, I'm not just worried about snes.glslp, I realize I could save my own custom shader preset with the same parameters if that were the case. I fooled around with several of the GLSLPs before realizing that Apply Changes was a permanent save rather than just a temporary application to the game currently running.

          I probably should have read up more on RetroArch in the first place, but as they say, "when all else fails, read the instructions ."

          I am just hoping there is a way that I could get the shader presets back to loading the way they were originally, before I started messing with them , short of a re-image of the SD card.

          1 Reply Last reply Reply Quote 0
          • chipsnblipC
            chipsnblip
            last edited by chipsnblip

            @mikes82 said in GLSLP Shader Stack Defaults:

            shader1 = "snes-hires-blend.glsl"

            that is a very odd issue indeed. i don't know where to go from here, but did find something interesting about that snes.glslp file (yours is identical to mine, which is many months old since i haven't updated).

            changing the line:

            shader1 = "snes-hires-blend.glsl"
            

            to:

             shader1 = "shaders/snes-hires-blend.glsl"
            

            seems to make the preset work ok. looks like a possible typo/bug?

            M 1 Reply Last reply Reply Quote 0
            • M
              MikeS82 @chipsnblip
              last edited by

              @chipsnblip Great catch!

              I edited the line as suggested and now the it loads as expected.

              Not remembering exactly the changes I was making while fooling around with the other GLSLPs, I managed to find the one with a typo in it and chose that one to focus on thinking I jacked it up!

              I thinks it's safe to say that any changes I might have inadvertently made to the others were remedied through the Shader file reinstall.

              I'm glad that headache is over with. It got to the point where it was making absolutely no sense to me and it was good to have a fresh pair of eyes on it. It figures it was something that simple.

              Thanks again Chipsnblip!

              Mike

              1 Reply Last reply Reply Quote 0
              • chipsnblipC
                chipsnblip
                last edited by

                glad to help!

                i hope a moderator sees this and can fix it or tell someone who can. i'm new to github and searched the retropie repos but couldn't find this error anywhere.

                herb_fargusH 1 Reply Last reply Reply Quote 0
                • herb_fargusH
                  herb_fargus administrators @chipsnblip
                  last edited by

                  @chipsnblip the error is user error, if shaders are installed through the setup script it works fine

                  If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                  Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                  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.