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

50 or so triggers with same event - concern?

Status
Not open for further replies.
Level 20
Joined
Mar 16, 2008
Messages
838
This map has about 50+ "item craft" triggers with same event. Would that be a cause for concern of lag? Some players complain of lag but I think that's due to their internet not being good. Not 100% sure. Thanks for any feedback.

  • Item Combine x
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • ((Hero manipulating item) is A Hero) Equal to True
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Item being manipulated)) Equal to ...
          • (Item-type of (Item being manipulated)) Equal to ...
    • Actions
      • ...
 
Last edited:
Level 44
Joined
Feb 27, 2007
Messages
5,547
Probably not an issue. Yes, a lot of duplicate code is being run every time an item is picked up, but almost every one of those triggers is failing at the conditions step and TriggerEvaluate is pretty quick as far as I remember.

You could make it slightly more efficient if all 'combineable' items are flagged as the same item class in the OE (say for example that they're all "Powerup"s or something, idk you can choose). Then your first line of conditions would be Item-class of (manipulated item) equal to Powerup. It might be that the convoluted condition functions that GUI makes would counteract any savings you could gain here, but in general if an single condition fails the engine will stop checking the rest of the conditions because it's pointless.
 
Level 20
Joined
Mar 16, 2008
Messages
838
they don't seem to be causing any lag after detailed test of picking up 6 items quickly.

out of curiosity, do you think it would be worth it to convert these triggers to jass if they were lagging?
 
Status
Not open for further replies.
Top