afisakov
You can change this now in User CP.
- Reaction score
- 37
I remember reading in the past that strings kind of leak. That they all get stored in a table that cannot be readily cleared. Trying to get some more information on the issue.
1) Would a line like
create a single string that "leaks", or a whole bunch for each instance of "concatenate stringe" being used?
2) Would this use up alot of memory if it runs every time a tower is built in my TD map. or would the net result still be insignificant?
3) Would a line like
use up additional memory each time it is used, or remember itself? i.e. would it be worthwhile to set it to a string variable at map initialization and then just calling the variable every time? Considering it would run a good 20x per game or so.
1) Would a line like
JASS:
call DisplayTextToPlayer(udg_player<i>,0,0,"You recieved |cffffcc00"+I2S(goldpay)+"|r interest from "+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+" for "+GetUnitName(GetTriggerUnit())+" on "+udg_tech_names[i2] )</i>
create a single string that "leaks", or a whole bunch for each instance of "concatenate stringe" being used?
2) Would this use up alot of memory if it runs every time a tower is built in my TD map. or would the net result still be insignificant?
3) Would a line like
JASS:
"You need |cffffcc00 200|r gold to buy a lumber."