Skip to content

onPlayerJoining & onPlayerDropped (spam) #4012

Description

@itsAdminPlus

What happened?

Hello. I am AdminPlus one of the developers for lifestylerp & we currently are having a major mass disconnects in timeouts. We average 600 players & randomly the server will just like "freeze" & a server/sync hitch tends to happen & network thread starts spamming & the entire server starts dropping in chunks. I noticed on different threads & posts within CFX discord that other servers were having the same issue. I am not sure if this has something to do with it but onPlayerJoining & onPlayerDropped tends to spam an event for each player - so once they leave your scope it sends an triggerclientevent for onPlayerDropped & when they enter your scope it sends onPlayerJoining. During large crowds this can be very spammy & about hitting after 500+ players is where the hitch & drops happen (not all the time), & I am not sure if this has something to do with it.

--

During gameplay we do not get any hitch warnings whatsoever as we run constant profilers for optimization purposes aside.

Peds = We use stasiek_selldrugs heavily modified so each ped after each transaction is deleted & unnetworked, aside from automatic ped wipe.
Objects = we don't really run much resources regarding object spawn.
Vehicles = we have automatic vehicle wipes every hour or so.

Expected result

Not time out possibly

Reproduction steps

  1. Removed all escrowed resources & various others to almost a sandbox / normal server base.
  2. Searched for "onPlayerDropped" & "onPlayerJoining" & playerEnteredScope & playerLeftScope
  3. Ran event loggers, statebag loggers, changed some events with large bytes from normal to latent.
  4. Removed various resources we have found that is spamming callbacks/events to reduce load within the server.
  5. Switched hosts 2-3 times.
  6. Switched to different artifacts including latent-fix artifact.
Image Image Image Image Image

Importancy

Unknown

Area(s)

OneSync

Specific version(s)

FiveM 3095 | Artifact 25770 | txAdmin: 8.0.1

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriageNeeds a preliminary assessment to determine the urgency and required action

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions