By relying on the fact that the fcurves are ordered, I manged to come up with this patch: http://www.pasteall.org/27119/diff.
It reduces the time the BGE spends in Blender's animation code by about 30%. The patch basically just moves the guts of animsys_write_rna_setting() into a new function called intern_write_rna_setting(). This allows me to create a animsys_write_rna_setting_array() without much code duplication. Then, the last step is to change how fcurves are iterated in animsys_evaluate_fcurves() and to take advantage of the new animsys_write_rna_setting_array(). Right now the old code is still there guarded by an #if 1 new_code #else old_code #end This way you can still easily switch between the new and the old code for testing. --Mitchell Stokes _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
