Skip to content

ModuleSystemHeatColorAnimator accesses Renderer.material every frame, and this is slow #165

Description

@Phantomical

The right way to fix this is likely material property blocks, but between conformal decals and technicolor that would be broken. Keeping this open to track the issue. Once KSPModdingLibs/Shabby#24 is merged in some form we can change to use that.

Profile:

Image

And in unity

Image

Admittedly the bigger problem is that it causes the material to be instantiated for every single instance of the part, but we can probably make some improvements here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions