Blender becomes a lot much slower with parentheses in driver expression #67158

Closed
opened 2019-07-18 07:55:29 +02:00 by Loux · 7 comments

System Information
Operating system: Windows 10 - 64bits
Graphics card: GeForce RTX 2070
Processor: AMD Ryzen 7 2700X (3.7 GHz)
Ram: 32.0 Go

Blender Version
Broken: (v2.80, Release Candidate)

Short description of error
Hello !
On my main project I work with a lot of drivers for my rigs and I use a lot of math. but in the expression of my driver when I add parentheses blender becomes a lot much slower.. :/

Thanks,

Exact steps for others to reproduce the error
ErrorShare.blend

  • Open the file
  • Play Animation with Eevee Render
  • Select Armature and go in pose mode
  • Add Driver on X rotation on the bone d_World (The big in center on the floor)
  • Remove driver variables and change driver expression for 1+2 (On my compunter, 1080p full screen Blender turn at 60fps)
  • Change driver expression for (1+2) (On my compunter, 1080p full screen Blender turn now at 9fps...)
**System Information** Operating system: Windows 10 - 64bits Graphics card: GeForce RTX 2070 Processor: AMD Ryzen 7 2700X (3.7 GHz) Ram: 32.0 Go **Blender Version** Broken: (v2.80, Release Candidate) **Short description of error** Hello ! On my main project I work with a lot of drivers for my rigs and I use a lot of math. but in the expression of my driver when I add parentheses blender becomes a lot much slower.. :/ Thanks, **Exact steps for others to reproduce the error** [ErrorShare.blend](https://archive.blender.org/developer/F7615966/ErrorShare.blend) - Open the file - Play Animation with Eevee Render - Select Armature and go in pose mode - Add Driver on X rotation on the bone d_World (The big in center on the floor) - Remove driver variables and change driver expression for **1+2** (On my compunter, 1080p full screen Blender turn at 60fps) - Change driver expression for **(1+2)** (On my compunter, 1080p full screen Blender turn now at 9fps...)
Author

Added subscriber: @BleuRaven

Added subscriber: @BleuRaven
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Hi @BleuRaven

Could you mention the performance compared to Blender 2.79
Blender 2.80 recognizes several basic expressions and evaluate these expressions in C in stead of Python, what is way much faster.
Parentheses are not part of these expressions and will be evaluated in Python.
bf2a54b058

If this is the case than this is not a Bug, but how the system is designed to work.

Hi @BleuRaven Could you mention the performance compared to Blender 2.79 Blender 2.80 recognizes several basic expressions and evaluate these expressions in C in stead of Python, what is way much faster. Parentheses are not part of these expressions and will be evaluated in Python. bf2a54b058 If this is the case than this is not a Bug, but how the system is designed to work.
Author

Oh ok I understand better, Thanks
I can not test with Eevee Render in Blender 2.7 so it works in both cases at 60 fps
I think it would be useful to add a indication in driver Editor to tell the user if his expression is compute with Python or C

Oh ok I understand better, Thanks I can not test with Eevee Render in Blender 2.7 so it works in both cases at 60 fps I think it would be useful to add a indication in driver Editor to tell the user if his expression is compute with Python or C

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2019-07-29 18:31:41 +02:00

Thanks, not a bug then, archiving.

Thanks, not a bug then, archiving.
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#67158
No description provided.