[HL2MP] Make info_null and infodecal server-side
Issue:
The info_null and infodecal entities are currently not server-side, which leads to unnecessary networked edicts.
info_nullserves as a placeholder or temporary entity, but it still gets briefly networked. This can lead to crashes due to hitting entity limits, especially on maps filled with temporary entities.infodecalis used for applying decals but doesn’t need to be sent to clients. On larger maps, having too manyinfodecalentities can lead to edict exhaustion and, thereby, can cause crashes.
Fix:
- Make
info_nullserver-side only to stop it from being networked. This will help reduce crashes related to entity limits by allowing it to exist for a tick before being removed without being networked. - Change
infodecalto be server-only to cut down on unnecessary edict usage. Since decals are usually static, they don’t need to be replicated on the client side. This will help avoid running out of edicts, especially on larger maps with numerous decals.
That is not an issue. That is stating a fact without explaining anything.
Partial duplicate of https://github.com/ValveSoftware/source-sdk-2013/pull/910?
How does this affect named decals? How does the client know where to apply the decals?
How does this affect named decals? How does the client know where to apply the decals?
It seems decals are networked using a different system from the edict system, so yes, it is safe to de-edict them.