Cycles Optix rendering slows down on second tile #75955

Closed
opened 2020-04-21 10:00:21 +02:00 by Łukasz · 16 comments

System Information
Operating system:Windows 10
Graphics card: 1x Nvidia RTX 2080 Ti

Blender Version
Broken: Blender 2.82a
Worked: every previous version

When I render on Optix sometimes (50% times) rendering goes extremely slow after rendering the first tile of render

This is happening to me only on hudge scenes like 1,44GB. And this is not happening every time but quite often ( 50% of times )
To Explain that let's just assume that we have an interior scene which has nothing special in it ( I know that optix is not working with AO shader and branched path tracing)

  1. I hit render and first tile is rendering really fast and when I'm checking how my card is vorking cuda usage looks like this:
    94129783_231146671280322_3052305825587527680_n.jpg
  2. But after rendering first tile, second goest extremely slow and my cuda usage looks like this
    93826820_253089662483262_7563975413039366144_n.jpg
    and expected time of rendering goes from 1 hour up to 15 hours or even 20 hours

I know that you might say that not every tile is rendering with the same speed but that is not an issue. When I restart PC or sometimes when I restart blender or sometimes when I prerender scene for something like 1 minute with material override option enabled render goes in the correct way. What I mean by that is that:

  1. I hit render (same camera same samples and all other settings)
  2. Render goes with almost same fast speed on every tile and full render is acomplished after 1 hour. My cuda usage looks like this:
    94129783_231146671280322_3052305825587527680_n.jpg
    As I wrote before this happens to me only on complicated hudge scenes but my work consits only those type of scenes ( I'm interior designer)
    I have this problem since the first release of blender with optix rendering. I,ve also checked tenperatures on my GPU and nothing goes above 66 degrees.
    Here is my file but it is quite large 1,44 GB:
    poznań restauracja zmiany evee zmiany ewa textury small.blend

For me it is hude deal if my render goes 1 hour or 15 hours so pls help me :)

**System Information** Operating system:Windows 10 Graphics card: 1x Nvidia RTX 2080 Ti **Blender Version** Broken: Blender 2.82a Worked: every previous version When I render on Optix sometimes (50% times) rendering goes extremely slow after rendering the first tile of render This is happening to me only on hudge scenes like 1,44GB. And this is not happening every time but quite often ( 50% of times ) To Explain that let's just assume that we have an interior scene which has nothing special in it ( I know that optix is not working with AO shader and branched path tracing) 1. I hit render and first tile is rendering really fast and when I'm checking how my card is vorking cuda usage looks like this: ![94129783_231146671280322_3052305825587527680_n.jpg](https://archive.blender.org/developer/F8486645/94129783_231146671280322_3052305825587527680_n.jpg) 2. But after rendering first tile, second goest extremely slow and my cuda usage looks like this ![93826820_253089662483262_7563975413039366144_n.jpg](https://archive.blender.org/developer/F8486647/93826820_253089662483262_7563975413039366144_n.jpg) and expected time of rendering goes from 1 hour up to 15 hours or even 20 hours I know that you might say that not every tile is rendering with the same speed but that is not an issue. When I restart PC or sometimes when I restart blender or sometimes when I prerender scene for something like 1 minute with material override option enabled render goes in the correct way. What I mean by that is that: 1. I hit render (same camera same samples and all other settings) 2. Render goes with almost same fast speed on every tile and full render is acomplished after 1 hour. My cuda usage looks like this: ![94129783_231146671280322_3052305825587527680_n.jpg](https://archive.blender.org/developer/F8486656/94129783_231146671280322_3052305825587527680_n.jpg) As I wrote before this happens to me only on complicated hudge scenes but my work consits only those type of scenes ( I'm interior designer) I have this problem since the first release of blender with optix rendering. I,ve also checked tenperatures on my GPU and nothing goes above 66 degrees. Here is my file but it is quite large 1,44 GB: [poznań restauracja zmiany evee zmiany ewa textury small.blend](https://archive.blender.org/developer/F8486684/poznań_restauracja_zmiany_evee_zmiany_ewa_textury_small.blend) For me it is hude deal if my render goes 1 hour or 15 hours so pls help me :)
Author

Added subscriber: @sohoha

Added subscriber: @sohoha

#75954 was marked as duplicate of this issue

#75954 was marked as duplicate of this issue

Added subscribers: @pmoursnv, @brecht

Added subscribers: @pmoursnv, @brecht

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Can you run blender_debug_log.cmd included with Blender, do the render, and attach the resulting logs here? This will include more detailed info about what Cycles is doing.

Does this happen when rendering with CUDA instead of Optix?

Maybe it's running out of GPU memory somewhere and then falling back to slower CPU memory.

Can you run `blender_debug_log.cmd` included with Blender, do the render, and attach the resulting logs here? This will include more detailed info about what Cycles is doing. Does this happen when rendering with CUDA instead of Optix? Maybe it's running out of GPU memory somewhere and then falling back to slower CPU memory.
Author

Rendering on cuda sometimes also crashes but this is less often than on Optix
Here is debug log:
blender_debug_output.txt

blender_system_info.txt

I've also found out that doing prerender with material override option enabled with simple principled BSDF helps 100% of times. But I have no idea what is causing that behaviour.

Rendering on cuda sometimes also crashes but this is less often than on Optix Here is debug log: [blender_debug_output.txt](https://archive.blender.org/developer/F8489240/blender_debug_output.txt) [blender_system_info.txt](https://archive.blender.org/developer/F8489239/blender_system_info.txt) I've also found out that doing prerender with material override option enabled with simple principled BSDF helps 100% of times. But I have no idea what is causing that behaviour.

This is probably the issue:

I0422 14:35:43.520292  3788 device_optix.cpp:2117] Move memory from device to host: __tex_image_byte4_033
I0422 14:35:43.579133  3788 device_optix.cpp:1647] Buffer allocate: __tex_image_byte4_033, 67,108,864 bytes. (64.00M) in host memory
I0422 14:35:43.593094  3788 device_optix.cpp:1647] Buffer allocate: __texture_info, 42,784 bytes. (41.78K) in host memory
I0422 14:35:43.609052  3788 device_optix.cpp:1647] Buffer allocate: RenderBuffers, 24,883,200 bytes. (23.73M) in host memory

