Interface IDhApiMultiThreadingConfig
- All Superinterfaces:
IBindable
,IDhApiConfigGroup
Distant Horizons' threading configuration.
- Since:
- API 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionDefines how many threads Distant Horizons uses.Defines how many long Distant Horizons threads will spend running vs sleeping.Methods inherited from interface com.seibel.distanthorizons.coreapi.interfaces.dependencyInjection.IBindable
finishDelayedSetup, getDelayedSetupComplete
-
Method Details
-
threadCount
IDhApiConfigValue<Integer> threadCount()Defines how many threads Distant Horizons uses.- Since:
- API 4.0.0
-
threadRuntimeRatio
IDhApiConfigValue<Double> threadRuntimeRatio()Defines how many long Distant Horizons threads will spend running vs sleeping. This is helpful when reducing the CPU load on low end CPUs. 1.0 = 100% uptime 0.5 = 50% uptime 0.1 = 10% uptime- Since:
- API 4.0.0
-