The Game Modding Community - Since 2001

plugin optimization

A Tutorial for Counter-Strike 1.6

coding a plugin may be easy. but optimizing it so that it consumes less RAM, more speed, less disk usage may be hard.
this hints may help coders to optimize your codes:
1- you should know which modules are better in executing some functions.
2- is recomanded that instead of including a header file just copy the needed parts to your code if it wasn't a module header.
3- in most times using #define is better than constants because it needs less resources exept the disk space.
4- replace the constant equations directly with result to speed up execution time and decrease required disk space.
5- you should have an idea on translating algorithms to assembly so that you know how to optimize it. for example, using for loop with constant repeat times is better in disk usage. but it needs more processes and ram.
6- optimizing code sometimes make bad effect on readabilty. so make sure you use the comments to describe it.

Posts

None found

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

Author
man_s_our Infection Flag
Affiliation
Infection
man_s_our Joined 12mo ago
Offline
Infection Flag Affiliation: Infection
852 points Ranked 5928th

Submitter

man_s_our avatar
man_s_our Joined 12mo ago
Offline
Infection Flag Affiliation: Infection
852 points Ranked 5928th

man_s_our Infection Flag
Affiliation
Infection

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
  • Paypal Donate
Sign up to access this!

Category

Details

Difficulty Level
Beginner Difficulty

Attributes

coding
optimize

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 193 Views
  • 0 Posts
  • 13d Submitted
  • 13d Modified

Scores

  • Not yet rated
Sign up to access this!

SEX! Ok, we got your attention. Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Sound fun? Sign up now!

Already a Bananite? Login

More from Submitter

bcp.crwdcntrl.net tracking pixel