/
k_all_fix and k_multi_threading, with features mainly controlled by JVM parameters.1.0.4.0 onward (requires JVM parameter -DKMT_Client=true).-DKAF-fluidlogistics.DisabledDynamicUp=true to disable updating old id, if not do so, may cause to preformance slow down.-DKAF-DisablePetrolpark=false.-DKMT-threadMax=[CPU thread count]; otherwise world generation may be frozen. If freezes still occurs after setting it, increase the value higher.1.0.4.0, clients cannot use multithreading; from 1.0.4.0 onward, clients can enable it via -DKMT_Client=true.1.0.3.3, ParaServerChunkProvider, TaskRun, and some chunk generation code depend more heavily on C2 compilation (the JVM will enter C2 automatically after running for a while).-DKMT-threadMax=[number]
-DKMT-callMax=[number]
-DKMT-ThreadpoolKeepAliveTime=[milliseconds]
-DKMT_D=[any characters]
-DKMT-OpenVanillaServerChunkCache=true
ServerChunkCache fix path (added in 1.0.5.3).-DKAllFix_D=[any characters]
-DKMT_Client=true
-DKAF-DisablePetrolpark=false
-DKAF-ClientboundKeepAlivePacket_Max=[milliseconds]
ClientboundKeepAlivePacket (default 15 seconds; vanilla must be <30 seconds or the player is kicked for timeout).-DKAF-ServerTimeout=[seconds]
forge.readTimeout only covers server packet-read timeout, not client/server network threads with players).-Dforge.readTimeout=[seconds]
-DKAF-RemoveMixin:[class name]
k_multi_threading mixins can also be disabled).-DKAF-NbtIoMixin_NotGZip=true
-DKMT-ChunkGeneratorMode2Start=[true,false]
/SetterWorldConfig world setM2 %%KMT-ChunkGeneratorMode2Start%%.-DKAF-ChunkBreedingControlSize=[number]
-DKAF-ChunkBreedingControlSizeEnable=[true,false]
-DKMT-SafeUnloadChunk=true
<1.0.4.2 when related freezes occur).-DIndependencePlayer=true
-DFixBiolithBugMode2=true
-DKAF-gtceu.MedicalConditionTrackerMixin=true
-DKAF-RemoveClientboundKeepAlivePacket=true
ClientboundKeepAlivePacket (ping can no longer be calculated).-DKAF-RemoveFlyingTest=true
-DKAF-moonrise_fast_palette=true
fast_palette feature from Moonrise.-DKAF-FixTFMGDestroy=true
-DKAF-Fix_fabric-object-builder-api.jar=true
fabric-object-builder-api and forge-47.3.27.-DKAF-FixAllPacket=true
-DKAF-ChunkAwareBlockCollisionSweeperFast=true
-DKMT-LoginMultiThreading=true
-DKMT-LoginMultiThreading.ConnectionLock=true
-DKMT-LoginMultiThreading.TaskSizeMax=[number]
ServerboundMovePlayerPacket early, leading to one error log.-DKAF-packetOptimize=true
-DKAF-packetOptimize.AttributesReOutputTime=[milliseconds]
-DKAF-packetOptimize.CompatibilityMode.ClientboundBlockEntityDataPacket=true
ClientboundBlockEntityDataPacket (impacts performance).-DKAF-packetOptimize.CompatibilityMode.ClientboundSectionBlocksUpdatePacket=true
ClientboundSectionBlocksUpdatePacket.-DKAF-UnsafeCinderscapesFix1=true
enableAshFall function in Cinderscapes.-DKAF-fix.asynchronous.ClientboundCustomQueryPacket=true
-DKAF-FixConfigAuto=true
1.0.3.18, it can run directly (installation feature is still kept).1.0.3.18, run the mod's installer first, or use:
java -jar k_multi_threading-xxx.jar -i [empty or install directory]k_multi_threading-base.jar and k_multi_threading-asm.jar.Zstd-jni 1.5.7-2); if download fails, place them manually in game_directory/lib.-DKAF-FixConfigAuto=true can automatically disable:
-DKAF-FixConfigAuto=true should not be used:
mixin.perf.cache_upgraded_structures in ModernFix (disable via mixin.perf.cache_upgraded_structures=false in config/modernfix-mixins.properties).Modifier is already applied on this attribute!, but will not crash./debug_GetterClassFile [class name]
timestamp_save.class./SetterWorldConfig [world, ClearErrorSize, RemoveRemoveErrorSize]
ClearErrorSize: clears the recorded count of “errors that caused server crash risk”.RemoveRemoveErrorSize: stops recording crash-risk counts and keeps intercepting.world [dimension registry id], available options:
setM2 [true,false]: switches to another dimension implementation mode; higher priority than setMultiThreading, but may freeze the game.setMultiThreading [number] (default 0): sets multithread parallel task count for this dimension; independent mode from setM2, and may also freeze the game.moonrise_fast_palette uses source code from Moonrise.
Optimization and multithreading written by n1luik