Code Optimization
#5

I dont understand you... I dont need help for enum, this variables are defined on the top of the script like, ex:
new PlayerCuffed[MAX_PLAYERS];
new PlayerCuffedTime[MAX_PLAYERS];

I start this topic because im not sure about trick 5, i read this for that trick in that thread:
Quote:

Speed Tests:
Using memset to set all elements of an array (3D) of 100 elements to zero:363,367,372
Setting elements of an array (3D) of 100 elements to zero using for loop:6662,6642,6687

Using memset is 18 times faster than looping through an array.
I read this part:
Quote:

Code 1:
Code:
x = abc;
y = abc;
z = abc;
Code 2:
Code:
x =
y =
z = abc;

, and i need anyone to tell me is this faster 18 times? (If i change what i have written in 1st post.)
Reply


Messages In This Thread
Code Optimization - by DusanInfinity - 03.10.2015, 12:24
Re: Code Optimization - by x3378 - 03.10.2015, 12:40
Re: Code Optimization - by DusanInfinity - 03.10.2015, 14:39
Re: Code Optimization - by Vince - 03.10.2015, 15:05
Re: Code Optimization - by DusanInfinity - 04.10.2015, 11:23
AW: Re: Code Optimization - by Nero_3D - 04.10.2015, 12:07

Forum Jump:


Users browsing this thread: 3 Guest(s)