Concurrent Chunk Management Engine for Forge -The Twilight Forest fix

Quick rating

Concurrent Chunk Management Engine for Forge -The Twilight Forest fix

No reviews yet

Fix the compatibility between c2mef and Twilight Forest, while fixing bugs and improving performance

QoL & Tweaks
Performance & Optimization
Mod Loaders
Forge
NeoForge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
c2meF-0.2.0+alpha.13-all.jar
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Describes

Fix the compatibility between c2mef and Twilight Forest, while fixing bugs and improving performance

Fixed

Thread Safety Fixes

  • Fixed race condition in ConcurrentFlagMatrix.setif()

    • Location: c2me_fixes_worldgen_threading_issues/.../ConcurrentFlagMatrix.java
    • Issue: Race condition between read and write locks in setif() method
    • Solution: Use write lock throughout the entire operation for atomicity
  • Prevented potential deadlocks in lock acquisition

    • Location: c2me_base/.../AsyncCombinedLock.java, SchedulingAsyncCombinedLock.java
    • Issue: Unordered lock acquisition could cause deadlocks
    • Solution: Sort lock names to ensure consistent acquisition order
  • Fixed infinite recursion in error handling

    • Location: AsyncCombinedLock.java, SchedulingAsyncCombinedLock.java
    • Issue: Recursive calls in error path could cause stack overflow
    • Solution: Throw IllegalStateException instead of recursing
  • Enhanced object pool safety

    • Location: c2me_base/.../SimpleObjectPool.java
    • Added: Null checks and object state cleanup before return to pool

Changed

Error Handling Improvements

  • Replaced printStackTrace() with proper logging

    • Location: SchedulingAsyncCombinedLock.java, NeighborLockingTask.java, NoTickSystem.java, MixinChunkStatus.java, C2MEMod.java
    • Changed: Use SLF4J Logger instead of stack trace printing / System.out.printf for better log management
  • Added ForkJoinPool compatibility

    • Location: c2me_fixes_chunkio_threading_issues/.../SynchronizedCodec.java
    • Added: ManagedBlocker support to prevent ForkJoinPool thread starvation

Performance

Chunk Generation Speed Optimizations

  • Aggressive spin-wait strategy for ultra-low latency

    • Location: c2me_base/.../CFUtil.java
    • Optimization: 10,000 pure spins + 1ns park to minimize thread context switching
    • Effect: Minimized task completion wait time
  • High-throughput I/O thread optimization

    • Location: c2me_rewrites_chunkio/.../C2MEStorageThread.java
    • Optimization: 10,000 spins + 100ns park, optimized read request processing
    • Effect: Maximized disk I/O throughput
  • Scheduler batch processing optimization

    • Location: c2me_base/.../SchedulingManager.java
    • Optimization: Removed unused timing code, immediate rescheduling in finally block, batch task scheduling
    • Effect: Keep scheduler running at full capacity
  • Priority queue fast path

    • Location: c2me_base/.../DynamicPriorityQueue.java
    • Added: isEmpty() method for O(1) fast checking
    • Effect: Reduced queue checking overhead
  • Optimized lock checking in NeighborLockingTask

    • Location: c2me_base/.../NeighborLockingTask.java
    • Optimization: Use indexed for loop instead of enhanced for loop, cache array length
    • Effect: Reduced allocation and improved loop performance
  • Optimized priority distance calculation

    • Location: c2me_base/.../SchedulingManager.java
    • Optimization: Use long-based Chebyshev distance calculation instead of creating ChunkPos objects
    • Effect: Reduced object allocation during priority updates

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~110,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works