Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
optimization, animtion.Render, less copying of arguments #17175
In Animation.cs multiple function are called that have 4+ arguments that take the same arguments. With "shadow" all the 5 arguments are copied at 4+ times.
Please consider combine pos, offset, zoffset and pallete into one object. The single object can then be passed from Render to Render to SpriteRenderable. Less arguments need to be copied multiple times on the stack.
Or as an alternative remove the Render function without scale, set scale as default value to 1.