#Bug in NetcodeSamples - Optimization sample 07

1 messages · Page 1 of 1 (latest)

dreamy steeple
#

The sample on optimization does not work properly since all barrels rotate, and hence the static optimization makes no sense.
The cause of this is that the BarrelSpinner, in Importance sample 09, rotates the barrels, and it does so due to an incorrect query filter state.RequireForUpdate<EnableOptimization>() that should instead be state.RequireForUpdate<EnableImportance>().

graceful raft
#

Thank you for pointing this out! That is indeed an oversight. I will make sure to fix this.