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

refactor: chunk service & world generator #572

Open
smartcmd opened this issue Feb 15, 2025 · 0 comments
Open

refactor: chunk service & world generator #572

smartcmd opened this issue Feb 15, 2025 · 0 comments
Assignees
Labels

Comments

@smartcmd
Copy link
Member

Reason

Currently, the chunk service implementation used in Allay is fragile and cannot meet our requirement:

  • In a concurrent environment, the current implementation still has problems, although it runs normally most of the time. Several attempts show that we need to redesign the chunk loading process to solve the thread safety problem.
  • Half-generated chunk won't be saved. The world generator is not stateless: it will save half-generated chunk for population usage.

Idea

  • Make world generator stateless: chunk service should hold all loading and loaded chunks.
  • WIP
@IWareQ IWareQ changed the title refactor: refactor chunk service & world generator refactor: chunk service & world generator Feb 15, 2025
@smartcmd smartcmd self-assigned this Feb 24, 2025
@smartcmd smartcmd moved this to Ready in Allay Roadmap Feb 24, 2025
@smartcmd smartcmd added this to the 0.2.0 (API 0.5.0) Release milestone Feb 24, 2025
@smartcmd smartcmd moved this from Ready to Backlog in Allay Roadmap Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant