| 02-23-2004, 08:07 PM | #1 |
I use a simple if player says text -text and testvariable is false do actions, where actions are creating the unit and setting the testvariable to true. Simple trigger. When run, the trigger tends to have a small lag spike and then create the unit. Is the lag because of the unit? (it's imported, very large) |
| 02-23-2004, 08:12 PM | #2 |
I'd have to look at the map and unit to certain, but that is a likely answer. Try the same action with a different unit. If it lags with the unit, but not with the new one, then the lag is because of the imported unit. |
| 02-23-2004, 08:18 PM | #3 |
Yeah. It's the unit. Thanks. |
| 02-23-2004, 09:56 PM | #4 |
happens to me to with just Evil Illidan, no matter what host/connect. |
| 02-23-2004, 11:30 PM | #5 |
People This is graphical lag and happens to low-end computer people. It's when the model is first displayed in the map, then it stops the game while it loads the model from the HD into the Graphics Card, including the texture. This happens with all units, just not as much with some. Have you noticed how in maps like Enfo's and many Tower Defences where there comes this tiny lag spike at the start of a round, but only then (only for the first unit)...that's exactly this, while all the other units spawn quickly. So, the only thing you can do (and your best bet) is to have this unit of yours, preplaced somewhere on the map, away from sight at Map Init, and then when the map finished loading, kill it (plus removing it possibly). It will still be in your graphics cards memory (while the memory doesn't fill with other stuff and it clearing out this old model (depends on your GPU's size, don't worry about this if you have like 64 mb GPU, also depends on variety of models on your map)) Cubasis |
