How to reduce CPU ussage?
#3

Optimization includes...

Timer, using a lot of timers can cause lag
Variables, using a lot of variables takes place in memory, Ultra-H uses less memory that the minimum required for your gamemode, resulting lag.
Coding tips, optimization also include how you type the code, 'cause the code is being executed, if you have un-optimized then its going to slow down the process.

Example:
PHP код:
// UN-Optimized use of variables
new var1;
new 
var2;
new 
var3;
// Optimized use of variables
new var1var2var3;
// UN-Optimized use of variable (setting values)
var1 0;
var2 0;
var3 0;
// Optimized use of variables (setting values)
var1 var2 var3 0
Reply


Messages In This Thread
How to reduce CPU ussage? - by CrazyPerry - 24.07.2016, 05:40
Re: How to reduce CPU ussage? - by BiosMarcel - 24.07.2016, 08:24
Re: How to reduce CPU ussage? - by Logic_ - 24.07.2016, 09:13
Re: How to reduce CPU ussage? - by CrazyPerry - 24.07.2016, 10:11

Forum Jump:


Users browsing this thread: 1 Guest(s)