Bit of a misc fix-up/speed-up branch in-between the feature branches.
Car navigation logic performance is now more than 6x as fast, and fixed a pretty bad bug in it causing poor path finding.
Level loading time marginally improved (~5-10%) again by using an extension method to do faster file extension checking. (i.e. string.EndsWith)
In the level T03.MSN, there are 13 cars - profiled (regular, not deep profile) difference on CarAI.Update method:
Before changes: 1.30ms
After changes: 0.18ms
In addition, the piranha no longer flies off-road at the start of the mission. It's quite fun seeing Taurus and Swinger racing down the road. They don't slow down in the corners so they veer off road a bit but they do a good job recovering.
Bit of a misc fix-up/speed-up branch in-between the feature branches.
In the level T03.MSN, there are 13 cars - profiled (regular, not deep profile) difference on CarAI.Update method:
In addition, the piranha no longer flies off-road at the start of the mission. It's quite fun seeing Taurus and Swinger racing down the road. They don't slow down in the corners so they veer off road a bit but they do a good job recovering.