| 02-12-2007, 09:30 AM | #1 |
Everytime I add an ability to a unit the game slightly lags. Exactly: I'm adding a spellbook dummy ability with a real ability inside. Do you know a way how to prevent the game from lagging in this case? I need to add and remove abils pretty often, so this lag is very irritating. I understand a lag when the game has to load some new models or whatever, but in this case the game should not load anything. ![]() |
| 02-12-2007, 09:34 AM | #2 |
How often do you add abilities? However, it should not lag unless you add a few hundred abilities in a second... It depends on your computer. EDIT: Its different if they get cast or something, though... |
| 02-12-2007, 09:41 AM | #3 |
I'm not adding hundreds of abilies, just when a hero picks up an item it adds a ability to him. I have AMD AXP 2500+ 512RAM, so the computer is for W3 powerful enough. |
| 02-12-2007, 10:05 AM | #4 |
You can prevent the learn lagg with preplacing a unit with the needed abilities and removing it during init or whatever you want to do. I also make this for my maps and it works nice. |
| 02-12-2007, 10:07 AM | #5 |
If it's the first time you add that ability, it is normal. |
| 02-12-2007, 10:19 AM | #6 | |
Quote:
Yes, Fireeye is right, you need to preload the abilities or you will get "first time lag" when you add the ability. So if you make a unit in the corner of your map where nobody is going to see it, add all your abilities, you will get like a 0.5 sec lag spike (depending on how many there is), then remove it about 5 seconds later, then you wont get this small lag when you add the ability. |
| 02-12-2007, 11:36 AM | #7 |
Yes, thank you all, I've done so and it is now OK |
