Thread: Reduce Lag

Results 1 to 5 of 5
  1. #1 Reduce Lag 
    Registered Member Icepkz's Avatar
    Join Date
    May 2007
    Posts
    219
    Thanks given
    0
    Thanks received
    0
    Rep Power
    24
    Purpose: Reduce the lag on your server

    Difficulty: 1

    Assumed Knowledge: using ctrl+f and copy and past

    Server Base: Any

    Classes Modified: server.java

    Procedure:
    1. Open you server.java file in the source folder.
    2. Press ctrl+f and search for
    playerHandler.process();
    you should see this:
    playerHandler.process(); // updates all player related stuff
    npcHandler.process();
    itemHandler.process();
    shopHandler.process();
    ServerGUI.process();
    antilag.process();
    itemspawnpoints.process();
    objectHandler.process();
    objectHandler.firemaking_process();
    3. Replace that with this:
    if(updateCounter % 2 == 0)
    {
    playerHandler.process(); // updates all player related stuff
    npcHandler.process();
    itemHandler.process();
    shopHandler.process();
    antilag.process();
    itemspawnpoints.process();
    objectHandler.process();
    objectHandler.firemaking_process();
    updateCounter++;
    }

    And also another way to improve lagg..............

    Procedure:
    1. Open your playerhandler.java
    2. Search for:
    public static final int maxPlayers = 100;
    3. Change the 100 to any number you want
    ( this changes the max number of players allowed on your server)
    Creds: 100% Java
    Feedback Please
    Last edited by Icepkz; 05-11-2007 at 10:41 AM. Reason: Adding something
     

  2. #2  
    Mr.Lothar
    Guest
    totally leeched ! + if you put credits that's mean u dont have permission to post it who ever made this
     

  3. #3  
    project-rs owner
    Join Date
    Sep 2006
    Age
    29
    Posts
    914
    Thanks given
    4
    Thanks received
    4
    Rep Power
    49
    lol that will lag....
    because the server need to wait till they can send processes to ppl
    so everything will goes at once to all ppl
    and it will give lags because the client need to wait for the reaction
     

  4. #4  
    Registered Member Icepkz's Avatar
    Join Date
    May 2007
    Posts
    219
    Thanks given
    0
    Thanks received
    0
    Rep Power
    24
    it won't lag, it will only make it slower for people to connect to server
    once they connected it will be less lagg
     

  5. #5  
    purepkownage
    Guest
    hmmm,
    this reduces lagg only a bit, i would say only way to improve lagg alot would be faster internet
    still this works
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. How do i reduce lag?
    By pspdude in forum Help
    Replies: 9
    Last Post: 06-06-2010, 10:48 AM
  2. Reduce lag by 32-67%
    By Bobz in forum Tutorials
    Replies: 15
    Last Post: 07-13-2008, 04:23 PM
  3. How to reduce lag.
    By Runite in forum Tutorials
    Replies: 34
    Last Post: 06-22-2008, 12:04 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •