Package gaiasky.util
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
-
Field Summary
Fields inherited from class gaiasky.util.SettingsObject
parent
-
Constructor Summary
-
Method Summary
Methods inherited from class gaiasky.util.SettingsObject
isEnabled, setParent
-
Field Details
-
multithreading
public boolean multithreading -
numberThreads
public int numberThreads
-
-
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:
clone
in classSettingsObject
-
setParentRecursive
- Specified by:
setParentRecursive
in classSettingsObject
-
setupListeners
protected void setupListeners()- Specified by:
setupListeners
in classSettingsObject
-
dispose
public void dispose() -
apply
public void apply()
-