Thread: Login Lag

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Login Lag 
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    So whenever anyone logs in to my server there's a brief 2-4 seconds of lag, don't know the cause. Where would I start looking to fix this issue?
    Reply With Quote  
     

  2. #2  
    An all-around good guy
    lloydy269's Avatar
    Join Date
    May 2011
    Age
    26
    Posts
    287
    Thanks given
    5
    Thanks received
    25
    Rep Power
    26
    is it vps hosted?
    Reply With Quote  
     

  3. #3  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    Quote Originally Posted by lloydy269 View Post
    is it vps hosted?
    No but that's not the problem, the current computer it is hosted on is sufficient enough, not to mention that it has been run on a vps worse than the current computer and still had the same issue.
    Reply With Quote  
     

  4. #4  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    Bump
    Reply With Quote  
     

  5. #5  


    RS Wiki's Avatar
    Join Date
    Mar 2011
    Age
    29
    Posts
    9,688
    Thanks given
    1,752
    Thanks received
    3,103
    Rep Power
    5000
    Cache is unpacking all the data. I'm sure if you cache pack everything this problem will go away.
    All the best,
    Wiki




    coming soon
    Reply With Quote  
     

  6. #6  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    My cache is packed, it's only 30mb
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Jan 2013
    Posts
    553
    Thanks given
    38
    Thanks received
    154
    Rep Power
    127
    Check the login() method in client. (server-sided)
    Reply With Quote  
     

  8. #8  
    RageXile Owner ;)
    Aim High's Avatar
    Join Date
    Feb 2012
    Posts
    366
    Thanks given
    162
    Thanks received
    28
    Rep Power
    28
    Is it like... Client freezing or server takes like 2-4 seconds to load everything (TeamTorva)
    Reply With Quote  
     

  9. #9  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    Quote Originally Posted by Aim High View Post
    Is it like... Client freezing or server takes like 2-4 seconds to load everything (TeamTorva)
    It lags the whole server when 1 person logs in for a few seconds, then it' fine after that.
    Reply With Quote  
     

  10. #10  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    Quote Originally Posted by iLiftPlenty View Post
    Check the login() method in client. (server-sided)
    This? I don't have an actual login() method

    Code:
    	public void initialize() {
    		outStream.createFrame(249);
    		outStream.writeByteA(1);
    		outStream.writeWordBigEndianA(playerId);
    		for (int j = 0; j < PlayerHandler.players.length; j++) {
    			if (j == playerId)
    				continue;
    			if (PlayerHandler.players[j] != null)
    				if (PlayerHandler.players[j].playerName.equalsIgnoreCase(playerName))
    					disconnected = true;
    		}
    		for (int i = 0; i < playerLevel.length; i++) {
    			getPA().setSkillLevel(i, playerLevel[i], playerXP[i]);
    			getPA().refreshSkill(i);
    		}
    
    		for (int equip = 0; equip < playerEquipment.length; equip++)
    			getItems().setEquipment(playerEquipment[equip], playerEquipmentN[equip], equip);
    
    		getCombat().resetPrayers();
    		getPA().setSidebarInterfaces();
    
    		playerName = Misc.formatPlayerName(playerName);
    		combatLevel = calcCombat();
    		isFullHelm = Item.isFullHelm(playerEquipment[Config.HAT]);
    		isFullMask = Item.isFullMask(playerEquipment[Config.HAT]);
    		isFullBody = Item.isFullBody(playerEquipment[Config.CHEST]);
    		getPA().sendFrame126("Combat level: " + combatLevel, 3983);
    		getPA().sendFrame126("Total Lvl: " + getPA().getTotalLevel(), 3984);
    		getPA().sendFrame126(runEnergy + "%", 149);
    		loadSettings();
    		getPA().sendFrame107();
    		getPA().setChatOptions(0, 0, 0);
    		getPA().showOption(4, 4, "Follow");
    		getPA().showOption(5, 3, "Trade With");
    		Server.clanChat.clearClanChat(this);
    		Server.clanChat.updateClanText(this);
    		getPA().resetAutocast();
    		getItems().resetItems(3214);
    		getItems().resetBonus();
    		getItems().getBonus();
    		getItems().writeBonus();
    		getItems().addSpecialBar(playerEquipment[Config.WEAPON]);
    		getCombat().getPlayerAnimIndex();
    		getCombat().checkRangeWeapons();
    		getPA().getSkull(skullTimer);
    		getPA().restoreEvent();
    		getPA().restoreSpecial();
    		getPA().logIntoPM();
    		runOption = true;
    		getPA().setConfig(173, 1);
    		RandomEventHandler.startRandomEvent(this);
    		if (poisonDamage > 0)
    			getPA().appendPoison(poisonDamage);
    		if (inCwGame())
    			CastleWars.dropFlag(this);
    		saveCharacter = true;
    		handler.updatePlayer(this, outStream);
    		handler.updateNPC(this, outStream);
    		flushOutStream();
    		sendMessage("Welcome to " + Config.SERVER_NAME + "!"); //<col=ffffff><shad=000000>
    		sendMessage("Remember to vote daily to help the community grow!");
    		if (clanOwner != "")
    			for (int j = 0; j < Server.clanChat.clans.length; j++)
    				if (Server.clanChat.clans[j] != null)
    					if (clanOwner.equalsIgnoreCase(Server.clanChat.clans[j].owner)) {
    						clanId = j;
    						Server.clanChat.addToClan(this, j);
    						break;
    					}
    		if (pet > 0)
    			Server.npcHandler.spawnNpcForPlayer(this, pet, absX, absY, heightLevel, 1, false, false, true, true);
    		if (newbie == 0)
    			getPA().firstTimeTutorial();
    		if (newbie == 1)
    			for (int i = 0; i < Config.MAX_PLAYERS; i++)
    				if (PlayerHandler.players[i] != null)
    					sendMessage("Alert##" + Server.alertMessage + "##By: Pixel");
    		correctCoordinates();
    	}
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Teleport & Login lag fix
    By jordan641 in forum Buying
    Replies: 0
    Last Post: 11-24-2012, 11:51 PM
  2. Login Lag
    By djagility in forum Help
    Replies: 5
    Last Post: 09-04-2012, 05:44 AM
  3. Replies: 1
    Last Post: 02-18-2012, 12:41 AM
  4. Replies: 2
    Last Post: 10-29-2011, 03:54 PM
  5. How to reduce login lag (Simple)
    By Killer 99 in forum Tutorials
    Replies: 8
    Last Post: 04-08-2008, 12:18 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •