Skip to content

feat: Rewrite the main tick loop#58

Merged
HttpRafa merged 79 commits intomainfrom
feat/new-tickloop
Feb 22, 2025
Merged

feat: Rewrite the main tick loop#58
HttpRafa merged 79 commits intomainfrom
feat/new-tickloop

Conversation

@HttpRafa
Copy link
Copy Markdown
Owner

@HttpRafa HttpRafa commented Jan 29, 2025

The goal of this rewrite is to simplify the controller for easier maintenance and significantly reduce the number of locks required. Additionally, it aims to increase the tick speed since I plan to move tasks such as starting units and calculating how many need to be started into the main tick loop. If the tick speed is too low, the controller's response times may be delayed—1 TPS results in an average response time of 1000ms, while 20 TPS would reduce that to 50ms. This adjustment should improve long-term maintainability. The drivers are always invoked in a new thread using tokio::spawn to ensure they don’t block the main tick loop.

  • Auth
  • Nodes
  • Groups
  • Servers
  • WASM Processes
  • Screen system
  • Subscriptions
  • Users (Ingame)
  • Network (Admin)
  • Network (Server)
  • Network (Tasks)
  • Local Plugin
  • Fix JVM (Paper)

@HttpRafa HttpRafa added the 🫙 feature New feature or request label Jan 29, 2025
@HttpRafa HttpRafa added this to the v0.6.0-alpha milestone Jan 29, 2025
@HttpRafa HttpRafa self-assigned this Jan 29, 2025
@HttpRafa HttpRafa removed this from the v0.6.0-alpha milestone Jan 29, 2025
@HttpRafa HttpRafa mentioned this pull request Jan 31, 2025
@HttpRafa HttpRafa added the 🟥 hard Hard to fix/implement label Jan 31, 2025
@HttpRafa HttpRafa closed this Jan 31, 2025
@HttpRafa HttpRafa deleted the feat/new-tickloop branch January 31, 2025 13:08
@HttpRafa HttpRafa restored the feat/new-tickloop branch January 31, 2025 13:09
@HttpRafa HttpRafa reopened this Jan 31, 2025
@HttpRafa HttpRafa linked an issue Feb 13, 2025 that may be closed by this pull request
@HttpRafa HttpRafa marked this pull request as ready for review February 22, 2025 22:28
@HttpRafa HttpRafa merged commit d4c65ef into main Feb 22, 2025
@HttpRafa HttpRafa deleted the feat/new-tickloop branch February 22, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🫙 feature New feature or request 🟥 hard Hard to fix/implement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Code] Refactor the code and consider rewriting the main tick loop to utilize Tokio [gRPC] Remove duplicate gRPCs in the Admin and Unit Services

1 participant