Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freezes when someone is joining the game #2168

Open
dartasen opened this issue Aug 21, 2024 · 1 comment
Open

Freezes when someone is joining the game #2168

dartasen opened this issue Aug 21, 2024 · 1 comment
Labels
Area: spawning Related to spawning and/or terrain Complexity: easy Suitable for contributors new to Nitrox

Comments

@dartasen
Copy link
Member

Describe the issue

When a player joins a server, other people already connected will experience a lag peak shortly before the message "{PLAYER} joined ..."

The issue should originate in this file : PlayerJoinedMultiplayerSessionProcessor

@dartasen dartasen added Complexity: easy Suitable for contributors new to Nitrox Area: spawning Related to spawning and/or terrain labels Aug 21, 2024
@EchoTheDeveloper
Copy link

Correct me if i'm wrong but wouldn't this simple be because of
yield return entities.SpawnEntityAsync(packet.PlayerWorldEntity, true, true);
From what i understand this is returning every entity, which could cause lag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: spawning Related to spawning and/or terrain Complexity: easy Suitable for contributors new to Nitrox
Projects
None yet
Development

No branches or pull requests

2 participants