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

Rewrite the tick loop system #295

Merged
merged 18 commits into from
Feb 18, 2025
Merged

Rewrite the tick loop system #295

merged 18 commits into from
Feb 18, 2025

Conversation

uRyanxD
Copy link
Collaborator

@uRyanxD uRyanxD commented Feb 18, 2025

This pullrequest rewrites the tickloop system.

Previously, we used a patch that backported the modern tick loop, but several things were not working correctly/missing in the backport version (we can say that basically most of the things that use IAsyncHandler, ReetrantIAsyncHandler, TaskPerTick or the classes depended on it), like it would take a lot of time to port the modern tick loop correctly, understand how it works, etc.) I decided to backport the tickloop system from Minecraft 1.13 adapted with appropriate changes for Spigot and Paper (In essence, the system is basically the same as the modern tick loop, but with everything working).
-- Another thing I noticed was that the previous patch had changes in threads that had nothing to do with the modern tick loop itself but with changes from Mojang, this is an irrelevant curiosity but I decided to comment.

This system has been tested on at least 3 servers, no problems were found.

@uRyanxD uRyanxD marked this pull request as draft February 18, 2025 19:25
@uRyanxD uRyanxD marked this pull request as ready for review February 18, 2025 19:37
@uRyanxD uRyanxD merged commit aed9a77 into hpfxd:master Feb 18, 2025
1 check passed
@uRyanxD uRyanxD deleted the pr/new-tick-loop branch February 18, 2025 19:42
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

Successfully merging this pull request may close these issues.

1 participant