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

Optimize Thread Wait Logic in BlockableEventLoop #69

Merged
merged 5 commits into from
Jun 15, 2024

Commits on Jun 14, 2024

  1. Reduce worldgen allocations by reusing supplier objects

    This change optimizes the way SurfaceRules update their biome supplier,avoiding unnecessary object creations and thus reducing memory allocations
    during world generation. The update method now reuses the existingPositionalBiomeGetter object if it's already present, otherwise it
    initializes a new one.
    
    Additionally, the tryApply method in SurfaceRules now avoids iterator
    allocation by directly accessing the rules list, which further contributes
    to reducing garbage collection pressure during world generation.
    HaHaWTH committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    fa040ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85b964d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    43ae2f8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0c6bab3 View commit details
    Browse the repository at this point in the history
  5. Should fix MC-183518

    HaHaWTH committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    f966448 View commit details
    Browse the repository at this point in the history