Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2012-06-07 09:29:10 +0400
committerJoshua Leung <aligorith@gmail.com>2012-06-07 09:29:10 +0400
commite69ec8be5554a774612b8eeb15a2f00a327cc795 (patch)
tree16074086868495da806a47e2e0a3d8c6967edebe /source/blender/editors/space_view3d
parentebb2dc84fcbb344ae3625e0e9d89b724d5378ca0 (diff)
Bugfix [#31735] Performance issue related to object parenting to armature
In the file included with the bugreport, framerates were dropping from 60fps to 11fps for an armature with several lattices parented, and a 5fps drop everytime an object was parented to the armature. Upon (re-)inspection of the code, it became apparent that this was being caused by a block of code that would recalculate the parent (perhaps recursively) as it thought the parent state was for the wrong timestamp. However, the timestamps this was using was never really updated (except for a single place, which set it to a single fixed value to force recalculations to take place), which meant that this branch was run all the time. AFACT, this is a remnant from some of the old timeoffset stuff + pre-Depsgraph timestamping hacks that are no longer used/set.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 63dc6c21863..73d941f62ce 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -6578,9 +6578,6 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, int flag)
/* no return after this point, otherwise leaks */
view3d_cached_text_draw_begin();
- /* patch? children objects with a timeoffs change the parents. How to solve! */
- /* if ( ((int)ob->ctime) != F_(scene->r.cfra)) BKE_object_where_is_calc(scene, ob); */
-
/* draw motion paths (in view space) */
if (ob->mpath && (v3d->flag2 & V3D_RENDER_OVERRIDE) == 0) {
bAnimVizSettings *avs = &ob->avs;