EnemySpotter widget
Posted: 08 Feb 2015, 12:54
Improved the widget performance.
- The platter is now texture based. (no performance impact, but it's smoother)
- Now doesn't loop through all visible units every single frame.
It does it less often, at the moment it is configured to do it once every X gamesframes dependent on FPS, or more often when camera position has changed.
Must notice that performance at start is way more than endgame. (3.5x and endgame just 1.33x, but tested as spec...which renders more enemyspotters anyway)
- The platter is now texture based. (no performance impact, but it's smoother)
- Now doesn't loop through all visible units every single frame.
It does it less often, at the moment it is configured to do it once every X gamesframes dependent on FPS, or more often when camera position has changed.
Must notice that performance at start is way more than endgame. (3.5x and endgame just 1.33x, but tested as spec...which renders more enemyspotters anyway)