Raised This Month: $ Target: $400
 0% 

[UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alerad
Junior Member
Join Date: Mar 2016
Plugin ID:
1847
Plugin Version:
3.4.5
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    193 
    Plugin Description:
    Provides advanced control over map selection for the server.
    Old 09-27-2016 , 17:47   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
    Reply With Quote #1

    Hey does anyone have a huge map list loaded?

    I've got mine set up pretty neatly, but whenever a vote is cast, my server lags for about 0.5-1s.

    Does anyone know a work-arround for this problem? (I think it's related to it having to parse 400 maps and poor optimization.)

    Thanks
    alerad is offline
    sneaK
    SourceMod Moderator
    Join Date: Feb 2015
    Location: USA
    Old 09-27-2016 , 18:21   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
    Reply With Quote #2

    Quote:
    Originally Posted by alerad View Post
    Hey does anyone have a huge map list loaded?

    I've got mine set up pretty neatly, but whenever a vote is cast, my server lags for about 0.5-1s.

    Does anyone know a work-arround for this problem? (I think it's related to it having to parse 400 maps and poor optimization.)
    Just adding onto this with some more information, as I have the same issue:

    Issue occurs when a mapvote pops, and when someone types !nominate

    On one server, I have 290 maps, with a umc_mapcycle.txt filesize of 16.989kb, and 1109 lines, setup like so:

    Spoiler


    and the lag is significant, affects all users. On another server I have 410 maps, setup similarly, and the lag is worse. Another server only houses 120 maps and there is little to no impact. All servers run the same plugins, same settings, etc - with the exception of sheer number of maps, and configs to support that.

    I've done everything from fully alphabetizing all maps, removing all commented lines in umc_mapcycle.txt, ensuring there are no missing/misspelled maps in umc_mapcycle.txt, etc. Hope this is helpful and we might be able to get an answer/fix, because this bug is able to be abused by ill-intent players.

    Last edited by sneaK; 09-27-2016 at 18:23.
    sneaK is offline
    Bittersweet
    Veteran Member
    Join Date: May 2012
    Old 09-27-2016 , 20:08   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
    Reply With Quote #3

    Quote:
    Originally Posted by alerad View Post
    Hey does anyone have a huge map list loaded?

    I've got mine set up pretty neatly, but whenever a vote is cast, my server lags for about 0.5-1s.

    Does anyone know a work-arround for this problem? (I think it's related to it having to parse 400 maps and poor optimization.)

    Thanks
    Quote:
    Originally Posted by blackhawk74 View Post
    Just adding onto this with some more information, as I have the same issue:

    Issue occurs when a mapvote pops, and when someone types !nominate

    On one server, I have 290 maps, with a umc_mapcycle.txt filesize of 16.989kb, and 1109 lines, setup like so:

    Spoiler


    and the lag is significant, affects all users. On another server I have 410 maps, setup similarly, and the lag is worse. Another server only houses 120 maps and there is little to no impact. All servers run the same plugins, same settings, etc - with the exception of sheer number of maps, and configs to support that.

    I've done everything from fully alphabetizing all maps, removing all commented lines in umc_mapcycle.txt, ensuring there are no missing/misspelled maps in umc_mapcycle.txt, etc. Hope this is helpful and we might be able to get an answer/fix, because this bug is able to be abused by ill-intent players.
    This definitely has come up before, so you might want to check a few posts back or search the thread. It seems like I had a similar issue once. There might be a sweet spot for the number of maps you can have in a UMC mapcycle file before you start getting lag during a vote. It sounds like some recoding may be in order - the maps should only be loaded once at plugin startup in my opinion. The ability to add maps on the fly is great, but that value doesn't outweigh how much this kind of lag sucks. I also think that it should be a configurable option of whether or not you even want UMC to validate that map files exist. I'm assuming it does all that, but it just might be the size of the text alone that is lagging. I'm 99.9% sure that UMC uses the keyvalues system for that.

    The only thing I can suggest is using more than one UMC mapcycle file (2 or more smaller ones) and specifying one of the smaller files depending on time of day or even randomizing them.
    __________________
    Thank you in advance for your help

    My plugins:
    [CS:S] BOT Swat | [ANY] CVAR Randomizer | [CS:S] SM CS:S Tag Beta | [CS:S] Bot2Player
    Awesome & Crucial plugins by other people:
    [CS:S/CS:GO] GunGame | [UMC3] Ultimate Mapchooser | [ANY] Server Crontab | [ANY] SM ForceCamera
    Bittersweet is offline
    alerad
    Junior Member
    Join Date: Mar 2016
    Old 09-28-2016 , 14:40   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
    Reply With Quote #4

    Quote:
    Originally Posted by Bittersweet View Post
    This definitely has come up before, so you might want to check a few posts back or search the thread. It seems like I had a similar issue once. There might be a sweet spot for the number of maps you can have in a UMC mapcycle file before you start getting lag during a vote. It sounds like some recoding may be in order - the maps should only be loaded once at plugin startup in my opinion. The ability to add maps on the fly is great, but that value doesn't outweigh how much this kind of lag sucks. I also think that it should be a configurable option of whether or not you even want UMC to validate that map files exist. I'm assuming it does all that, but it just might be the size of the text alone that is lagging. I'm 99.9% sure that UMC uses the keyvalues system for that.

    The only thing I can suggest is using more than one UMC mapcycle file (2 or more smaller ones) and specifying one of the smaller files depending on time of day or even randomizing them.
    So the only way to deal with this (And keep everything in just one mapcycle) is optimizing the code?
    alerad is offline
    Bittersweet
    Veteran Member
    Join Date: May 2012
    Old 09-28-2016 , 17:54   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
    Reply With Quote #5

    Quote:
    Originally Posted by alerad View Post
    So the only way to deal with this (And keep everything in just one mapcycle) is optimizing the code?
    I can't say for sure that optimizing the code would do it either. It may be that Valve's built in menu system is what is lagging, unable to handle the amount of options. Is this just a straight map vote with pages and pages of maps? If so, you could try having groups or tiers and see if that helps. Another thing you can try is changing sm_umc_votemanager_core_menu_esc to 1.
    __________________
    Thank you in advance for your help

    My plugins:
    [CS:S] BOT Swat | [ANY] CVAR Randomizer | [CS:S] SM CS:S Tag Beta | [CS:S] Bot2Player
    Awesome & Crucial plugins by other people:
    [CS:S/CS:GO] GunGame | [UMC3] Ultimate Mapchooser | [ANY] Server Crontab | [ANY] SM ForceCamera
    Bittersweet is offline
    alerad
    Junior Member
    Join Date: Mar 2016
    Old 09-29-2016 , 10:04   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
    Reply With Quote #6

    Quote:
    Originally Posted by Bittersweet View Post
    I can't say for sure that optimizing the code would do it either. It may be that Valve's built in menu system is what is lagging, unable to handle the amount of options. Is this just a straight map vote with pages and pages of maps? If so, you could try having groups or tiers and see if that helps. Another thing you can try is changing sm_umc_votemanager_core_menu_esc to 1.
    I'm pretty sure it's just the for i to 400 that kills it, i've seen servers with nominates bigger/same size than mine, and my server lags on endvote too (Endvote selects only 4 maps total).

    I think a way to deal with this will be recoding it to either load the KeyValue list at start and save it as a global variable, would still lag but at the start of the map when everyone is connecting. Probably there are a few more workarrounds that i'll think of if i do code this.
    alerad is offline
    Bittersweet
    Veteran Member
    Join Date: May 2012
    Old 09-30-2016 , 15:04   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
    Reply With Quote #7

    Quote:
    Originally Posted by alerad View Post
    I'm pretty sure it's just the for i to 400 that kills it, i've seen servers with nominates bigger/same size than mine, and my server lags on endvote too (Endvote selects only 4 maps total).

    I think a way to deal with this will be recoding it to either load the KeyValue list at start and save it as a global variable, would still lag but at the start of the map when everyone is connecting. Probably there are a few more workarrounds that i'll think of if i do code this.
    Powerlord was working on a new version (he is the one that provided 3.4.6 and 3.4.7) but the last time I looked he had that project marked as a low priority. If you are going to recode, I'd pull his latest version from his repository. The link is buried somewhere in this thread, just search by author to find it.
    __________________
    Thank you in advance for your help

    My plugins:
    [CS:S] BOT Swat | [ANY] CVAR Randomizer | [CS:S] SM CS:S Tag Beta | [CS:S] Bot2Player
    Awesome & Crucial plugins by other people:
    [CS:S/CS:GO] GunGame | [UMC3] Ultimate Mapchooser | [ANY] Server Crontab | [ANY] SM ForceCamera
    Bittersweet is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 23:23.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode