#transform.hasChanged in a job

1 messages · Page 1 of 1 (latest)

feral wyvern
#

When can we expect a hasChanged flag that works with TransformAccessArray or something else that works in a job. What would be a efficient way to check this with the current api?

twilit hemlock
#

not applicable for specific entities

feral wyvern
#

Im not using entities at all

queen quartz
#

TransformAccessArray is the managed side

#

^

twilit hemlock
#

oh

queen quartz
#

that said, i'd be surprised if they added a change filter to this

twilit hemlock
#

well, with this one you are in full control of modifying it

#

so you might as well implement that feature yourself

feral wyvern
#

Im not sure what you mean. I can keep a cache of the prev frame values and do a check in a job sure, but I feel that will not be a perf gain. My end goal is to uploaded the transform matrices to a gpu buffer. Right now I upload all of them each frame and I want a way to minimise that.

queen quartz
#

memcmp is excellent for large change comparisons

#

if you can structure your data in a way to get it to work

twilit hemlock
#

and then just compare cached version with current one