Hair: Unexpectedly long sync times #37302
Labels
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#37302
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
%%%--- Operating System, Graphics card ---
Arch x64, Phenom II 1055T, 16GB RAM
self-built r61073
after noticing that 1M hairs seemed to take a bit longer to synchronize than expected, i set up a little test (CPU only, SVM)
these somewhat non-scientific tests were all done by adding a hair particle system to the default cube, and stopping the render right after (well during, technically) the synchronization stage.
1k parents
10k parents
wacky.
Notes:
- each test was performed with a freshly-opened blender
- the 500K, 1M, and 10M tests were consistent for the 2 or 3 times i ended up running them (and after i restarted from that hang)
- i tried gprof (with a separate build), and with one of those tests (1k/1k iirc), BLI_qsort_r accounted for pretty much the entire runtime. the comment in /blenkernel/intern/particle_system.c:1332 gives me the impression the "optimization" is specific to BI? i probably shouldn't speculate about this lol
%%%
Changed status to: 'Open'
%%%those CTDs do in fact happen due to running out of ram, the 1k/1k test case peaks at about 1.5gb during the bvh building, so...
also as a test i commented out that if statement containing the qsort call, and it drops the 1k/1k case down to around 3 seconds, and the 1k/5k case to 15 seconds; quite a lot closer to the linear increase i expected.
however i don't know whether this is a valid solution as far as cycles is concerned
EDIT: since blender moved to git i just put this workaround fix in its own branch to use as my main build until a proper fix is found. i'm actually getting much better times this time around then when i tried the fix the last time... odd (although last time i didn't comment out the if... maybe gcc wasn't eliminating it or something)%%%
This issue was referenced by blender/blender-addons-contrib@b119f471f4
This issue was referenced by
b119f471f4
Changed status from 'Open' to: 'Resolved'
Closed by commit
b119f471f4
.