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

Add single-player optimizations #405

Open
patowen opened this issue Jun 22, 2024 · 0 comments
Open

Add single-player optimizations #405

patowen opened this issue Jun 22, 2024 · 0 comments

Comments

@patowen
Copy link
Collaborator

patowen commented Jun 22, 2024

When playing Hypermine in single-player, there are a few things that it does that do not make sense from an outsider's perspective:

  • In Windows, the first time you play it, a Windows Firewall message pops up. This could be prevented by simulating network features by doing everything in memory instead of sending TCP/UDP packets through localhost.
  • Both the server and client generate chunks independently, which, in single player, means that many chunks are generated twice unnecessarily.
  • The server and client's steps are timed independently, meaning that one can lag without the other, causing difficult-to-justify jerky movement.

Ideally, it should be possible to resolve the above issues without significantly increasing maintenance burden.

I don't think it makes sense to prioritize this issue until enough gameplay features are fleshed out that the codebase has stabilized somewhat, and render-distance related optimizations have been improved. This is especially true because doing this early risks single-player and multi-player code diverging, making testing netcode difficult (and easy to forget).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant