Optimization II version
Introduction
The next version, where the main goal is optimization. This time, the task was to replace all PolledWait() and TriggerSleepAction() functions. The task is only half completed, as there are a total of 178 such functions, and 85 have been replaced in this version. 93 are still left.
But of course, these changes are not limited to that, there are also interesting innovations.
Optimization
- Replaced 85 PolledWait() and TriggerSleepAction() functions with timers. This should provide smoother gameplay and more accurate time values. Additionally, it reduces the risk of desynchronization and crashes.
- Monster Camp constants have been reset to default values, as these values could cause desynchronization.
- The AI behavior of bot units has been reworked, as problems arose with their behavior after changing the constants. The AI has been improved overall.
- Unnecessary hash table initializations have been removed: InitHashtable(). Since these are large objects for memory, it's better to initiate them in smaller quantities.
Changes
- New feature. Icons on the mini-map in space. Now all stations/planets/big ships are displayed with a large icon, and all asteroids with a minimal icon (previously not displayed at all). Ships and other objects are displayed with the medium, default unit icon as before.
- New feature. Now when landing on Niffy, you can land in both the right and left docks (previously only the left one was selected if there were free spaces). Now when landing through the bottom and left part of the station (in space) - you dock in the left dock. And when landing through the top and right part of the station - you dock in the right dock.
- Now the ability Tesla Suit Whirlwind can attack destructible objects (rocks, doors), but damage to destructibles is 50% lower than to combat units. Now if both combat units and destructible objects are in the Whirlwind's range, the Whirlwind attacks them one by one (4 shots at one, 4 at the other).
- Android evolution now appears at the 16th minute instead of the previous 22nd minute. The EP volume has not changed - 2000 units. The inflow per second has changed, previously at 1.5 EP per second, now at 2 EP per second.
- Swagger has been moved slightly away from the center of the space map. In addition, the Errun net now moves Swagger for a shorter distance.
- Increased the radius of the Erruna gravitational net rupture upon collision with a black hole. Previously, the rupture was 500 units from the epicenter, now it is 700 units.
- Drones and Pirate ships no longer attack asteroids.
- Multiple black hole bugs have been fixed, including the appearance of a black hole in the technical area in the upper right corner.
- Now in the dead chat, player nicknames start with their profession (Dr. Ytrec). Previously, there was only the nickname.
Bug fixes