Skip to content

Commit

Permalink
some changes with no effect
Browse files Browse the repository at this point in the history
  • Loading branch information
ImplementsLegend committed Sep 25, 2024
1 parent 918c56b commit 2132860
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,7 @@ import java.util.concurrent.ThreadPoolExecutor
import java.util.concurrent.TimeUnit
import java.util.concurrent.atomic.AtomicBoolean
import java.util.stream.Collector
/*
val GENERATOR_EXECUTOR = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()){
Thread(it).apply {
name="Vault-Generator-$name"
}
}.apply { (this as? ThreadPoolExecutor)?.apply { corePoolSize=1;setKeepAliveTime(10,TimeUnit.SECONDS) } }
val ROOM_GENERATOR_EXECUTOR = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()){
Thread(it).apply {
name="Vault-Room-Generator-$name"
}
}.apply { (this as? ThreadPoolExecutor)?.apply { corePoolSize=3;setKeepAliveTime(10,TimeUnit.SECONDS) } }
*/

val GENERATOR_EXECUTOR = overflowExecutor(Runtime.getRuntime().availableProcessors(), overflowThreads = 1, poolTaskCapacity = 135){
Thread(it).apply {
name="Vault-Generator-$name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import java.util.concurrent.atomic.AtomicReferenceArray

typealias TileProcessors = ArrayList<IndexedValue<TileProcessor>>

val AtomicReferenceArray<*>.indices get() = 0 until this.length()


class TileMapper() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/vaultfaster.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"MixinJigsawCorrectAddProcessors",
"MixinLeveledProcessor",
"MixinPartBlockProperties",
"MixinPartialBlock",
"MixinPartialBlockState",
"MixinPlacementSettings",
"MixinReferenceTileProcessor",
Expand All @@ -33,7 +34,6 @@
"NoBiomeDecorations",
"OctahedralGroupFix",
"PartialBlockIDAccessor",
"MixinPartialBlock",
"PredicateIdAccessor",
"ProcessorPredicateAccessor",
"ProtoChunkAccessor",
Expand Down

0 comments on commit 2132860

Please sign in to comment.