Server lagging when learn bpFixed

when i use all features of this plugin, server is lagging for 1 seconds when someone learn a bp, please fix it, my config options are all of true

Are you running any other plugins that modify the behaviour of blueprints?
How many players are on your server when this lag occurs?
Which feature is causing the lag as having all options enabled does not narrow it down?

question1: yes, blueprintmanager

question2: over 100+ 

question3: reset blueprints when leave clan

Sorry for late response but just released an update which hopefully will improve the performance. If you are still having issues do let me know.

Exception while calling NextTick callback (InvalidOperationException: Collection was modified; enumeration operation may not execute.)
at System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) [0x0000b] in <fb001e01371b4adca20013e0ac763896>:0 rs 31kb/s in, 138kb/s out
at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in <fb001e01371b4adca20013e0ac763896>:0
at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in <fb001e01371b4adca20013e0ac763896>:0
at Oxide.Plugins.BlueprintShare.ShareWithPlayer (BasePlayer player, BasePlayer target) [0x000fa] in <f874a58851d04f2b805a89092f3db9df>:0
at Oxide.Plugins.BlueprintShare+<OnTeamAcceptInvite>c__AnonStorey0.<>m__0 () [0x0004e] in <f874a58851d04f2b805a89092f3db9df>:0
at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0

Merged post

Failed to call hook 'OnFriendAdded' on plugin 'BlueprintShare v1.3.1' (InvalidOperationException: Collection was modified; enumeration operation may not execute.)
at System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) [0x0000b] in <fb001e01371b4adca20013e0ac763896>:0
rs 32kb/s in, 178kb/s out
at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in <fb001e01371b4adca20013e0ac763896>:0
at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in <fb001e01371b4adca20013e0ac763896>:0
at Oxide.Plugins.BlueprintShare.ShareWithPlayer (BasePlayer player, BasePlayer target) [0x000fa] in <f874a58851d04f2b805a89092f3db9df>:0
at Oxide.Plugins.BlueprintShare.OnFriendAdded (System.String playerId, System.String friendId) [0x00039] in <f874a58851d04f2b805a89092f3db9df>:0
at Oxide.Plugins.BlueprintShare.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00390] in <f874a58851d04f2b805a89092f3db9df>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0
Failed to call hook 'OnFriendAdded' on plugin 'BlueprintShare v1.3.1' (InvalidOperationException: Collection was modified; enumeration operation may not execute.)
at System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) [0x0000b] in <fb001e01371b4adca20013e0ac763896>:0
rs 33kb/s in, 185kb/s out
at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in <fb001e01371b4adca20013e0ac763896>:0
at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in <fb001e01371b4adca20013e0ac763896>:0
at Oxide.Plugins.BlueprintShare.ShareWithPlayer (BasePlayer player, BasePlayer target) [0x000fa] in <f874a58851d04f2b805a89092f3db9df>:0
at Oxide.Plugins.BlueprintShare.OnFriendAdded (System.String playerId, System.String friendId) [0x00052] in <f874a58851d04f2b805a89092f3db9df>:0
at Oxide.Plugins.BlueprintShare.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00390] in <f874a58851d04f2b805a89092f3db9df>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0


Merged post

Sorry, good works ))

I have released an update that should have fixed the problem.

still lag spikes in my server when using this plugin after 1.3.0 version, when someone learning bp server is lagging for a sec, lose bps when leave clan option is true and i thinks this is reason, there are 170+ players

The plugin has been tested on a server running 100+ players with no issues. I will have a look and see if I can improve the performance further.

Locked automatically