Excessive BVH build time for dupligroup instances of hair-covered objects #47234

Closed
opened 2016-01-25 07:24:12 +01:00 by Zauber Paracelsus · 7 comments

System Information
OS: 64bit Lubuntu, kernel 4.2.0-23
CPU: AMD FX-8350 Octacore
GPU: GeForce GTX 650 Ti 2gb

Blender Version
Broken: 2.76b f337fea , 2.76-dev fea44ed
Worked: ?

Description of error
I have found that when rendering instances of hair-covered objects (in this case, a small park covered in grass), the BVH build time seemingly skyrockets compared to when non-instanced versions of those objects are copied. By "instanced", I am referring to empties set up as dupligroups.

For example, if I render two copies of the small grassy park (neither of them instanced), then I see a BVH build time of roughly 24 seconds in a quick test. But when I go to another scene and render to dupligroup copies of that small grassy park, the BVH build time is increased to a minute and 20 seconds.

During both tests, I was monitoring CPU usage. In the scene with the increased BVH build time, I saw that only one CPU core was being used during BVH build. This means that for some reason, the BVH build process is not taking advantage of multithreading when a scene contains hair-covered instance objects (and perhaps other types of instanced objects).

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

  1. Download and open the following .blend file: ParticleInstance_NoThreadedBVH.blend
  2. Switch the scene to Original and then render. Note the time for BVH build.
  3. Switch the scene to Instanced and then render. Note the increased time for BVH build.
**System Information** OS: 64bit Lubuntu, kernel 4.2.0-23 CPU: AMD FX-8350 Octacore GPU: GeForce GTX 650 Ti 2gb **Blender Version** Broken: 2.76b f337fea , 2.76-dev fea44ed Worked: ? **Description of error** I have found that when rendering instances of hair-covered objects (in this case, a small park covered in grass), the BVH build time seemingly skyrockets compared to when non-instanced versions of those objects are copied. By "instanced", I am referring to empties set up as dupligroups. For example, if I render two copies of the small grassy park (neither of them instanced), then I see a BVH build time of roughly 24 seconds in a quick test. But when I go to another scene and render to dupligroup copies of that small grassy park, the BVH build time is increased to a minute and 20 seconds. During both tests, I was monitoring CPU usage. In the scene with the increased BVH build time, I saw that only one CPU core was being used during BVH build. This means that for some reason, the BVH build process is not taking advantage of multithreading when a scene contains hair-covered instance objects (and perhaps other types of instanced objects). **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps 1) Download and open the following .blend file: [ParticleInstance_NoThreadedBVH.blend](https://archive.blender.org/developer/F277141/ParticleInstance_NoThreadedBVH.blend) 2) Switch the scene to Original and then render. Note the time for BVH build. 3) Switch the scene to Instanced and then render. Note the increased time for BVH build.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @ZauberParacelsus

Added subscriber: @ZauberParacelsus

As a note, I was able to partially alleviate the problem by dividing the hair-covered mesh into quarters, and then splitting each quarter off into a separate group. This brought the BVH build time for instances down closer to what it was for the originals.

As a note, I was able to partially alleviate the problem by dividing the hair-covered mesh into quarters, and then splitting each quarter off into a separate group. This brought the BVH build time for instances down closer to what it was for the originals.

Added subscriber: @Sergey

Added subscriber: @Sergey

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2016-01-25 11:31:40 +01:00

Spatial splits aren't fully friendly with threading, this is a subject for improvement still. Thanks for the report, but it's not yet considered a bug.

Spatial splits aren't fully friendly with threading, this is a subject for improvement still. Thanks for the report, but it's not yet considered a bug.

I think I'll just turn spatial splits off then. A quick test render on an urban scene I've been working on showed a 20-30 second reduction in render time with spatial splits disabled, and a small reduction in memory usage.

Are spatial splits simply not worthwhile at the current point in time?

I think I'll just turn spatial splits off then. A quick test render on an urban scene I've been working on showed a 20-30 second reduction in render time with spatial splits disabled, and a small reduction in memory usage. Are spatial splits simply not worthwhile at the current point in time?
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
2 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#47234
No description provided.