[Bf-committers] Performance Patch for Blender

Chris Burt desoto at blender.spaceisbig.com
Mon Jul 18 21:23:26 CEST 2005


Just so you know, the entire animation system has been recoded so I'm 
not so sure your patch is relevant anymore. However if you'd like to 
dump it in the patch tracker it may be of help at some point.

Regards,
--Chris

Thomas H. Hendrick wrote:
> 
> Hey.  Love the program, outstanding work, etc, etc.
> 
> I'm new to the Blender code, but I was noticing serious slowdown
> problems with 2.36, 2.37, and 2.37a when I was deleting an action strip
> from an armature.  Using my profiler and some other tools, I think I may
> have found something which will speed things up (if I understand this
> section of code at all).
> 
> Attached please find a small patchfile for one file
> (source/blender/src/space.c).
> 
> If I read the code correctly:
> 
> for each Screen of G.main
>    for each ScrArea of Screen.areabase
>      for each SpaceLink of ScrArea.spacedata
>        if event is REMAKEALLIPO
>          for each ipo in G.main->ipo
>            for each curve in ipo->curve
>              testhandles_ipocurve
> 
> However, as far as I know, IPO Data blocks are not related to Screens,
> ScrAreas, or SpaceLinks.  So, each time you go through this process,
> you're going to be recalculating the same IPO Data, and getting the same
> result.  At least, I think so.
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers


More information about the Bf-committers mailing list