Bigger array size - more RAM consumption?
#3

Thanks! But I don't understand other thing. Did array used RAM size frees after using it? Example:

pawn Код:
public OnPlayerConnect( playerid )
{
    new
        array[ 2000 ]
    ;
    // formating array, and doing something with it.
}
So connects 15 players. 15 * 2000 * 4 = 120000KB, so now the script uses 120000KB RAM? I'm sure it's not, so why listen this tutorial instead of using example 256? It's just a 1KB . Thanks for replies, I need arguments.
Reply


Messages In This Thread
Bigger array size - more RAM consumption? - by zgintasz - 16.07.2012, 07:59
Re: Bigger array size - more RAM consumption? - by JernejL - 16.07.2012, 08:21
Re: Bigger array size - more RAM consumption? - by zgintasz - 16.07.2012, 08:53
Re: Bigger array size - more RAM consumption? - by Vince - 16.07.2012, 09:55
Re: Bigger array size - more RAM consumption? - by zgintasz - 16.07.2012, 13:18
Re: Bigger array size - more RAM consumption? - by Vince - 16.07.2012, 13:23
Re: Bigger array size - more RAM consumption? - by zgintasz - 16.07.2012, 15:02

Forum Jump:


Users browsing this thread: 2 Guest(s)