Class Settings.PerformanceSettings
java.lang.Object
gaiasky.util.SettingsObject
gaiasky.util.Settings.PerformanceSettings
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, Cloneable
- Enclosing class:
Settings
Settings that relate to the performance of the application.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether to use multithreading or not.intNumber of threads in the background thread pool.Fields inherited from class SettingsObject
parent -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class SettingsObject
getRoot, isEnabled, setParent
-
Field Details
-
multithreading
public boolean multithreadingWhether to use multithreading or not. -
numberThreads
public int numberThreadsNumber of threads in the background thread pool. If negative, the number of CPU cores is used.
-
-
Constructor Details
-
PerformanceSettings
public PerformanceSettings()
-
-
Method Details
-
getNumberOfThreads
public int getNumberOfThreads()Returns the actual number of threads. It accounts for the number of threads being 0 or less, "let the program decide" option, in which case the number of logical processors is returned.- Returns:
- The number of threads.
-
clone
- Overrides:
clonein classSettingsObject
-
setParentRecursive
- Specified by:
setParentRecursivein classSettingsObject
-
setupListeners
protected void setupListeners()- Specified by:
setupListenersin classSettingsObject
-
dispose
public void dispose() -
apply
public void apply()
-