2 times slower BVH construction / render time with Hair system #38771

Closed
opened 2014-02-23 04:08:04 +01:00 by EXL100 · 19 comments
EXL100 commented 2014-02-23 04:08:04 +01:00 (Migrated from localhost:3001)

Operating system: Mac OS 10.8.5
Graphics card: AMD 5770

Blender Version
Broken: 2.69.11 4789793
Worked: 2.69.0 r60991

Short description of error
To render a big Hair system on a simple mesh, the rendering time is 2 times slower compare with the build 2.69.0

On my computer it takes:
1 minute with the 2.69.0 r60991
2 minutes with the 2.69.11 4789793

For info, It's worst if you select the option "Use Spatial Splits".

Exact steps for others to reproduce the error
Open my .blend file.
Clic Render and compare the render times.
HairBHVSlower.blend

2_29_0_copy.jpg

2_69_11_copy.jpg

Operating system: Mac OS 10.8.5 Graphics card: AMD 5770 **Blender Version** Broken: 2.69.11 4789793 Worked: 2.69.0 r60991 **Short description of error** To render a big Hair system on a simple mesh, the rendering time is 2 times slower compare with the build 2.69.0 On my computer it takes: 1 minute with the 2.69.0 r60991 2 minutes with the 2.69.11 4789793 For info, It's worst if you select the option "Use Spatial Splits". **Exact steps for others to reproduce the error** Open my .blend file. Clic Render and compare the render times. [HairBHVSlower.blend](https://archive.blender.org/developer/F78543/HairBHVSlower.blend) ![2_29_0_copy.jpg](https://archive.blender.org/developer/F78545/2_29_0_copy.jpg) ![2_69_11_copy.jpg](https://archive.blender.org/developer/F78544/2_69_11_copy.jpg)
EXL100 commented 2014-02-23 04:08:04 +01:00 (Migrated from localhost:3001)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Brecht Van Lommel was assigned by blender-admin 2014-02-23 04:08:04 +01:00
EXL100 commented 2014-02-23 04:08:04 +01:00 (Migrated from localhost:3001)
Author

Added subscriber: @EXL100

Added subscriber: @EXL100

Added subscribers: @brecht, @ThomasDinges

Added subscribers: @brecht, @ThomasDinges

Tested on Win 7 x64, u7-2630QM:

2.69: 2:32min
2.69.11: 2:35min

@brecht: The scene preparation is a problem(time until first tile is rendered), in 2.69 it takes about 45s, in Master 61s.

Tested on Win 7 x64, u7-2630QM: 2.69: 2:32min 2.69.11: 2:35min @brecht: The scene preparation is a problem(time until first tile is rendered), in 2.69 it takes about 45s, in Master 61s.

@EXL100: What CPU do you have?

@EXL100: What CPU do you have?

On Mac OS X 10.9.1, with a Haswell i7 CPU:

2.69: 1:08min
2.69.11: 1:20min

Sync time is a problem here too: 2.69 takes 18s to do scene preparation, master 28s.

On Mac OS X 10.9.1, with a Haswell i7 CPU: 2.69: 1:08min 2.69.11: 1:20min Sync time is a problem here too: 2.69 takes 18s to do scene preparation, master 28s.
EXL100 commented 2014-02-23 13:10:02 +01:00 (Migrated from localhost:3001)
Author

Hi,
My CPU are: 2 x Intel Xeon Nehalem Quad-core 2,93 GHz on a 2009 Mac Pro.
Many thanks for your reply.
Have a nice day.

Hi, My CPU are: 2 x Intel Xeon Nehalem Quad-core 2,93 GHz on a 2009 Mac Pro. Many thanks for your reply. Have a nice day.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

This is not a bug. This file has the Vector render pass enabled. Previously motion blur vectors for hair were not supported, but they are now, and it takes extra computation time to evaluate the hair system on the previous and next frame to compute them.

This is not a bug. This file has the Vector render pass enabled. Previously motion blur vectors for hair were not supported, but they are now, and it takes extra computation time to evaluate the hair system on the previous and next frame to compute them.
EXL100 commented 2014-02-24 16:28:47 +01:00 (Migrated from localhost:3001)
Author

