mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
# Description
I got baited by Ectoplasm, so I then spent 3 hours shaving off a
sizeable chunk of this game's performance cost, including by taking 3 of
the "Top 10 frametime consumers", and reducing their performance costs
by 99% each. Along with various examples of slimming down some of the
worst EQE's.
Oh, and I fixed EmitSoundOnMove being desynced with actual movement. As
part of making EmitSoundOnMove use 99% less CPU time, it was also
synchronized with the MoverController.
# Changelog
🆑
- fix: Fixed items such as tactical webbing, bell collars, and hardsuits
being desynced with character movement.
- tweak: Made various large performance improvements.
(cherry picked from commit 684e8175443167beb0e20e3323a05b5f493b3374)
21 lines
611 B
C#
21 lines
611 B
C#
using Content.Shared._Shitmed.Targeting;
|
|
|
|
namespace Content.Shared.Projectiles;
|
|
|
|
/// <summary>
|
|
/// Raised directed on an entity when it embeds in another entity.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public readonly record struct EmbedEvent(EntityUid? Shooter, EntityUid Embedded, TargetBodyPart? BodyPart);
|
|
|
|
/// <summary>
|
|
/// Raised on an entity when it stops embedding in another entity.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public readonly record struct RemoveEmbedEvent(EntityUid? Remover);
|
|
|
|
// WD EDIT START
|
|
[ByRefEvent]
|
|
public readonly record struct AttemptEmbedEvent(EntityUid? Shooter, EntityUid Embedded);
|
|
// WD EDIT END
|