bryanedds / Nu

Repository hosting the open-source Nu Game Engine and related projects.
MIT License
1.05k stars 151 forks source link

Use of NavBodyFacet can be somewhat inefficient. #738

Open bryanedds opened 3 months ago

bryanedds commented 3 months ago

It has an event handler on Transform changes which might not be useful for some cases.

Let's see if we can optimize for these cases and / or optimize in general.

bryanedds commented 3 months ago

Now conditionally subbing to Bounds instead.

For maximum efficiency, we can probably do more, such as cooking the navigation shape updates into the engine instead of using events.