CPU slow-downs extremely but speed-ups when moving render window #52360

Closed
opened 2017-08-12 00:58:09 +02:00 by Michael Klein · 21 comments

System Information
WIN 10 latest GTX 780 DELL Xeon System

Blender Version
Broken: 2.79-0398ee1-win64-vc14
Worked: n.a.

Short description of error
I am rendering a scene in 16K resolution. In the beginning it was fine. Then I realized slow-downs in the transparent area of the picture.
When I move the window the tiles start to speed-up dramatically and render in a speed the empty area as expected.
When I stop moving the window it slows-down extremely. When the tiles start to render geometry the CPU performance in the task manager is at 100%.
When it comes to the transparent areas the CPU slows down dramatically till I move the window again.
But also here I realized now that the render speed in the geometry areas will slow-down if I keep the window in foreground.
When I close the window to background the speed goes up to 100% then.
But once it will reach the transparent area again in background the speed slows down to around 30%.

Crazy. I can't say if this is the size of the rendering. The scene render takes around 15GB of my RAM (32GB).170812_Blender_Cycles_CPU_Slow-Downs.pdf

Attached you'll see screenshots of the CPU effect,

Exact steps for others to reproduce the error
I can upload the complete scene if necessary. The render will

**System Information** WIN 10 latest GTX 780 DELL Xeon System **Blender Version** Broken: 2.79-0398ee1-win64-vc14 Worked: n.a. **Short description of error** I am rendering a scene in 16K resolution. In the beginning it was fine. Then I realized slow-downs in the transparent area of the picture. When I move the window the tiles start to speed-up dramatically and render in a speed the empty area as expected. When I stop moving the window it slows-down extremely. When the tiles start to render geometry the CPU performance in the task manager is at 100%. When it comes to the transparent areas the CPU slows down dramatically till I move the window again. But also here I realized now that the render speed in the geometry areas will slow-down if I keep the window in foreground. When I close the window to background the speed goes up to 100% then. But once it will reach the transparent area again in background the speed slows down to around 30%. Crazy. I can't say if this is the size of the rendering. The scene render takes around 15GB of my RAM (32GB).[170812_Blender_Cycles_CPU_Slow-Downs.pdf](https://archive.blender.org/developer/F707689/170812_Blender_Cycles_CPU_Slow-Downs.pdf) Attached you'll see screenshots of the CPU effect, **Exact steps for others to reproduce the error** I can upload the complete scene if necessary. The render will
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Renderbicks

Added subscriber: @Renderbicks
Author

Here's a video capture showing the issue:

https://vimeo.com/229348566
password: RB.CYCLES

Here's a video capture showing the issue: https://vimeo.com/229348566 password: RB.CYCLES
Michael Klein changed title from CPU slow-downs and speed-ups when moving render window to CPU slow-downs extremely but speed-ups when moving render window 2017-08-12 01:46:00 +02:00

Added subscriber: @KonstantinsVisnevskis

Added subscriber: @KonstantinsVisnevskis

Task manager graph shows CPU utilization not speed. It is logical that there's less computation while fetching transparent tiles, hence the lower utilization. Also the model seems to have relatively simple shader, hence not a big difference in render speed between geometry and background.

Task manager graph shows CPU utilization not speed. It is logical that there's less computation while fetching transparent tiles, hence the lower utilization. Also the model seems to have relatively simple shader, hence not a big difference in render speed between geometry and background.
Author

No. That's not the point. Watch my recoreded video and you will see that the speed of the tiles in the transparent areas slow-down extremely. When moving the window they start to render in an expected and correct speed. It's not correct that the tiles will take ages in the transparent area. The same issue you'll have randomly in the areas with geometry. When moving the window the rendering speeds up to the maximum speed. When minimizing the window the geometry area seems be rendered efficiently till it comes to the transparent area. The slow-downs and sometimes freezes of tiles is not normal.

