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.
Sign up to access this!

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 1y ago
Offline
Infection Flag Affiliation: Infection
862 points Ranked 6070th

Submitter

man_s_our avatar
man_s_our Joined 1y ago
Offline
Infection Flag Affiliation: Infection
862 points Ranked 6070th

man_s_our Infection Flag
Affiliation
Infection

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

Game

Sign up to access this!

Category

Details

Difficulty Level
Beginner

Attributes

coding
optimize

Share

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

Stats

  • 456 Views
  • 4moSubmitted
  • 4moModified

Scores

  • Not yet rated
Sign up to access this!

More from Submitter

More Compiling Tutorials

bcp.crwdcntrl.net tracking pixel