How to clear VRAM memory without restarting DAZ Studio?

IllidanstormIllidanstorm Posts: 655
edited December 2019 in New Users

When I render a scene with more than 11 GB on the 2080ti and then hit cancle, the memory on the GPU does not get cleared.

So when I want to rerender the scene it uses the CPU as the memory of the GPU is full.

I have to restart DAZ3D to get it cleared, is there a way to clear it without restarting it?

Post edited by Chohole on

Comments

  • Richard HaseltineRichard Haseltine Posts: 100,948

    Not that I am aware of.

  • DDCreateDDCreate Posts: 1,398

    I honestly thought you had to re-boot the whole computer to clear your VRAM

  • I honestly thought you had to re-boot the whole computer to clear your VRAM

    This is true if you want to clear all of it. Restarting Daz Studio will clear the ram that Daz has allocated, but not other programs.

     is there a way to clear it without restarting it?

    I have asked on the forums before and no one knew of a way for a user to manually clear the ram at the time. I suggest submitting a ticket, maybe they can add it or fix the problem.

    For now, I suggest grabbing the Iray memory assistant. It can estimate how much ram will be used. On my 4GB card, I try not to go over 3GB because multiple renders, for me, cause the memory used by daz to creep up. Scene optimizer can also reduce the size of your assets and remove "unnecessary" maps to help you get your scene down to size.

     

    If you do find a way to clear it please post it here.

  • charlescharles Posts: 847
    edited December 2019

    WINDOWS 10

    When you close DAZ Studio, check your Task Manager and check to make sure it is not still running. It can run for a very long time after you thought it was closed and not releasing the GPU Memory. You can End Task on it in Task manger and you should see your GPU Memory resolve under Task Manager Performance tab.

    Also make sure you are not leaving a previous render or partial render still open. You see it has that RESUME button on the panel so it is keeping that rendering state still in memory so make sure you close it. It is best to actually SAVE it, even if it's a partial instead of hitting the X on the top right to close the window which sometimes bugs and doesn't then release the render from memory.

    Also  It is worth noting that more and more programs are starting to take advantage of GPU Memory and processing for performance. Many default apps in Windows like Edge now use it and programs like Dropbox can be a huge hog on it, all that reducing your amount of render memory.  It is best to have two video cards, one dedicated to your renders and another cheapo for your displays and those junk tasks. If you do that make sure Daz isn't trying to use in NVidia Iray Advanced tab.

     

    Post edited by charles on
  • This has been a problem for a very long time. How much more time do they need? The problem seems to be related to the iray engine, iray has a "function" to release memory. The latest beta is even worse because it takes more memory because they force you to use optixprime or what ever its called. when I run out of memory while running iray it almost always fails to release the memory allocated. Thus requiring a restart of application. I simple button that tells Daz studio to release all memory that isn't needed would be great.

  • This has been a problem for a very long time. How much more time do they need? The problem seems to be related to the iray engine, iray has a "function" to release memory. The latest beta is even worse because it takes more memory because they force you to use optixprime or what ever its called. when I run out of memory while running iray it almost always fails to release the memory allocated. Thus requiring a restart of application. I simple button that tells Daz studio to release all memory that isn't needed would be great.

    It's not DS that has the memory, as I understand it, but Iray - if it runs out of memory it seems unable to clear the memory itself.

  •  

    It's not DS that has the memory, as I understand it, but Iray - if it runs out of memory it seems unable to clear the memory itself.

    Mmmm... well that is why I refferenced the iray engine, and why I said, "The problem seems to be related to the iray engine". I assume you haven't heard anything official from Daz. I only pop by the forums every few months so I'm sure I miss out on a lot. Any idea if they are even aware of the frustrations we are having?

  •  

    It's not DS that has the memory, as I understand it, but Iray - if it runs out of memory it seems unable to clear the memory itself.

    Mmmm... well that is why I refferenced the iray engine, and why I said, "The problem seems to be related to the iray engine". I assume you haven't heard anything official from Daz. I only pop by the forums every few months so I'm sure I miss out on a lot. Any idea if they are even aware of the frustrations we are having?

    Yes, and I imagine they are experiencing it themselves as well.

  • I haven't had the issue for a while, and I'm certainly no expert so take the following with the appropriate amount of salt, but it was recomended to me to try :

    Win+Ctrl+Shift+B. 

    I was skeptical as I couldn't find a similar reference to this as a help, but according to Tom's hardware: 

    That combination tells windows to reset input cards, and graphic cards. Basically it empties the video buffer and restart the driver, and does the same for the keyboard, the mouse and the soundcard. It was made to mimick that functionality on tablets and tactile devices. Helping some users and techs with stuck graphic elements, black screens, stuck sleep modes, stuck mouse buttons and buzzing or looping sounds. 

    Encouraged, i searched for that combo and how-to-geek described: 

    To restart your graphics drivers, press Win+Ctrl+Shift+B on your keyboard.

    Your screen will go black for a split second and you’ll hear a beep. Everything will then reappear just as it was before you pressed the hotkey. All your current applications remain open, and you won’t lose any work.

    We even tried this shortcut while playing a PC game. The game kept running properly after we used the shortcut. That’s because Windows just restarts the graphics subsystem. All your applications are left alone and will continue running normally.

    This keyboard shortcut is part of the Windows 10 operating system, so it will restart NVIDIA, AMD, and Intel graphics drivers. Whatever graphics hardware your PC has, it will work.

    How to Recover From a Freeze

    There’s no guarantee that this will fix a system freeze. However, if your computer froze because of a problem with your graphics drivers, this shortcut may fix it. This shortcut can fix freezes that occur while playing 3D games, but it can also recover from freezes that occur while you’re just using your PC normally. Windows 10 uses your graphics hardware to accelerate the drawing of your desktop and even modern web browsers use it to speed up web page rendering. (https://www.howtogeek.com/351164/secret-windows-hotkey-restarts-your-graphics-card-drivers/ )

    I was going to give it a go next time I had the issue and se eif it worked on my 2080ti.

  • Umi no Senshi no Ishi if that erases the VRAM, I think that would cause a hard program crash when iray or daz attempted to access the allocated memory. It is worth a try though.

  • Fennario3DFennario3D Posts: 11
    edited December 2021

    So...does it work? Just read this and havent tried it yet

    Umi no Senshi no Ishi said:

    I haven't had the issue for a while, and I'm certainly no expert so take the following with the appropriate amount of salt, but it was recomended to me to try :

    Win+Ctrl+Shift+B. 

    I was skeptical as I couldn't find a similar reference to this as a help, but according to Tom's hardware: 

    That combination tells windows to reset input cards, and graphic cards. Basically it empties the video buffer and restart the driver, and does the same for the keyboard, the mouse and the soundcard. It was made to mimick that functionality on tablets and tactile devices. Helping some users and techs with stuck graphic elements, black screens, stuck sleep modes, stuck mouse buttons and buzzing or looping sounds. 

    Encouraged, i searched for that combo and how-to-geek described: 

    To restart your graphics drivers, press Win+Ctrl+Shift+B on your keyboard.

    Your screen will go black for a split second and you’ll hear a beep. Everything will then reappear just as it was before you pressed the hotkey. All your current applications remain open, and you won’t lose any work.

    We even tried this shortcut while playing a PC game. The game kept running properly after we used the shortcut. That’s because Windows just restarts the graphics subsystem. All your applications are left alone and will continue running normally.

    This keyboard shortcut is part of the Windows 10 operating system, so it will restart NVIDIA, AMD, and Intel graphics drivers. Whatever graphics hardware your PC has, it will work.

    How to Recover From a Freeze

    There’s no guarantee that this will fix a system freeze. However, if your computer froze because of a problem with your graphics drivers, this shortcut may fix it. This shortcut can fix freezes that occur while playing 3D games, but it can also recover from freezes that occur while you’re just using your PC normally. Windows 10 uses your graphics hardware to accelerate the drawing of your desktop and even modern web browsers use it to speed up web page rendering. (https://www.howtogeek.com/351164/secret-windows-hotkey-restarts-your-graphics-card-drivers/ )

    I was going to give it a go next time I had the issue and se eif it worked on my 2080ti.

    Post edited by Richard Haseltine on
  • LoonyLoony Posts: 1,817

    cooperhadaway said:

    So...does it work? Just read this and havent tried it yet

     

    I found this thread from google because I hate to kill Daz3d if I wanna make 4-5 Alternate images with spot renders (changing one outfit of a person or one object).

    Sometimes it works to render 2-3 images, but sometimes the GPU will not run.

    I tested the buttons and my screen restartet, but my VRAM kept full and the render doesn't started on GPU.

    Sad, it would be a great combo... and a easy solution :(

  • spiddle_5503d0ddb7spiddle_5503d0ddb7 Posts: 13
    edited April 12
    This absolutely works 100% I use it every single render. Yes finally a solution!!!! My renders always start off fast then die after about the 5th one. This almost returns it back as if you haven't rendered anything. Thanks for posting this.
    Post edited by spiddle_5503d0ddb7 on
  • Seven193Seven193 Posts: 1,080

    If you mean Win+Ctrl+Shift+B, this shortcut is only for Windows 10/11 users. The GPU isn't hogging the memory in this case, it's the Windows display driver.

Sign In or Register to comment.