• 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

video_shader_watch_files ON

Scheduled Pinned Locked Moved Help and Support
shadersglobal configs
4 Posts 1 Posters 508 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.
  • F
    flagrant99
    last edited by 4 Jan 2022, 23:22

    Does anybody know of a way to get RetroArch to apply a shader while a game is running?
    I have a python script running off GPIO that replaces contents of the referenced global.glslp file.

    video_shader_watch_files ON retroarch setting turned on in RGUI does not seem to get it to update based on a loaded glslp file.

    I replaced contents of it.
    Overwrite it, etc.
    Anybody know what it is watching?

    F 1 Reply Last reply 5 Jan 2022, 00:48 Reply Quote 0
    • F
      flagrant99 @flagrant99
      last edited by 5 Jan 2022, 00:48

      @flagrant99
      configs/all/retroarch/config/global.glslp
      has
      #reference "../shaders/global.glslp"

      So shaders/global.glslp is the file I mess around with and have the watch on.

      When I cp or replace contents etc.
      with watch on, I see the UI detect a change but it refuses to take.

      Instead Retroarch writes
      shaders/retroarch.glslp with what ever I had and some extra stuff.

      Maybe I have to write to write retroarch.glslp?

      F 1 Reply Last reply 5 Jan 2022, 02:14 Reply Quote 0
      • F
        flagrant99 @flagrant99
        last edited by flagrant99 1 May 2022, 02:14 5 Jan 2022, 02:14

        @flagrant99 I tried different file names, and video_shader_delay=3. None of it matters. Best I can tell video_shader_watchFiles does detect a change but instead of loading the changes retroarch refuses to load any changes and instead keeps the old settings and writes them to retroarch.glslp. Writing any changes directly to retroarch.glslp is futile. It simply erases what I wrote and re-writes the old glslp settings. I also know about next shader - previous shader but those aren't precise. I wanted to map specific shaders to GPIO pins. Well at least I can get it work when the game isn't running. Just have to quit - restart game.

        F 1 Reply Last reply 5 Jan 2022, 23:37 Reply Quote 0
        • F
          flagrant99 @flagrant99
          last edited by 5 Jan 2022, 23:37

          @flagrant99 I have since learned some things.
          glsl Shader format available to OpenGL.
          glslp for GLSL stack these shaders to create a combined effect.

          Only a glsl will get reloaded not the glslp with video_shader_watch_files ON.

          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