bryanedds / Nu

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

DotRecast creating tons of objects. #774

Closed bryanedds closed 5 months ago

bryanedds commented 6 months ago

This is just for the small scene in TerraFirma -

image

Let's see if there's anything we or the maintainers of DotRecast can do to mitigate this.

bryanedds commented 6 months ago

If we can't directly improve the RcSpan object count, maybe instead of caching a reference of it we can cache a reference to the likely much lighter debug drawing info that we compute from it here -

https://github.com/bryanedds/Nu/blob/master/Nu/Nu/World/WorldFacets.fs#L3090-L3198

bryanedds commented 5 months ago

Solved our local issue with the new NavBuildResultData type.