Announcement

Collapse
No announcement yet.

V-Ray GPU not releasing memory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • V-Ray GPU not releasing memory

    Hi,
    I'm rendering an animation with a lot of plants etc. Ale with each subsequent frame​ rendered the memory usage increases. And when it reaches max the rendering time skyrockets (from 4 minutes to 1 hour). It's the texture memory - on the first frame the log stats showed 1987 MiB for textures and after 10 frames its now 6810 MiB. After restarting the render the times goes down to normal and I can render 10 frames or so. It seems like the memory is stacking up and not clearing between frames.
    I've tried On-Demand Mip-Mapping but it didn't help.
    I have the latest Vray, drivers etc. GPU is RTX 4080.
    I had this problem earlier on multiple scenes.

    Cheers
    Piotr
    Last edited by blinq; 16-02-2023, 09:26 AM.

  • #2
    I did some tests and it looks like the memory used by textures increases by about 300 MB after every frame. And when it reaches max memory availible it either crashes or the render time goes waaaay up.
    When I'm rendering on CUDA it seems like it is doing a better job handling memory - the base line of memory used is lower so I can render more frames. After reaching max it crashes whitch is good because then Backburner restarts the job from that frame and the render continues.
    RTX on the other hand has better render times but when the memoty fills up the render times goes up - turning on max frame time helps a bit.
    What can be causing this? I can send You the scene files.

    Comment


    • #3
      Hello! Could you please share the scene ? Also, could you try the new Compressed textures mode - you can find it below On-demand mip-mapped mode in the latest update 1.
      Tanya Todorova
      QA

      Comment


      • #4
        Hi,
        I've sent the scene via the form. I had to delete my clients models but it shouldn't affect the problem - the materials were simple without any textures (juzst simple procedural metal).
        I'm trying out the new Compressed textures mode - it looks promising. The texture usage still increases between frames but by a much smaller amount (about 30 mega).

        Thanks

        Comment


        • #5
          Hi,
          In a 200 frame animation sequence when it gets about halfway (125 frames) through the GPU (both in rtx and CUDA.
          And both in Brute force and Light cache) rendering starts to lag. The Log shows a problem:
          Warning : Num samples per thread reduced to 32768, rendering might be slowers
          ​I did several tests but did not find a solution.
          I feel like going through the rendered frames builds something up in memory.
          That see should be emptied after each finished frame. If I let it go anyway the rendering crashes after a while.

          Comment


          • #6
            this problem only found in latest version 6.01.00 in version 6.00.20 it works fine

            Comment


            • #7
              One example showing texture caching https://youtu.be/ZdzgKfNgg4Q
              Use "V-Ray Scene Converter" and repeat the tests.​

              Comment


              • #8
                I have no texture in the scene. So the problem is another. And in version 6.00.20 the same scene works fine.

                Comment


                • #9
                  We are working on a fix at the moment

                  Best,
                  Muhammed
                  Muhammed Hamed
                  V-Ray GPU product specialist


                  chaos.com

                  Comment


                  • #10
                    Originally posted by Muhammed_Hamed View Post
                    We are working on a fix at the moment

                    Best,
                    Muhammed
                    Thank you very much, I'm glad you also encountered this problem and are solving it

                    Comment


                    • #11
                      Originally posted by Muhammed_Hamed View Post
                      We are working on a fix at the moment

                      Best,
                      Muhammed
                      Hi Muhammed,

                      Any news yet? Should I go one version back?

                      Leslie
                      3dsMax 2024 | Vray 6 (Update 2) | AMD 5950X | 128GB | RTX 4090 | Windows 11 Pro

                      Comment


                      • #12
                        I went back to version 6.00.20 and the one without problems. I also tried 6.0.1.02 but got the same problem. It's not easy to try because it starts happening after about 100 frames of an animation sequence and as well as slowing down rendering it crashes 3ds max

                        Comment


                        • #13
                          Originally posted by davide_franceschini1 View Post
                          I went back to version 6.00.20 and the one without problems. I also tried 6.0.1.02 but got the same problem. It's not easy to try because it starts happening after about 100 frames of an animation sequence and as well as slowing down rendering it crashes 3ds max
                          Thks davide!
                          3dsMax 2024 | Vray 6 (Update 2) | AMD 5950X | 128GB | RTX 4090 | Windows 11 Pro

                          Comment


                          • #14
                            Hey leslie_vanberkel and davide_franceschini1

                            This is fixed in our internal builds, if you have access to nightly builds you can test the fix or please Email me for a build
                            Otherwise this will be pushed in a hotfix very soon

                            Sorry about the inconvenience

                            Best,
                            Muhammed
                            Muhammed Hamed
                            V-Ray GPU product specialist


                            chaos.com

                            Comment


                            • #15
                              Originally posted by Muhammed_Hamed View Post
                              Hey leslie_vanberkel and davide_franceschini1

                              This is fixed in our internal builds, if you have access to nightly builds you can test the fix or please Email me for a build
                              Otherwise this will be pushed in a hotfix very soon

                              Sorry about the inconvenience

                              Best,
                              Muhammed
                              Thanks for now it's not so urgent you can use a previous version. When you are informed could you please let us know which stable release will have this fix.

                              Comment

                              Working...
                              X