Jump to content

High hook times with Carbon

Closed 1.5.0 1.5.2

Hello,

Reaching out because recently switch to Carbon instead of oxide. The plugin works fine, the only thing I am noticing is that Skinner is taking up an unusually high Hook time with the following information from the c.plugininfo command.

 

Skinner v1.5.0 by Whispers88
  Path:                   C:\Users\Administrator\Desktop\2x Solo Duo\carbon\plugins\Skinner.cs
  Compile Time:           247ms
  Uptime:                 5h6m42s
  Total Hook Time:        30099ms
  Total Memory Used:      9.6 mb
  Internal Hook Override: False
  Has Conditionals:       False
  Mod Package:            Scripts (83)
  Processor:              Script Processor [.cs]

  Permissions:            skinner.default
                          skinner.craft
                          skinner.items
                          skinner.bypassauth
                          skinner.skincon
                          skinner.skininv
                          skinner.import
                          skinner.skinbase
                          skinner.skinall
                          skinner.default30cd

Hooks:
#  Id          Hook                 Time     Memory  Subscribed  Async/Overrides
1  1330569572  OnServerInitialized  64ms     7.4 mb  True        0/1
2  4051942512  CanStackItem         30031ms  2.2 mb  True        0/1
3  589422924   OnLootEntityEnd      2ms      0.0 b   True        0/1
4  4277473012  OnItemCraftFinished  1ms      0.0 b   True        0/1
5  3438704737  OnActiveItemChanged  1ms      0.0 b   False       0/1

Any idea what might cause this? It's causing some moderate FPS fluctuation. 

Share this comment


Link to comment

I have a new patch im about to release that works without the CanStackItem hook. To be fair carbon doesnt give you an accurate overview of plugin performance with hook times. Hooks that take a long time to process on each run are obviously a big problem. This hook runs one line of code each time its called. Its just called way more frequently than it should.

If you want to help test out the patch send me a dm on discord @Whispers88

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.6k

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.