Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.



Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Forums > Warcraft > Warcraft General > Warcraft Maps and Modifications

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 06-08-2005, 10:40 AM   #1 (permalink)
BattleForums Junior Member
 
Stardragon's Avatar
 
Join Date: Nov 2003
Location: Sweden
Age: 20
Posts: 106
Regarding memory leaks

Does anyone know of a tutorial on how to prevent memory leaks in custom maps and what kind of triggers cause memory leaks?
__________________


www.beelzebub.se -My new website
Stardragon is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 06-09-2005, 02:24 AM   #2 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,282
Quote:
Originally Posted by Stardragon
Does anyone know of a tutorial on how to prevent memory leaks in custom maps and what kind of triggers cause memory leaks?
I don't have any tutorials, but usually it is bad trigger design.

A few examples:

Giving an item to a unit that cannot hold an item.
Attempting to change player properties of a player that is not playing.
Attempting to create 100000000 units at once and thinking it works on your GeForce Infinity XXX Pro but not realising the guy with a GeForce 0 can't.
In general, changing properties of units, heroes or items that are not alive or considered dead - they are 'undefined'.
Infinite triggers that never stop and have zero delay between them.

Can't think of anything more.*
__________________
* IM IN UR WIKI RVRTING UR EDITS

x42bn6 is offline   Reply With Quote
Old 06-09-2005, 08:50 PM   #3 (permalink)
BattleForums Addict
 
Icedragon's Avatar
 
Join Date: Aug 2002
Location: The Swiming Pools
Age: 20
Posts: 834
by Memory Leaks you mean game crashes right?
sorry but i have never run into this problem but x42 seems to know what he is talking about

Quote:
Originally Posted by x42bn6

Attempting to create 100000000 units at once and thinking it works on your GeForce Infinity XXX Pro but not realising the guy with a GeForce 0 can't.
ZTd does this dont ever look at the spawn befor they move it makes me lag like a mofo
__________________
I Will Rise from the Depths and be HEARD!
Icedragon is offline   Reply With Quote
Old 06-10-2005, 02:38 AM   #4 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,282
Quote:
Originally Posted by Icedragon
by Memory Leaks you mean game crashes right?
sorry but i have never run into this problem but x42 seems to know what he is talking about



ZTd does this dont ever look at the spawn befor they move it makes me lag like a mofo
Crashes or memory errors (a red circle with an X through it, giving a FATAL ERROR! Memory address 0x01234567 or something).

Oh, another thing is when a spell or trigger transforms a hero that has an item into a unit that cannot hold an item. Make sure you trigger it to drop all the items first! Otherwise the item drops, the unit transforms, Warcraft freezes and a memory error occurs.*
__________________
* IM IN UR WIKI RVRTING UR EDITS

x42bn6 is offline   Reply With Quote
Old 06-10-2005, 09:50 AM   #5 (permalink)
BattleForums Junior Member
 
Stardragon's Avatar
 
Join Date: Nov 2003
Location: Sweden
Age: 20
Posts: 106
What I mean by memory leaks, are triggers that makes the game lagg more than it should.

For instance, if you use a lot of trigger picking units inside regions and triggers targeting center of region you'll get more lagg than usually. I was able to remove a lot of lagg in my map by using variables and stuff instead of always doing triggers like the ones above.
__________________


www.beelzebub.se -My new website
Stardragon is offline   Reply With Quote
Old 06-13-2005, 06:29 AM   #6 (permalink)
BattleForums Addict
 
Icedragon's Avatar
 
Join Date: Aug 2002
Location: The Swiming Pools
Age: 20
Posts: 834
Yes as to reducing lag yeah varibles and other things can reduce lag... funny there was a guy on here trying to recreate magic the card game and i dont think he knew how to use varibles cause he said it slows the game down... i havnt ever had a problem with lag in any of my maps even my never ending defence on the hardest difficulty(it spawned a unit every half or quarter of a second i dont remember)
__________________
I Will Rise from the Depths and be HEARD!
Icedragon is offline   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« importing loadig screen | Get over HERE! »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 12:49 AM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0