Is a global string var better then smaller ones?
#8

Quote:
Originally Posted by RoBo
Посмотреть сообщение
Would it really?

With a global var the memory is always allocated, so no matter what PAWN is executing that string will be taking up memory. If it were in a function, only when that function is executing would the memory be used. PAWN only allocates enough memory for the biggest function + global vars, so you could potentially use more memory with a single global var.
Yes.. lets conserve a menial amount of memory. 4gb of it gets used up so quick, right?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)