OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Cap on 24 Mar 2003, 07:44:05
-
I have made a map CTF map that has in the regions of 20+ triggers and approx 5 scripts will this make the game lag over the internet or will it only lag if someone doesn't have a powerful processor or summit. Or does it not matter.
-
depends on the connection the players are using and the pipe the server has.
depends also on how much units you have on your map.
depends on how your triggers and scripts work.. for example if you have 5 triggers with
#loop
~0.00001
goto "loop"
it will most certainly cause some lag.
but anyways, 20 triggers and 5 scripts doesn't sound too bad.
-
Ahh sweet, thanks Artak, 20 trigers sounds alot to me. Shows how much i know. Thanks
-
Scripts are not really a big lag creator, unless you have fast loops as Artak says. Triggers check themselves about every 0.5s so there is rarely much point in having a loop much faster than this. However, if you use
@ condition
a lot in your scripts that could create lag.
Waypoints are more of a problem than you might think. Triggers can be a problem, but you need a more than 20. Aircraft are the real killer when it comes to lag, followed by vehicles. Vehicle type can be important - if you have 7 different types of tank in your mission it will run slower than if you only have 2.
-
Ahh nice 1. i take it that also if you have 20 different types of guns in your mission it will lag more than if you have 2. Cool thanks guys. ;D