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

Leaks on sp campaigns

Status
Not open for further replies.
Level 3
Joined
Feb 13, 2014
Messages
14
So I'm wondering if it's truly neccesary to care about leaking triggers on campaigns maps, I know that if important to free memory on multiplayer long maps, but it's that relevant on a campaign map?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Depends. The odd leak here and there makes little difference. However if you use a complex system (like moving a unit 60 times a second) then it is still very important as the performance will degrade just like a multiplayer or long maps.

Campaigns also some times have long maps so I think there might be some overlap there.
 
It is probably most important to watch for periodic leaks (make sure your periodic triggers are leak-free--the ones that run every X seconds [including the periodic parts of triggered-spells]).

I recommend that you clean them up in general. It is good practice. It might not make a huge difference, but I don't see a point in ignoring some and fixing a few--it becomes confusing and requires more thinking.

To put it into perspective, you're going to need several thousand or tens of thousands of leaks to degrade performance on modern computers (maybe even hundreds of thousands). This is a lot, but keep in mind that periodic triggers can easily get to these amounts within a matter of seconds.
 
Status
Not open for further replies.
Top