Reducing the amount of items in _Items DB! + Weapon Switch lag!

Results 1 to 13 of 13
  1. #1
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    ! Reducing the amount of items in _Items DB! + Weapon Switch lag!

    Summary:
    Alright, so this is one of the methods to reduce the weapon switch lag, basically it will be easier to import data from the _Items DB. At the same time, this is bad for PvE servers because all the logs will be removed, pretty much if you drop an item on the group, it will be REMOVED 100% FROM THE GAME! unless someone picks it up then it will generate a new ID64.

    Oh well this will make your GameServer cleaner and less laggy!

    Objective
    We going to remove the items from the game on drop! We also going to reduce the weapon switch lag for servers with 800+ people online!

    Results

    * Less lag and better performance!

    Difficulty
    Easy

    -----------------------------------------------------------
    - Please Execute the Following For the changes -
    -----------------------------------------------------------

    Before you try this!

    Please reply below with:
    1) Your _Items number before this!
    2) Your _Items number after this!

    You can use this query:
    SELECT Count(*) FROM _Items

    PHP Code:
    USE [SRO_VT_SHARD]
    GO
    /****** Object:  StoredProcedure [dbo].[_STRG_FREE_ITEM_NoTX]    Script Date: 12/03/2011 04:26:33 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO

    ALTER procedure 
    [dbo].[_STRG_FREE_ITEM_NoTX]
            @
    ItemToFree    bigint
            
    as

            if (
    not exists(select ItemID from _ItemPool with (nolockwhere ItemID = @ItemToFree))
                return -
    1
            DELETE FROM _ItemPool where ItemID 
    = @ItemToFree
            DELETE FROM _Items WHERE ID64 
    = @ItemToFree
            
    return 
    It's actually that easy!


  2. #2
    Account Upgraded | Title Enabled! TryToMakeServer is offline
    MemberRank
    Dec 2008 Join Date
    257Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    Mhm, I will try this tomorrow, thx.

  3. #3
    Apprentice Jamesro is offline
    MemberRank
    Oct 2011 Join Date
    18Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    Thank you very much for your tutorials :) I'm learning more and more from you <3

  4. #4
    Developer sladlejrhfpq is offline
    MemberRank
    Oct 2011 Join Date
    671Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    Thank you very much!

  5. #5
    Account Upgraded | Title Enabled! TryToMakeServer is offline
    MemberRank
    Dec 2008 Join Date
    257Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    Current Count: 2.173.024
    After this script: 2.173.693
    Last edited by TryToMakeServer; 05-12-11 at 01:01 AM.

  6. #6
    Account Upgraded | Title Enabled! LastThief is offline
    MemberRank
    Aug 2010 Join Date
    204Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    Quote Originally Posted by trytomakeserver View Post
    current count: 2.173.024
    after this script: 2.173.693
    roflmao

  7. #7
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    Quote Originally Posted by LastThief View Post
    roflmao
    my fixes are kinda for big servers.

    2m items is nothing xD thats how much gets generated a day on my servers xD

  8. #8
    Valued Member Wismo is offline
    MemberRank
    Oct 2011 Join Date
    103Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    Lag ist still there. Hmm.. Do you know other possible fixes for the wep switch lag?
    I have 1991 players online. The lag beginns at ~1500 players.

    But Thank you Jangan!

    Before:
    122.555.658

    After:
    120.123.743

  9. #9
    Account Upgraded | Title Enabled! TryToMakeServer is offline
    MemberRank
    Dec 2008 Join Date
    257Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    122MILLION WTF!?
    Im reading something wrong or its real???


    @Wismo, which sql version are you using?

  10. #10
    Valued Member Wismo is offline
    MemberRank
    Oct 2011 Join Date
    103Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    Is that not normal? :D

    I use SQL Server 2008 R2 Enterprise Edition. Thank you

  11. #11
    Account Upgraded | Title Enabled! TryToMakeServer is offline
    MemberRank
    Dec 2008 Join Date
    257Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    122mil is like, a pvp server :o

    Well hmm, sql 2000 server is better for your server.

    less lag.

  12. #12
    Apprentice FpsGuru is offline
    MemberRank
    Jan 2012 Join Date
    5Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    Last time then I used your permormance guide with logs it was not working. Does this one works good?

  13. #13
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    Re: [Guide][Performance] Reducing the amount of items in _Items DB! + Weapon Switch l

    Quote Originally Posted by FpsGuru View Post
    Last time then I used your permormance guide with logs it was not working. Does this one works good?

    there is a limit to how much my guides can improve your server. My guides are not built to make servers 100% fixed and amazing, im just trying to improve stability.

    Also, if you set up your server properly and everything, you wont have too many problems ^.^



Advertisement