Hair system, pick random from dupligroup leads to a huge viewport performance drop #50587
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#50587
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?
System Information
CentOS, Nvidia GTX Titan
Blender Version
Broken: 2.78a official
Short description of error
Pick random from dupligroup leads to a huge viewport performance drop
Exact steps for others to reproduce the error
Create two or more objects with a subsurf mod on them
Add them to a group
Create a hair host object (plane)
Make a hair system
Use that group as a dupligroup
Check "pick random" -> huge performance drop
File attached
pick_random_performance_drop.blend
Changed status to: 'Open'
Added subscriber: @YegorSmirnov
Added subscribers: @MikeErwin, @Sergey, @dfelinto, @mont29
Ok, sooooo… This is OpenGL drawing issue.
in
draw_dupli_objects_color()
, line 2145 and following, code decides whether it generates a displist or not for the current dupliobject, among other things based on the fact that next dupliobject to be drawn is the same as current one or not.In our case, this is catastrophic, because random picking among a group of few objects will often gives sequences of two or three times the same object. So the displist will be generated, but not used that much - and clearly, generating a displist is not a small process! Without random picking, since each object is picked on its turn, you never have two in a row, so displist never gets generated.
(the part of dupli object drawing involved goes from 43us to 480us average per dupli, here on a debug build.)
@Sergey, @dfelinto, @MikeErwin, not sure we consider this a bug worth fixing right now? Drawing code is being fully rewritten for 2.8 anyway…
Assigning to Clement since he is the one that handled the new version of the "code". So at least he should be aware of this problem for the new viewport.
Added subscriber: @TomG
Added subscriber: @brecht
Changed status from 'Open' to: 'Archived'
No longer an issue in 2.8.