keenanwoodall / Deform

A fully-featured deformer system for Unity that lets you stack effects to animate models in real-time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About LatticeDeformer.controlPoints

IwakuraRein opened this issue · comments

commented

Just wondering why not allocate the controlPoints a persistent NativeArray and use it in the job, instead, allocating everytime?

Incidentally, I am implemeting the spring-mass-damper model with the LatticeDeformer.

The LatticeDeformer was actually written by a contributor so I'm not sure the motivation; perhaps just convenience. If you see any performance problems in your use-case I can pull it out into a persistent array, otherwise I'll leave it be for now.