Jump to content

Lag/Rubber Banding

Pending 0.5.0

GameDNA
GameDNA

Posted

Just tried your plugin for the first time with the default settings and we are getting a pretty significant FPS drop.  This is a new server w/o only 2 or 3 players for testing running on fairly beefy hardware (Xeon Gold, w/ more then 40 cores.).   What info do you need from me to see whats going on?





 

walkinrey

Posted

Hi, you can try to edit next settings:

  • "Brain timer tick" and "Controls timer tick" - increasing from 0.01 to 0.1 and more will help, but may affect how bot will behave
  • "Enable periodic bot reinitialization?" - can help in long-term by respawning bots after a while

high number of CPU cores won't have much of an impact on performance because the game is based on the Unity engine, which doesn't use all cores efficiently and mostly use single core
what's your usual fps without rnpc?

GameDNA

Posted

fps
39 FPS
fps
41 FPS
fps
39 FPS
fps
36 FPS
fps
44 FPS
[Skill Tree] Saving player data for 0 players.
[Skill Tree] Finished saving player data.
Saved 75,388 ents, cache(0.25), write(0.06), disk(0.01).
Saving complete
plugins
c.plugins
#  package               author            version  hook time  hook fires  hook memory  hook lag  hook exceptions  compile time      uptime   
1  Carbon Community (1)                                                                                                                       
   Core                  Carbon Community  v1.0.0              2,053       158.8mb                                                   29h54m36s
2  Scripts (7)                                                                                                                                
   ArmoredTrain          Adem              v1.9.8   1275ms     530,487     696.0kb                                 3063ms [296ms]    29h54m35s
   Bottom                MikeHawke         v1.0.1   43ms       3           7.3mb                                   119ms [5ms]       29h54m35s
   MonumentEvents        Ifte              v1.1.11  10483ms    1,378,382   726.9mb                                 806ms [1427ms]    29h54m35s
   NpcSpawn              KpucTaJl          v3.3.1   19794ms    10,555,606  127.7mb      1                          1996ms [396ms]    29h54m35s
   PermissionsManager    Steenamaroo       v2.0.9   13ms       1,685       1.7mb                                   504ms [107ms]     29h54m35s
   Skill Tree            imthenewguy       v1.7.8   7599ms     1,545,543   63.6mb                                  3946ms [48656ms]  29h54m35s
   BetterNpc             KpucTaJl          v2.2.0   1155ms     317,959     18.0mb                                  892ms [135ms]     8h21m55s 
3  Zip Scripts
*  unloaded plugins (1)
   RoamingNPCs.cs

When BetterNPC is loaded, or when BetterNPC is the only plugin loaded the fps drops to 5.    On an interesting note, the CPU load drops  by half, from 700-800% to between 400-500%.  Seems like some thread is blocking or stuck in a wait state.    We tried turning off stashes to see if that would help at all, and it changed nothing.     I will try the options you recommend and reload the server then report back.  

  

walkinrey

Posted

ohh you have huge uptime, it will eat performance after a while significantly and RAM as well
turn on periodic bot reinitialization in config, it will help for long uptime
however i recommend rebooting the server at least each 12 hours

GameDNA

Posted

This server is just a test server and does restart quite often.  But your advice is correct, and we have that set on our prod server with a restart time of every 8 hours.  In this case, our uptime was a lot because  it was sitting idle for a while before I pulled those numbers.   When i actually tested it was only a few hours old.   

One thing i noticed from the configs, the default for Brain timer tick was already at 0.1.   I enabled reinitialization. 

"Controller setup": {
        "Brain timer tick (0.01 - 1)": 0.1,
        "Controls timer tick (0.01 - 1)": 0.5,
        "Accuracy of fire (lower is better)": 3.0,
        "Find entities radius": 30.0,
        "Use only NavMesh navigation?": true,
        "Movement speed (1 - 4)": 4,
        "Movement speed in water (1 - 4)": 2,

Another question,  How many total NPC's on one server have you seen this script run without having adverse impact on lag/fps?

GameDNA

Posted

Also, another question.  Is there an RCON console command that i can run to verify the number of bots that have been spawned in?  

entity.find_entity or similar?

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.9k
Customers served
Files Sold
157k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.