No. That's not the point. Watch my recoreded video and you will see that the speed of the tiles in the transparent areas slow-down extremely. When moving the window they start to render in an expected and correct speed. It's not correct that the tiles will take ages in the transparent area. The same issue you'll have randomly in the areas with geometry. When moving the window the rendering speeds up to the maximum speed. When minimizing the window the geometry area seems be rendered efficiently till it comes to the transparent area. The slow-downs and sometimes freezes of tiles is not normal.

Added subscriber: @brecht

Added subscriber: @brecht

There is likely some kind of bottleneck in drawing huge resolution images, and moving the render windows stops it from redrawing. Such a bottleneck will have a bigger impact in transparent tiles that render quickly.

You could try changing User Preferences > System > Images Draw Method. Also rendering without a render window will probably be fast.

There is likely some kind of bottleneck in drawing huge resolution images, and moving the render windows stops it from redrawing. Such a bottleneck will have a bigger impact in transparent tiles that render quickly. You could try changing User Preferences > System > Images Draw Method. Also rendering without a render window will probably be fast.
Author

Hi Brecht,

thanks for the hint. I will try this and come back. Yes, I assume that this effect in my video is caused by the extreme high resolution of the image.

But I have the impression it's not only a redraw issue. It really slows down as long as I don't move the window.

Hi Brecht, thanks for the hint. I will try this and come back. Yes, I assume that this effect in my video is caused by the extreme high resolution of the image. But I have the impression it's not only a redraw issue. It really slows down as long as I don't move the window.

It's because Cycles can be blocked by the drawing code when handing Blender the tile data.

It's because Cycles can be blocked by the drawing code when handing Blender the tile data.
Author

OK. What I do now . I start the render and zoom in. When I zoom out the tiles slow down and the estimated render time is over 12 hours. When I zoom in at a maximum the tiles speed up and the estimated render time is now 5 hours. Looks like this is a fair workaround. :-)

OK. What I do now . I start the render and zoom in. When I zoom out the tiles slow down and the estimated render time is over 12 hours. When I zoom in at a maximum the tiles speed up and the estimated render time is now 5 hours. Looks like this is a fair workaround. :-)

Added subscriber: @Sergey

Added subscriber: @Sergey
Sergey Sharybin self-assigned this 2017-08-23 18:57:12 +02:00

The slowdown is caused by the current architecture: image drawing will lock the render result from writing for the whole period of draw, which makes it so all render threads will wait for the lock to be released when they are communicating result from Cycles to Blender. On such resolution it wouldn't really matter which image draw method is used: when the whole image is visible the whole 16k image needs to pushed to the GPU.

I'm now experimenting with an approach when render threads only tags specific tiles as dirty, and then drawing thread will release all locks as soon as possible. The concept seems to be working ok, but there are some glitches to be fixed still and would need to verify over all the corner cases of render pipeline.

The slowdown is caused by the current architecture: image drawing will lock the render result from writing for the whole period of draw, which makes it so all render threads will wait for the lock to be released when they are communicating result from Cycles to Blender. On such resolution it wouldn't really matter which image draw method is used: when the whole image is visible the whole 16k image needs to pushed to the GPU. I'm now experimenting with an approach when render threads only tags specific tiles as dirty, and then drawing thread will release all locks as soon as possible. The concept seems to be working ok, but there are some glitches to be fixed still and would need to verify over all the corner cases of render pipeline.

Added subscriber: @maxim_d33

Added subscriber: @maxim_d33
Sergey Sharybin was unassigned by Dalai Felinto 2019-12-23 16:36:34 +01:00

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Is this problem still seen in the latest builds ?
@Sergey, are you still dealing with it?

Is this problem still seen in the [latest builds ](https://builder.blender.org/download/)? @Sergey, are you still dealing with it?
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Mark it as a todo.

Mark it as a todo.

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Thomas Dinges self-assigned this 2022-11-25 15:17:53 +01:00

Closing, since Cycles X was merged with Blender 3.0.

Closing, since Cycles X was merged with Blender 3.0.
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
8 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#52360
No description provided.