in0finite / SanAndreasUnity

Open source reimplementation of GTA San Andreas game engine in Unity
https://discord.gg/p6jjud5
MIT License
2.13k stars 352 forks source link

Don't use ToArray() LINQ method when importing geometry, textures, collision files #59

Closed in0finite closed 4 years ago

in0finite commented 4 years ago

ToArray() allocates memory and is slow.

in0finite commented 4 years ago

Geometry importing doesn't create copies of arrays anymore.