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

Fixed-list clients #176

Open
UkoeHB opened this issue Jan 15, 2024 · 0 comments
Open

Fixed-list clients #176

UkoeHB opened this issue Jan 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@UkoeHB
Copy link
Collaborator

UkoeHB commented Jan 15, 2024

Many games have a predefined client list. In that case you can assign client ids as indices into the client list, and access clients on the server in O(1) instead of O(n) or O(logn).

This is relevant for client visibility, because to set the visibility of an entity on a client you need to access that client in the client list. Setting visibility can be considered the hot path, since you may need to update visibility frequently for many entities.

Options:

  • Server plugin config to enable a fixed-list client optimization.
  • Feature-level compile flag to avoid branching + server plugin config to set the number of clients.

Note that this would require changes to how connection status is tracked.

@UkoeHB UkoeHB mentioned this issue Jan 15, 2024
4 tasks
@Shatur Shatur added the enhancement New feature or request label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants