• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Peformance problems with custom real values

Status
Not open for further replies.
Level 4
Joined
Nov 22, 2006
Messages
28
I´ve a problem: I stored the value of towers as custom real (i use the WEU). Then i pick every tower in a periodic event and add their costum real values to an counter (converted to integer). The max number of picked towers is 80 but already with 20 picked units there are small annoying lags :(

Basicly it´s this (there are more functions but they don´t lag):
wc3cd8.png


Is there any chance that using the costum integer will solve this problem? I already used it so i´ve have to make some changes. Or is there any other posibility to store the value of the towers and count it without lags?
 
Level 4
Joined
Nov 22, 2006
Messages
28
So the custom real value is leaking? I don´t intent to learn JASS and i know how to prevent leaks but i´ve never heard the custom real value does do it.

I don´t think it´s an leak issue because it´s not getting worse over time. It´s just taking to long to calculate or i´m wrong? I created a testing map but custom integer is not much faster.

EDIT: Erm... i tried again with less units and integer is faster than the costum real value.
 
Last edited:
Level 6
Joined
Nov 28, 2007
Messages
203
The unit groups are leaking.
  • Unit Group - Pick every unit in..
Remove the leaks by putting
  • Custom script: set bj_wantDestroyGroup = true
before every Pick every unit in..
 
Status
Not open for further replies.
Top