

Moderators: Víctor Paredes, Belgarath, slowtiger
It sounds great, and thanks, i'm very happy to see a new wise member , but I could not make your code work._Trip wrote:Anyway, I did modify the script a bit to fix the memory leak that was occuring and changed a couple of the "for" loops to ensure the fastest possible interpretation. I think what I've added could be used in most all of the scripts I've seen to help with those niggling and intemittent memory leaks/speed issues.
_Trip wrote:Copy the demo that was uploaded from a previous post and past the script into the one... Maybe a "New" one doesn't work? (Haven't tried that...)
I am not sure yet. I haven't even really looked at the code at all yet. I have to see what is going on... but... I wouldn't doubt it. 90% of most of these scripts involve TONS AND TONS AND TONS OF LOOPING. Anything that can streamline that... is going to help in some way I would hope.synthsin75 wrote:Vern, any hope of these performance enhancements helping Genete's auto-shape-sort script?
Code: Select all
for k=1, maxposes do
bone[k] = nil
local fc1 = skel:CountBones()-1 -- added to speed up loops
for i=0, fc1 do
Code: Select all
local fc2 = mesh:CountPoints()-1 -- added to speed up loops
for k=1, maxposes do
poses[layer]["points"][k]={}
for i=0, fc2 do
Code: Select all
local fc3=mesh:CountPoints()-1 -- added to speed up loops
for i=0, fc3 do --- move the points.