Old Mages Magic & Mayhem Gamers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Where the old players come back to what once was grand
 
HomeLatest imagesSearchRegisterLog in

 

 Boolexpr leaks

Go down 
2 posters
AuthorMessage
Piddagoras
Map Maker
Piddagoras


Number of posts : 592
Registration date : 2008-05-22
Age : 36
Location : California

Your Character
Level: 1
Primary Move: Cosines and Sines.

Boolexpr leaks Empty
PostSubject: Boolexpr leaks   Boolexpr leaks EmptyWed Aug 27, 2008 6:43 pm

I'm not entirely sure, but I think boolexprs might leak if they arent destroyed after being used, so using functions like Filter(function <whateverfunction>) will cause leaks if they are plugged direcly into the GroupEnumUnitsInRange, pretty simple but annoying fix, because I have to go through and clean up all the area of effect spells or other triggers in the game that use filters.


In plain english, every time you cast a spell that effects more than one unit, you may or may not be creating a memory leak which could cause the game to slow down or fail entirely after a long enough time has passed.
Back to top Go down
Jay.J
Head Admin
Head Admin
Jay.J


Number of posts : 3470
Registration date : 2008-05-21
Age : 33
Location : Toronto

Your Character
Level:
Primary Move: Moderate

Boolexpr leaks Empty
PostSubject: Re: Boolexpr leaks   Boolexpr leaks EmptyWed Aug 27, 2008 6:46 pm

And you would have to do what to fix this? Rewrite all AoE spells or...? Regardless, you should find out if that's true before you change anything and possibly do work for nothing.
Back to top Go down
http://lolcatz.jayj
Piddagoras
Map Maker
Piddagoras


Number of posts : 592
Registration date : 2008-05-22
Age : 36
Location : California

Your Character
Level: 1
Primary Move: Cosines and Sines.

Boolexpr leaks Empty
PostSubject: Re: Boolexpr leaks   Boolexpr leaks EmptyWed Aug 27, 2008 6:50 pm

I'm pretty sure they leak, any blizzard functions that take boolexprs to group units call the native grouping function and then destroy the boolexpr. But I can't find any conclusive information by googling about them.

They're also handle extensions, and handles are pretty leaky if you don't clean them up
Back to top Go down
Guest
Guest




Boolexpr leaks Empty
PostSubject: Re: Boolexpr leaks   Boolexpr leaks EmptyWed Aug 27, 2008 8:47 pm

this boolexprs stuff is completely foreign to me... [sigh]
Back to top Go down
Sponsored content





Boolexpr leaks Empty
PostSubject: Re: Boolexpr leaks   Boolexpr leaks Empty

Back to top Go down
 
Boolexpr leaks
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Old Mages Magic & Mayhem Gamers Forum :: Archives :: Archives-
Jump to: