Regression: speed of creating objects (MSVC2013) #40450
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#40450
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
Operating system and graphics card: Windows 7, NVIDIA GeForce GTX 550 Ti
Good day! I would like to draw your attention to a very unpleasant moment.
A new test release blender-2.71 creates (using the same
script) objects more than 2 times slower than blender-2.70!
Sincerely, sant_a.
Changed status to: 'Open'
Added subscriber: @sant_a
Added subscriber: @mont29
What are we supposed to do with such a report? Write our own 'add object' script? Please always attach needed files to reproduce the issue.
Ok. Send You the sample file add objects. In the blender-2.70a-windows64 objects are added ~ for 7 sec., and in blender-2.71-testbuild2-win64 - 43 sek.!!!
Here is the code of the script:
import bpy
import time
bpy.ops.object.delete({'selected_bases': list(bpy.context.scene.object_bases)})
for mesh in bpy.data.meshes:
time_start = time.time()
for i in range(1000):
print("My Script Finished (sec):", time.time() - time_start)
Today I saw that you updated the built-in Python (3.3.0 --> 3.4.0.).
Perhaps this is a new release of Python became so clumsy?
Can’t confirm this here on linux, 2.70a and 2.71both take about 17secs on a rather recent and powerful laptop…
However, there is a much bigger change than new py3.4 on windows: we switched to new VC2013 compiler (2.70 was built with VC2008)… Than could very well be the culprit?
Martin, can you please have a look at this? thanks! :)
Added subscriber: @willi-2
AMD Phenom II 965 BE (3,4 GHz):
blender-2.70-3e6c734-win64: 16.8 s
Narrowed it down to these two versions:
blender-2.70-be980b9-win64 (May 16): 6.9 s, 6.5 s
blender-2.70-07e8096-win64 (May 18): 14.8 s, 13.3 s, 15.1 s, 14.4 s
So, reproducable here.
I agree with mont29. And here:
inform that VC2013 does not maintain compatibility runtime code to older versions VC for Win64.
Will try to win32.
I can also reproduce the issue.
16.18 vs 30.52 for me under wine.
about that supposed vc 2013 problem ->
Why has nobody else reported this compatibility problem?
We do NOT mix vc2013 with any other vc++ code
Added subscriber: @ideasman42
be980b9
&07e8096
are both using Python3.4, so looks like MSVC2013 is the issue?It seems to be at least compiler related.
2.70a official and preview show the same regression.
The speed of creating objectsto Regression: speed of creating objects (MSVC2013)Added subscriber: @Sergey
Its possible this is OpenMP related, since we had reports that OpenMP has speed issues with MSVC2013,
However I tried to compare with/without OpenMP and couldn't notice any speed difference on my system.
Tested with current builds from builder.blender.org and 2.70a release, timing sof the script are the same exact in this two versions. So seems some recent tweaks to OpenMP made things better.
@sant_a, so please grab latest build from builder.b.o and see whether it behaves fine to you.
@Sergey I also tested today’s buildbot builds and for me the difference between msvc 2008 and 2013 is insignificant for those builds. ( ~1 %)
What is interesting is just how fast the progressive slowdown of adding more objects happens.
Added subscriber: @MartijnBerger
@MartijnBerger, this is a known thing. Adding new object is O(N) in blender, adding N objects is more about O(N^2). That's because of ensuring unique ID name and so.. Could be improved, but that's not a thing which is caused by MSVC2013.
The speed of object creation in the release
e8c63ca
really no worse than 2.70a. Thanks Sergey. The issue has been resolved.Removed subscriber: @willi-2
Changed status from 'Open' to: 'Resolved'
Cool, we can close this one then! :)