Jump to content

Performance problem

Fixed 2.8.4 2.8.5

szymon8484
szymon8484

Posted

Hi... i made update to 2.8.4. After 6 hours of server working players gave me info that server has a lot o f lags.
To monitor server performance i use mod "Performance monitor"... and in logs i have info:

  "Plugins Report": [
    "StackModifier (2.8.4) (4.746 GB), Total Hook Time = 155.816471",
    "TruePVE (2.2.8) (69.375 MB), Total Hook Time = 19.075245",
    "RaidableBases (3.0.2) (138.301 MB), Total Hook Time = 17.331053",
etc.

i deleted stack modifier 2.8.4 and installed old version 2.8.2 and there is no problems with performance.
letterpress in code?


Please help.

Khan

Posted

Stack Modifier itself does not cause lag.

Performance Monitor is not an accurate tool for tracking plugin performance, as it is a plugin itself and actually contributes to the lag you’re experiencing by running it.

The data it provides is neither correct nor reliable—it simply adds up the total hook time for all Oxide hooks within a plugin without distinguishing which specific hooks contribute to that total.
 

Stack Modifier uses 13 different Oxide hooks, each with its own total hook time, which Performance Monitor fails to display accurately.
 

For example:

The CanStack hook may only contribute 130MB to total hook time.

Meanwhile, Init and OnServerInitialized may each show 1GB totaling 2Gig simply because they load a lot of data when the plugin starts.

These numbers have no meaningful impact on real server performance.

Khan

Posted

Changed Status from Pending to Not a Bug

szymon8484

Posted

look... on 2.8.2 everything is ok.

    "RaidableBases (3.0.2) (140.156 MB), Total Hook Time = 5.830849",
    "TruePVE (2.2.8) (16.832 MB), Total Hook Time = 4.416536",
    "Shop (1.2.71) (46.453 MB), Total Hook Time = 3.826817",
    "StackModifier (2.8.2) (8.387 MB), Total Hook Time = 2.6713",

Khan

Posted

Industrial Conveyors and the Industrial Crafter use the CanStackItem hook, so if your server has a large number of them, they may contribute to performance usage.

This implementation was necessary to fix various bugs related to custom items within the industrial system.

Additionally, CanStackItem is called every time items are placed into containers to ensure proper stacking, which naturally adds to the total hook time.

 

Version 2.8.2 contained a leftover debug check that unintentionally ignored all Industrial Conveyor item movements and loot spawning in containers. This issue was fixed in version 2.8.4, and the affected versions have been removed from download.

I strongly recommend updating to the latest release to ensure proper functionality.

  • Like 1
szymon8484

Posted (edited)

  "Plugins Report": [
    "StackModifier (2.8.4) (680.824 MB), Total Hook Time = 18.126413",
    "RaidableBases (3.0.2) (159.332 MB), Total Hook Time = 10.221475",
    "TruePVE (2.2.8) (25.953 MB), Total Hook Time = 8.346086",
    "Shop (1.2.71) (47.676 MB), Total Hook Time = 3.861409",

ehhh... memory and hooks grows horrible up ... 12 minutes after update mod to 2.8.4 😕
Limiting Industrial Conveyors and the Industrial Crafter on server per player will be solution? 😕  or restarting mod every 10-15 minutes?
or limiting
server.conveyormovefrequency
server.maxitemstacksmovedpertickindustrial ?

Edited by szymon8484
Khan

Posted

Again, that is not current real-time usage—it’s a cumulative total over time. The Performance Monitor plugin is misleading you by not presenting the data accurately.

  • Like 1
Khan

Posted

After analyzing Carbon’s profiler, I identified that the performance issues were originating from the Industrial Crafter patch I implemented.

Due to its frequent execution—especially with players actively using workbenches—it had a significantly greater impact compared to Industrial Conveyors, leading to performance conflicts between the two.

I’ve since optimized the patch and resolved the performance hit it was causing.

Khan

Posted

Changed Status from Not a Bug to Fixed

Changed Fixed In to 2.8.5

1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.2k

Files Sold

Total number of files sold.

2.5m

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.