EnemySpotter widget

EnemySpotter widget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

EnemySpotter widget

Post by Floris »

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)
Attachments
enemyspotter.zip
18 february 2015
(7.31 KiB) Downloaded 8 times
Last edited by Floris on 19 Feb 2015, 08:23, edited 1 time in total.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: EnemySpotter widget

Post by PicassoCT »

Doesent work- in as does not draw teamplatter
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: EnemySpotter widget

Post by jamerlan »

? worksforme
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: EnemySpotter widget

Post by Floris »

- further improved performance while (constant) camera changes with up to 1.5 - 2.5x

(picasso comment has probably something to do with: viewtopic.php?f=23&t=32956&start=20#p565897)
Post Reply

Return to “Lua Scripts”