Hello,
So, would it be better for lag reduction if i just setpos and set dammage the dead guys back to life, or continue with the deletevehicle createunit routine?
You can not setdammage a guy back to life. You have to stay with delete and create.
Another lag question--If i set the view distance to 900 in init,and set the fog to blur out just before the 900-- do the units outside of the view distance pull on the computer resources very much?- enough that I should only create unit them right before they are mission important?-or can I let them be ready to go until needed?
The viewdistance influences two things: One is the fog. the second is the checking distance for the AI.
To really reduce lag, do the following things:
- Select Island carefully. Big islands with a lot of objects lag a lot more than small ones.
- Select viewdistance carefully. A lot of lack can be prevented with less viewdistance.
- Place/ Create Units and Objects carefully. Do you really need so many units.
- Use Sound wisely. For athmosphere some well placed battlesounds and ambient sound are more effective and less laggy than a lot of units.
- If you use ECP turn of the effects you do not use. (can be done in the init file of your mission).