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

public static class Settings.PerformanceSettings extends SettingsObject
Settings that relate to the performance of the application.
  • Field Details Link icon

    • multithreading Link icon

      public boolean multithreading
      Whether to use multithreading or not.
    • numberThreads Link icon

      public int numberThreads
      Number of threads in the background thread pool. If negative, the number of CPU cores is used.
  • Constructor Details Link icon

    • PerformanceSettings Link icon

      public PerformanceSettings()
  • Method Details Link icon

    • getNumberOfThreads Link icon

      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 Link icon

      Overrides:
      clone in class SettingsObject
    • setParentRecursive Link icon

      protected void setParentRecursive(SettingsObject s)
      Specified by:
      setParentRecursive in class SettingsObject
    • setupListeners Link icon

      protected void setupListeners()
      Specified by:
      setupListeners in class SettingsObject
    • dispose Link icon

      public void dispose()
    • apply Link icon

      public void apply()