Jump to content

Lag When Trying to Spawn Base

No Response 2.4.1

Been having some issues with this plugin the last couple of wipes upon trying a smaller map size. Nothing crazy, 3500 instead of 4500 and I am getting major lag when Raidable Bases tries to spawn bases when there's a few on the map and we're a bit into the wipe.

I use maintained events and have been slowly reducing the number I have active to minimise this, so at the moment I've 10 instead of 16 or so but as the spawns clutter up with player raid bases even this reduced number is causing issues. The plugin fails to spawn the specified number of Raidables and server FPS drops. I unload the plugin, the lag stops, I run around the usual places they spawn and delete player raid bases, switch the plugin on and everything's fine. 

So two things: do you have a rough rule of thumb of numbers of base for map size? And is there something I can set in the config to nuke nearby player structures when the Raidable despawns?

Share this comment


Link to comment

when it tries to spawn bases, or when it is spawning a base?

if the former then there's nothing that can be done about this until it's made into a coroutine. it's 100% reliant on your machine to be able to handle it

if the latter then CopyPaste should be configured to paste no more than 5 entities per batch

all other performance issues were fixed. 1. setting up the base once it's been spawned, and 2. when despawning the base. if you lag during these times then it's your machine. this is why it intentionally takes a very long time now to setup or despawn a base (to prevent performance issues)

number of bases on a map depends on several factors including your entity count, player count and machine

it really sounds like CopyPaste is configured wrong, your machine specs are not up to par, or you simply have too many plugins

    "Amount Of Entities To Spawn Per Batch": 1,
    "Amount Of Entities To Despawn Per Batch": 10,

this can cause issues if set too high

Share this comment


Link to comment
5 hours ago, nivex said:

when it tries to spawn bases, or when it is spawning a base?

if the former then there's nothing that can be done about this until it's made into a coroutine. it's 100% reliant on your machine to be able to handle it

I couldn't tell from the information in console, the "you've successfully pasted the structure" hadn't shown for a while. I phrased it as "trying to spawn" because there were less than the specified amount of bases on the map and it'd been much longer than the usual time it takes to spawn a new one.

Regarding specs, I'd agree but I didn't have this issue with larger maps with more bases and reduced my plugin count around the same time when I moved to the smaller maps (I was on a performance improving kick). CopyPaste is on default settings and the two fields you mention are set as described. I've been running Raidable Bases for a long while, so the machine has proven it can handle it.

The junk I was finding in the spawns was weird, player stuff (TCs and boxes) just floating in the air. I set these to false and I'm not getting that any more.

"Do Not Destroy Player Built Deployables": false,
"Do Not Destroy Player Built Structures": false,

Thanks for the info, I'm going back to larger maps next wipe. A few plugins have been behaving weird since I moved to 3.5k.

Share this comment


Link to comment

Acknowledged. If the card is 4000-5000 all is well, but if 3500 and little empty space, then the terrible lag begins. So I understand the bases are trying to sleep, but do not find a place for it, as a result, all can not even move from their seats.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

80.8k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • 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.