I noticed one thing : accessing display object’s properties is a very expensive operation
for 1,100 do
obj.x= obj.x+val1
obj.y= obj.y+val2
obj.xscale=val3
obj.yscale=val4
obj.rotation=val5
end
is way more expensive than :
for 1,100 do
obj:translate(val1,val2)
obj:scale(val3,val4)
obj:rotate(val5)
end
the performance difference is very noticeable so I’m not sure what you’ve done in those transformation functions. Now, calling 3 functions is (I assume) will be more expensive than calling a singular transformation call using a transformation matrix.
It doesn’t seem like a difficult thing to do rite, I’ll do it for you if you let me edit the code :)? If you can add this new function to transform based on transformation matrix to the new build that will be wonderful!
Thank you
.someone who desperately needs to add another 10 fps [import]uid: 76697 topic_id: 17453 reply_id: 317453[/import]