Ok good to know. Thanks!
But, without any extra passes, just the "Combined" active, my render time are:
2.69: 46 sec
2.69.11: 1minute 24
No Motion blur, no extra passes.

Ok good to know. Thanks! But, without any extra passes, just the "Combined" active, my render time are: 2.69: 46 sec 2.69.11: 1minute 24 No Motion blur, no extra passes.

Are you sure that's accurate? It renders slight faster in 2.69.11 here on OS X. Where is the extra render time coming from, is it in synchronizing, BVH building, or rendering itself?

Are you sure that's accurate? It renders slight faster in 2.69.11 here on OS X. Where is the extra render time coming from, is it in synchronizing, BVH building, or rendering itself?
EXL100 commented 2014-02-24 17:31:19 +01:00 (Migrated from localhost:3001)
Author

I did a new test (3 times):

2.69: Synchro 10 secondes; BVH 17 secondes Render 20 secondes; total 47 secondes
2.29.11: Synchro 15 secondes; BHV 50 secondes; Render 20 secondes; total 1minute 25sec

Hair_BHVSlower2.blend

Screen_Shot_2014-02-24_at_17.18.55_copy.jpg

Screen_Shot_2014-02-24_at_17.21.26_copy.jpg

I did a new test (3 times): 2.69: Synchro 10 secondes; BVH 17 secondes Render 20 secondes; total 47 secondes 2.29.11: Synchro 15 secondes; BHV 50 secondes; Render 20 secondes; total 1minute 25sec [Hair_BHVSlower2.blend](https://archive.blender.org/developer/F78764/Hair_BHVSlower2.blend) ![Screen_Shot_2014-02-24_at_17.18.55_copy.jpg](https://archive.blender.org/developer/F78765/Screen_Shot_2014-02-24_at_17.18.55_copy.jpg) ![Screen_Shot_2014-02-24_at_17.21.26_copy.jpg](https://archive.blender.org/developer/F78766/Screen_Shot_2014-02-24_at_17.21.26_copy.jpg)

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'

Ok, that's quite strange as the BVH building code didn't really change since 2.69.

From the revision hash I guess it's the 2.70 test build that you are using, not the one from builder.blender.org. I tested them both but didn't find the 2.70 test build to be slower than the one from builder.blender.org or the 2.69 release.

I'm not sure what might be causing this then. If it was the SSE/AVX optimizations then that would affect only the path tracing time but not the BVH build.

Ok, that's quite strange as the BVH building code didn't really change since 2.69. From the revision hash I guess it's the 2.70 test build that you are using, not the one from builder.blender.org. I tested them both but didn't find the 2.70 test build to be slower than the one from builder.blender.org or the 2.69 release. I'm not sure what might be causing this then. If it was the SSE/AVX optimizations then that would affect only the path tracing time but not the BVH build.
EXL100 commented 2014-02-24 18:35:03 +01:00 (Migrated from localhost:3001)
Author

Ok thanks for this info.
New test:

Blender 2.69 hash e72775e
Synchro 15 secondes
BVH 15 secondes
Render 20 secondes
Total 50 secondes

Better ;)

Screen_Shot_2014-02-24_at_18.32.32.jpg

Ok thanks for this info. New test: **Blender 2.69 hash e72775e** Synchro 15 secondes BVH 15 secondes Render 20 secondes Total 50 secondes Better ;) ![Screen_Shot_2014-02-24_at_18.32.32.jpg](https://archive.blender.org/developer/F78772/Screen_Shot_2014-02-24_at_18.32.32.jpg)

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Ok, I think this was broken/fixed then after OS X build system tweaking that happened in recent days, the final 2.70 release performance should be ok again. The few extra seconds in synchronization can be explained by more code that was added there to avoid some render issues.

Ok, I think this was broken/fixed then after OS X build system tweaking that happened in recent days, the final 2.70 release performance should be ok again. The few extra seconds in synchronization can be explained by more code that was added there to avoid some render issues.

Added subscriber: @jaalto-3

Added subscriber: @jaalto-3

Thanks for the hair vector blur fix, Brecht.

Thanks for the hair vector blur fix, Brecht.
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
4 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#38771
No description provided.