XInitThreads perfomance issue #55287

Closed
opened 2018-06-01 13:02:30 +02:00 by Brecht Van Lommel · 7 comments

On some systems, our usage of XInitThreads() is causing a significant slowdown in viewport playback. On other systems there is no apparent impact.

It is not clear yet why, needs to be investigated. We may be able to remove XInitThreads() if there is a dedicated thread for each drawing context, that other threads can give a job to do their drawing.

On some systems, our usage of `XInitThreads()` is causing a significant slowdown in viewport playback. On other systems there is no apparent impact. It is not clear yet why, needs to be investigated. We may be able to remove `XInitThreads()` if there is a dedicated thread for each drawing context, that other threads can give a job to do their drawing.
Author
Owner

Added subscribers: @brecht, @Sergey

Added subscribers: @brecht, @Sergey

Added subscriber: @fclem

Added subscriber: @fclem

Small update on this one.

On systems that exhibit this issue, it seems that any call to the following functions takes way more time than it should.
glBufferSubData
glBufferData
glMapBuffer
glMapBufferRange

So even updating uniform buffers is taking a long time.

We still need to see if we can reproduce this problem with a small test application.

Small update on this one. On systems that exhibit this issue, it seems that any call to the following functions takes way more time than it should. glBufferSubData glBufferData glMapBuffer glMapBufferRange So even updating uniform buffers is taking a long time. We still need to see if we can reproduce this problem with a small test application.

Here is a test application which demonstrates the issue: gen_buffers_test.c

With XInitThreads() i've got 0.68sec for the test, without it it's 0.18sec.

Here is a test application which demonstrates the issue: [gen_buffers_test.c](https://archive.blender.org/developer/F3826556/gen_buffers_test.c) With `XInitThreads()` i've got 0.68sec for the test, without it it's 0.18sec.
Author
Owner

Is this still something we intend to fix?

As I understand it this was solved for @Sergey by upgrading to a newer kernel/driver.

Is this still something we intend to fix? As I understand it this was solved for @Sergey by upgrading to a newer kernel/driver.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sergey Sharybin self-assigned this 2018-12-20 15:01:10 +01:00

@brecht, that wasn't a kernel/driver version. I've re-installed the entire OS and that did fix the slowness. Not sure what exactly solved the issue, but my guess is that some of the alternatives in ht driver libraries went wrong over the years of initial install.

Think it's fine to close the task. Is nothing what we can solve from Blender side anyway. And for now the known case is resolved :)

@brecht, that wasn't a kernel/driver version. I've re-installed the entire OS and that did fix the slowness. Not sure what exactly solved the issue, but my guess is that some of the alternatives in ht driver libraries went wrong over the years of initial install. Think it's fine to close the task. Is nothing what we can solve from Blender side anyway. And for now the known case is resolved :)
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
3 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#55287
No description provided.