• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Trigger] Trigger leaks (lag)

Status
Not open for further replies.
Level 2
Joined
Mar 8, 2009
Messages
11
Hey guys,

i don't really know how to explain the problem
i have written a trigger for a spell and he is working well, the only problem is
- if you use the spell about 10 or more times, it starts to lag

i have watched at the trigger over and over again and i simply can't find the problem, maybe someone can help me

i can't post you the trigger code here cause i got wc3 in german, so you won't understand very much
i will append my map to the post so you can look at it if you want to

Hero: Deadeye
Skill: Multishot

thx for any answers!

btw: sry 4 custom models, so the map is a little big atm


View attachment test.zip
 
Level 2
Joined
Mar 8, 2009
Messages
11
hmm, i have already took a look at that

my problem is that i don't really know where to use the scrips

i already tried it for the unit group
call DestroyGroup(udg_MultishotDummys)
but it didn't realy help

do i really need a point variable for every position in my trigger to avoid such leaks?
are there any other things i have to take a look at?

sry 4 these nooby questions, but the tutorial goes about 43 pages and i think it would be a work of 30 sec to tell me whats missing

thanks in advance and sry 4 bad english :p
 
you have many point leaks. and that every 0.01 seconds, that's quite....laggy
give me some minutes to fix those.

Edit: Made your trigger leakless. There were also some things that didn't work, I removed it for you.
!But make a copy of your own, because I'm not 100% shure, that the trigger work properly!
 

Attachments

  • test.rar
    1.1 MB · Views: 50
Level 2
Joined
Mar 8, 2009
Messages
11
hmm the spell isn't working right now, but i will take a look what you have changed and fix it

seems like i should use a point variable every time i have to use a position
and the same for units / unit groups

the 0.01 sec trigger are laggy thats right, but i tought that when i turm them off after each cast it wont be a problem

thx for your help, will take your improvements in mind for my next triggers

i think there is no way around jass if you really want to make n1 abilitys and spells isn't it? :D
 
Status
Not open for further replies.
Top