OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: haroon1992 on 16 Aug 2010, 16:46:59

Title: Which one is better?
Post by: haroon1992 on 16 Aug 2010, 16:46:59
A long script with many calculations.

Or

Several small scripts thats doing the exact same thing as the long script (but in cooperation)

Regards,
Haroon1992
Title: Re: Which one is better?
Post by: i0n0s on 16 Aug 2010, 17:47:02
Since there are no real threads, it will be the same.

Moving into small scripts will create some overhead since you need to create a thread model in which you can check if every calculation is done.

The long script will be minimal faster, the smaller ones are nicer code, so do the smaller ones ;)