Raised This Month: $ Target: $400
 0% 

Creating and Deleting Variables at run time?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pRED*
Join Date: Dec 2006
Old 12-21-2006 , 02:34   Re: Creating and Deleting Variables at run time?
Reply With Quote #8

Yes I understand that.

Local Variables = More cpu time when the function is run due to allocating memory, 0'ing it and then releasing it after the function is completed.

Global Variables = More memory permanently taken up when it isn't needed.

I was weighing up the two options and thought that locals would be preferable since the plugin would probably be called once an hour or most likely less.
But don't worry since it isn't possible since query_client_cvar always returns the cvar value to a separate function.

Thanks for the help though.
pRED* is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode