Code-x

Code-x Private Server
 
HomeHome  PortalPortal  SearchSearch  RegisterRegister  Log inLog in  

 

 Clearing some lag - Created by Delta from Deltascape

Go down 
AuthorMessage
purez
Member
Member


Number of posts : 33
Registration date : 2008-06-07

Clearing some lag - Created by Delta from Deltascape Empty
PostSubject: Clearing some lag - Created by Delta from Deltascape   Clearing some lag - Created by Delta from Deltascape Icon_minitimeTue Jul 01, 2008 1:22 pm

Of course in most servers, there are always useless junk in servers that update every half a second, causing lots of lag.

Difficulty: 1/10

Base: Depends

The first lag we are going to remove are by special attacks. 1 frame updating every half a second can cause lots of lag. What about hundreds of frames updating every half a second. Thats right. With the special attack bar, it has hundreds of frames in it, updating every half a second, which will really lag your server.

Open your client class, and in your process, search for
Code:
l33thax(12323);
l33thax(7574);
l33thax(7599);
l33thax(7549);
l33thax(8493);
l33thax(7499);
Delete that. Now the special attack bar won't check every half a second. Now search for initialize.
Under that, add
Code:
l33thax(12323);
l33thax(7574);
l33thax(7599);
l33thax(7549);
l33thax(8493);
l33thax(7499);
Now the special attack bar won't check every half a second, and only when you login.

Our next lag deleting is from two useless methods (being checked twice every half a second, because whoever made that method entered them twice in process).

Open client class and go to process.
You will see
Code:

      AddDroppedItems();
      AddObjectFire();

      AddDroppedItems();
      AddObjectFire();
Delete that. Those are useless methods that do nothing. Those methods are supposed to create fires, but the method doesn't even work, making it useless and laggy.

Now Pkitten's perfect pickup. It updates every second, when its not supposed to. Lets make it update only when we click on the item.
So search in client class, in process look for
Code:
scanPickup();

Remember, we will make it so it will only check when you click an item, so this will be the new code

Code:
if(apickupid > 0){
scanPickup();
}

Now next is NPC's talking over their heads. This causes lots of lags, since it checks every half a second, and there are about 20+ of these in each server. I would delete all of them, they are not really useful.

Now frames. Frames are text, for example in emotes, instead of 'Yes', it will say for example 'Wild Pk'
Of course, people use these frames wrong. Some people just paste them in process, of the method called 'update'. If you are doing this, DO NOT DO THIS! 1 frame can cause lots of lag when it checks every half a second. What will happen when 20+ frames check every half a second? Of course, your server will lag.
Now, copy the frames if you have them in process or update. Delete them, then paste them in the method 'initialize'. That will make it so only the frames appear once, instead of checking every half a second.

Thanks for reading!

Exact Copy and paste from deltascape forums. I just wanted this done so their would be less lag on the server.
Back to top Go down
 
Clearing some lag - Created by Delta from Deltascape
Back to top 
Page 1 of 1
 Similar topics
-
» Created an Account

Permissions in this forum:You cannot reply to topics in this forum
Code-x :: General Chat :: runescape private [TUT] section-
Jump to: