fix: Replaces throttlers and packet callbacks with function pointers (#1063)
Replaces multi-cast delegates with function pointers to gain 25% in performance and lower allocations.
This commit is contained in:
parent
b779d7737f
commit
f24b98f8e2
31 changed files with 189 additions and 172 deletions
|
|
@ -972,9 +972,9 @@ namespace Server.Multis
|
|||
public bool IsHiddenToCustomizer(Item item) =>
|
||||
item == Signpost || item == SignHanger || item == Sign || IsFixture(item);
|
||||
|
||||
public static void Initialize()
|
||||
public static unsafe void Initialize()
|
||||
{
|
||||
IncomingExtendedCommandPackets.RegisterExtended(0x1E, true, QueryDesignDetails);
|
||||
IncomingExtendedCommandPackets.RegisterExtended(0x1E, true, &QueryDesignDetails);
|
||||
|
||||
IncomingPackets.RegisterEncoded(0x02, true, Designer_Backup);
|
||||
IncomingPackets.RegisterEncoded(0x03, true, Designer_Restore);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue