Rendering with CPU instead of GPU
Sup guys, it's my first time writing here so i'm sorry if this isn't the right place. So i have some experience with Daz and till now i've never had problems to be honest, but today when i started another render my pc just got [really unhelpful] and by [really unhelpful] i mean [really unhelpful]. And when i checked why i couldn't use my pc it was because Daz studio was rendering with my CPU.. This is the first case that something like this happened. In Render Settings only my GPU is checked, i have the latest drivers on both, Nvidia and Daz Studio. When i start the render it's showing me that it will use 3.97 GiB. My previous render which i finished 10000 samples for 2 hours it had 1.444 GiB usage and i was rendering with my GPU without PC issues. My GPU is Nvidia GTX 1660TI 6GB. Thank you in advance
Comments
Is CPU Fallback disabled at the bottom of the Render Settings pane Advanced tab, and have you restarted Daz Studio since disabling it? Sadly a 1660 with 6GB is not a massively resourced card, especially with its being non-RTX so that it has to use some of its memory to emulate the RTX features.
Thanks for the reply Richard. So I disable CPU Fallback i restart everything. Loaded the scene press render and everything was staying still. Daz didn't even try to start rendering..
https://ibb.co/LSHkgC7 picture of what daz is saying
You're running out of VRAM.
Texture usage alone is over 4 gigabytes, plus however many more for mesh data, plus the overhead of running Daz Studio/Iray.
If you look in your log file (Help -> Troubleshooting -> Log File) it should give you more information about how much memory Daz is allocating for things besides textures. You can post the relevant parts here.
If DS says the render is going to use 3.97GiB, was that the geometry+textures or did it include the necessary "Work Space" as well (1-1.75GiB)?
I have an 8GB RTX card, and the max. limit for the geometry+textures+working space as reported by DS is 5.7GiB - If your card was a 6GB RTX, the max would be 2GiB less, but as GTX card uses some VRAM for emulating the RTX functions in software, you don't get even that much.
The base load from OS, DS and the scene take their cut of the VRAM and there's still about 0.5GiB's that I haven't been able to track down, where that is being used.
Thanks for the reply, so i checked the Log file and this is what came out.
2021-11-04 21:01:45.515 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [ERROR] - IRAY:RENDER :: 1.2 IRAY rend error: CUDA device 0 (NVIDIA GeForce GTX 1660 Ti): Not enough memory for kernel launches (0.000 B (160.650 MiB) required, 0.000 B available). Cannot allocate framebuffer.
2021-11-04 21:01:45.588 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [ERROR] - IRAY:RENDER :: 1.2 IRAY rend error: CUDA device 0 (NVIDIA GeForce GTX 1660 Ti): Failed to setup device frame buffer
2021-11-04 21:01:45.633 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [ERROR] - IRAY:RENDER :: 1.2 IRAY rend error: CUDA device 0 (NVIDIA GeForce GTX 1660 Ti): Device failed while rendering
2021-11-04 21:01:45.663 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [WARNING] - IRAY:RENDER :: 1.2 IRAY rend warn : CUDA device 0 (NVIDIA GeForce GTX 1660 Ti) ran out of memory and is temporarily unavailable for rendering.
2021-11-04 21:01:45.675 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [WARNING] - IRAY:RENDER :: 1.2 IRAY rend warn : All available GPUs failed.
2021-11-04 21:01:45.731 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [ERROR] - IRAY:RENDER :: 1.2 IRAY rend error: Fallback to CPU not allowed.
2021-11-04 21:01:45.731 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [ERROR] - IRAY:RENDER :: 1.2 IRAY rend error: All workers failed: aborting render
Materials memory consumption: 803.051 KiB (GPU)
Lights memory consumption: 3.287 MiB (device 0)
Texture memory consumption: 4.052 GiB for 148 bitmaps (device 0)
Geometry memory consumption: 189.434 MiB (device 0), 0.000 B (host)
So you was right, i'm out of VRAM is there anyway to fix this ? I mean without removing anything from the scene :D. Obviously if i remove something it will work out, but that's not the point. Thank you in advance!
Reducing the size of the textures (dimensions), removing some maps if not doing closeups, hiding (not removing) items that are not visible on camera.
The texture usage looks pretty big compared to the geometry usage, which makes me think you are using item/items that have badly made UV's or way bigger textures than they would need to be.
Without knowing, what you have in your scene, it is difficult to say where to start...
Yeah you are right, i mean now i understand exactly what is wrong. Okay thank you very much for everything. And i think you can lock the topic!
Actually another issue came up, once again i'm asking for your help :D. After our conversation here i finished my render 10000 samples 1 hour 30 minutes everything was perfect. I started another scene and when i put it for rendering guess what same issue my gpu run out of memory, but how is that possible i mean the scene was with only 1 character, camera and a spotlight ? In the Log file it's giving me 973 MiB so it's impossible i run out of VRAM memory ? I restarted daz and tried again same issue.. I restarted the PC same issue. I tried with another character.. same issue. Now i cannot even start an render.. Please help
GPU-Z is a handy utility that shows how much RAM and VRAM is currently used.
https://www.techpowerup.com/gpuz/
Thank you again for the reply, so i installed GPU-Z i'm applyin a screenshot..
https://ibb.co/P5T14QC
so it's saying 3000mb ? But the render stops immediatly it doesn't even want to try
This is the log file
2021-11-05 10:08:09.905 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Rendering with 1 device(s):
2021-11-05 10:08:09.906 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : CUDA device 0 (NVIDIA GeForce GTX 1660 Ti)
2021-11-05 10:08:09.906 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Rendering...
2021-11-05 10:08:09.921 Iray [INFO] - IRAY:RENDER :: 1.7 IRAY rend progr: CUDA device 0 (NVIDIA GeForce GTX 1660 Ti): Processing scene...
2021-11-05 10:08:10.478 Iray [VERBOSE] - IRAY:RENDER :: 1.3 IRAY rend stat : Geometry memory consumption: 2.304 GiB (device 0), 0.000 B (host)
2021-11-05 10:08:11.044 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [ERROR] - IRAY:RENDER :: 1.3 IRAY rend error: Unable to allocate 3.497 GiB from 2.692 GiB of available device memory
2021-11-05 10:08:11.112 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [ERROR] - IRAY:RENDER :: 1.7 IRAY rend error: CUDA device 0 (NVIDIA GeForce GTX 1660 Ti): Scene setup failed
2021-11-05 10:08:11.174 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [ERROR] - IRAY:RENDER :: 1.7 IRAY rend error: CUDA device 0 (NVIDIA GeForce GTX 1660 Ti): Device failed while rendering
2021-11-05 10:08:11.176 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [WARNING] - IRAY:RENDER :: 1.7 IRAY rend warn : CUDA device 0 (NVIDIA GeForce GTX 1660 Ti) ran out of memory and is temporarily unavailable for rendering.
2021-11-05 10:08:11.177 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [WARNING] - IRAY:RENDER :: 1.7 IRAY rend warn : All available GPUs failed.
2021-11-05 10:08:11.193 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [ERROR] - IRAY:RENDER :: 1.7 IRAY rend error: Fallback to CPU not allowed.
2021-11-05 10:08:11.194 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(359): Iray [ERROR] - IRAY:RENDER :: 1.7 IRAY rend error: All workers failed: aborting render
2021-11-05 10:08:11.225 Iray Render error: Internal rendering error.
2021-11-05 10:08:12.330 Finished Rendering
2021-11-05 10:08:16.089 Total Rendering Time: 2 minutes 4.38 seconds
2021-11-05 10:08:32.252 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Device statistics:
2021-11-05 10:08:32.252 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : CUDA device 0 (NVIDIA GeForce GTX 1660 Ti): 0 iterations, 8.054s init, 0.030s render
"Unable to allocate 3.497 GiB from 2.692 GiB of available device memory" i'm seeing this but how is that possible when i don't have nothing in my scene ? Just a character and camera on a black background no fancy stuff no nothing.
How high is the SubD on the character and the fitted clothes/hair and are you using strand hair?
Okay so i knew about the SubD and by "i knew" i know where to find it, but can you enlight me what it means and what it does ? It was on default and i didn't touch it. So i lower it now from 4 to 1 and now everything is normal again. But yesterday i was rendering more complex scene and i didn't touch the SubD which means it was on default so my next question is how yesterday i was able to render more complex scene and today i have to touch the SubD to be able to render ? Thank you in advance for your help man
In practice, there is no 'Default value for SubD", I have seen characters with everything from 1 to 5 as their 'default' SubD.
SubD is used to increase the density of the geometry, but unless one is doing closeups of characters nose, anything above SubD 2 is just waste of resources. There are two values for SubD, one is used in the viewport and the other is used in rendering.
Ps. Don't write in bold letters
Got u. Thanks for your help really. I'm back on track now :D