• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Engineering Upgrade cause lagging

Status
Not open for further replies.
Level 2
Joined
Jun 11, 2010
Messages
27
I got a problem when i use the base skill Engineering Upgrade and other copies, it cause seriously frame rate reduction (60 -> 40 fps) when an unit learn it. I can see that DotA have many spell with that base skill (Synergy, Witchcraft) and no lagging. So is this my problem only? Is there any way to fixx it?
 
Level 30
Joined
Jan 31, 2010
Messages
3,551
Use the PRESET trigger, shown bellow.
(Personal Recovery - Evade Spikes Engine Trigger)
  • Preset (Preload) Trigger
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Set tempPoint = (Center of (Playable map area))
      • Unit - Create 1 Casual Dummy for Neutral Passive at tempPoint facing Default building facing degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Add Blazeshock [Improved +1] to (Last created unit)
      • Unit - Add Blazeshock [Improved +2] to (Last created unit)
      • Unit - Add Blazeshock [Improved +3] to (Last created unit)
      • Unit - Add Shadow Burst [Improved +1] to (Last created unit)
      • Unit - Add Shadow Burst [Improved +2] to (Last created unit)
      • Unit - Add Shadow Burst [Improved +3] to (Last created unit)
      • Custom script: call RemoveLocation(udg_tempPoint)
tempPoint stands for Temporal Point, and it's a Point variable.
Casual Dummy should be a critter, or a dummy.
Generic expiration makes sure that the unit dies after a second (more than enough time to preload all skills).
Custom script removes leaks, and makes your map laggless and leakless.
Just add up all the abilities you improve with Engineering ability.
Hope this helps (=
 
Status
Not open for further replies.
Top