Posted May 09, 2022 by Artificials
A new version with performance improvements and one replaced level. As well the latest game starts unfortunately in the middle of the demo.
The game had performance problems right after the second room on older hardware. But even on new hardware some of the levels had a visible impact. This was due to my expensive AI logic for the many soldiers who are bustling around, but as well all the falling blocks had an AI.
The solution was to zone them in and put them inactive if not yet visible to minimize the amount of AI which is running.
As well did the physic system send way too many updates of entities that didn't even move, so I implemented a filter for that to reduce the number of entities getting position updates for the models.
As the underground army level was way too early I replaced those two levels with a new one that fits better the progress of the game. The last demo level is not yet finished and is coming soon.