In general __texture_info and RenderBuffers should not be allocated in host memory because it's too slow. Instead moving more __tex_image to the host should be preferred.

This is probably the issue: ``` I0422 14:35:43.520292 3788 device_optix.cpp:2117] Move memory from device to host: __tex_image_byte4_033 I0422 14:35:43.579133 3788 device_optix.cpp:1647] Buffer allocate: __tex_image_byte4_033, 67,108,864 bytes. (64.00M) in host memory I0422 14:35:43.593094 3788 device_optix.cpp:1647] Buffer allocate: __texture_info, 42,784 bytes. (41.78K) in host memory I0422 14:35:43.609052 3788 device_optix.cpp:1647] Buffer allocate: RenderBuffers, 24,883,200 bytes. (23.73M) in host memory ``` In general `__texture_info` and `RenderBuffers` should not be allocated in host memory because it's too slow. Instead moving more `__tex_image` to the host should be preferred.

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Author

Problem is still ongoing. I've made two render logs. One is correct with remaining render time around 1h. Second one is with crash I've described above and it's remaining time is around 150 hours. All settings are the same except for number of objets in the scene which for Right render scen is smaller. I know that you may say that crash ocurs according to number of objects in the scene however it is not that simple because Sometimes it can crash on one scene and next time it may go perfectly smoth with next render
blender right optix render.rar

blender wrong optix render.rar

Problem is still ongoing. I've made two render logs. One is correct with remaining render time around 1h. Second one is with crash I've described above and it's remaining time is around 150 hours. All settings are the same except for number of objets in the scene which for Right render scen is smaller. I know that you may say that crash ocurs according to number of objects in the scene however it is not that simple because Sometimes it can crash on one scene and next time it may go perfectly smoth with next render [blender right optix render.rar](https://archive.blender.org/developer/F8547379/blender_right_optix_render.rar) [blender wrong optix render.rar](https://archive.blender.org/developer/F8547378/blender_wrong_optix_render.rar)
Author
Here is the scene [poznań restauracja zmiany evee zmiany ewa8 textury small temp to render3.blend](https://archive.blender.org/developer/F8547394/poznań_restauracja_zmiany_evee_zmiany_ewa8_textury_small_temp_to_render3.blend)

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

@sohoha I am looking at older reports, According to comments in D7426 this should be resolved already. Can you confirm this?

@sohoha I am looking at older reports, According to comments in [D7426](https://archive.blender.org/developer/D7426) this should be resolved already. Can you confirm this?
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Member

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#75955
No description provided.