Raised This Month: $ Target: $400
 0% 

Question regarding set_task and code optimizations


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mugwump
Senior Member
Join Date: May 2004
Old 09-03-2004 , 22:59   Question regarding set_task and code optimizations
Reply With Quote #1

I am looking to optimize some aspects of a plugin I am working on which is now up to 14.5k lines of code, uses tons of variables and many tasks which run throughout a given round in CS. Some reports coming in from some beta server admins are that their servers are using more system resources and causing a higher load average overall, this I expected. I am considering ways to optimize the code and the first thing that comes to mind involves the tasks I have running.

How are tasks handled within amxx, are they spawned off as seperate threads or are they executed within a single thread? Do tasks use a standard pool of memory or do they have their own copies for variables and such? Many tasks I have running are for a single player and I am wondering if it is worth the time coming up with new approaches that have 1 task running to handle all of the players for specific things.

Any insight the amxx devs or other knowledgable people can shed on how tasks are handled will be appreciated!

-Mug
Mugwump 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 17:23.


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