• 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.

Memory usage

Status
Not open for further replies.
Level 11
Joined
Jul 28, 2007
Messages
920
Is there any diffrence if i make triggers:

For each intergal from 1 to 12
Player set gold to 100

AND

Set gold for triggering player to 100

?

I ask only coz 1st trigger does action 12 times when player triggers it, and second trigger does it only when player trigger and for that player only.
 
Level 8
Joined
Feb 20, 2007
Messages
338
I'm sorry, your subject line says "memory usage" then you go on about the differences of the two commands. Do you need to know how those two commands impact computer memory usage or are you looking for something else? Like if you are wondering if those leak (as far as I know those two commands don't leak).
 
Level 12
Joined
Feb 13, 2009
Messages
388
Is there any diffrence if i make triggers:

For each intergal from 1 to 12
Player set gold to 100

AND

Set gold for triggering player to 100

?

I ask only coz 1st trigger does action 12 times when player triggers it, and second trigger does it only when player trigger and for that player only.

If I get the question right, there's just a single question in this post: "is there any difference if I make triggers: ..."

The answer is: yes, there is a difference. The answer why is in the 2nd post.

Wraithwynd: stay on topic please :mad:. There're some serious people here.
 
Level 12
Joined
Mar 16, 2006
Messages
992
Pick all players and do following:
Give X gold to (Picked Player)

The difference is so minor that you shouldn't concern yourself with it. How much memory does 20 bytes add? What about processing 20 actions? It all means practically nothing to a computer.
 
Level 11
Joined
Jul 28, 2007
Messages
920
Damn it, sorry guyz, i forgot to write all xD, i meant does first command takes more usage, like it can produce more lagg than 2nd one, lets take example; if i put lots of actions in triggers ( that many so if couse little lagg ), would it be greater lagg in game ussing 1st trigger ?

Vegavak; its related to floating text, each time hero enters map there will be floating texti init, meaning: that some floating texts on map will be hidden from some players and some shows, depending on conditions of players.

So should i use when unit enter; check conditions of players, then show/hide floating text or for each integral A (check for all players each time unit enters map, and show/hide for player intergal A floating text, or its not important as you say Vegavak ?
 
Status
Not open for further replies.
Top