| 01-27-2006, 03:54 AM | #1 |
I have a situation where units slowly respond to their orders... "order lag" I guess you could call it. There is no frame rate loss or jerkiness. It seems to concide with how many different unit types that I create with triggers. For example, during some custom maps, when the first type of a structure is built, the game will freeze, or jerk--for just an instant. From then on, more structures of the same type are built, but it doesn't do it. Why is this? Is some caching going on for the first structure built of a certain kind? This is the reason I ask: In my tests, it appears that the more structures I "cache," the more "order lag" there is. Is this insane? Are there some other general causes of "order lag" that could be my problem? |
| 01-27-2006, 04:06 AM | #2 |
The reason the game lags for a fraction of a second when you create the first unit of a certain type (or item, destructable, doodad, or add an ability for the frist time, or a buff appears for the first time) is because the game doesn't bother loading art (models or images) until they're actually used. Are you absolutely sure that the problem you're seeing is at all related to this? It seems much more likely that it's related to some kind of leak in the map's code somewhere. |
| 01-27-2006, 05:19 AM | #3 |
Guest | Thanks for the input Extrarius. But, let's say hypothetically that my code doesn't leak; are there any other general things that could cause units to respond to orders slowly? |
| 01-27-2006, 06:16 AM | #4 |
while developing my map I had such problem,then I remade the map from 0 , but after some time I figured it. It was some knockback trigger which was in the most inefficent one can be done.leaks,picking units in entire map just for pushing the attacked unit,not with any effect just some instant move by 90. So find some trigger which causes this,it is the most likely.try to disable those who seem inefficent and run the map.If the weird trigger is off the map will run ok. or you can post the map too... |
| 01-27-2006, 06:18 AM | #5 |
this dosnt have anything to do with the current topic but i didnt find anywhere with a topic on this... whenever i try to run warcraft an error comes up saying the ordinal 294 could no be located in the dynamic link library Storm.dll |
| 01-27-2006, 06:42 AM | #6 |
Oh my god! Threadjackers! *BLAM BLAM* |
| 01-27-2006, 07:20 AM | #7 | |
Quote:
1st- reinstall. 2nd - create your own thread. |
