BadScript 2
Loading...
Searching...
No Matches
BadNativeOptimizationSettings.cs
Go to the documentation of this file.
2
7
11public class BadNativeOptimizationSettings : BadSettingsProvider<BadNativeOptimizationSettings>
12{
17 new BadEditableSetting<BadNativeOptimizationSettings, bool>("UseConstantFoldingOptimization");
18
23 new BadEditableSetting<BadNativeOptimizationSettings, bool>("UseConstantFunctionCaching");
24
29 new BadEditableSetting<BadNativeOptimizationSettings, bool>("UseConstantSubstitutionOptimization");
30
35 new BadEditableSetting<BadNativeOptimizationSettings, bool>("UseStaticExtensionCaching");
36
42
46 public BadNativeOptimizationSettings() : base("Runtime.NativeOptimizations") { }
47
48
53 public bool UseStringCaching
54 {
55 get => m_UseStringCaching.GetValue();
56 set => m_UseStringCaching.Set(value);
57 }
58
59
65 {
66 get => m_UseConstantFoldingOptimization.GetValue();
67 set => m_UseConstantFoldingOptimization.Set(value);
68 }
69
90
96 {
97 get => m_UseStaticExtensionCaching.GetValue();
98 set => m_UseStaticExtensionCaching.Set(value);
99 }
100
106 {
107 get => m_UseConstantFunctionCaching.GetValue();
108 set => m_UseConstantFunctionCaching.Set(value);
109 }
110}
bool UseConstantFunctionCaching
Allow the runtime to cache the returns of constant functions If enabled the runtime will cache the re...
readonly BadEditableSetting< BadNativeOptimizationSettings, bool > m_UseConstantFoldingOptimization
Editable Setting for the Setting UseConstantFoldingOptimization.
readonly BadEditableSetting< BadNativeOptimizationSettings, bool > m_UseStaticExtensionCaching
Editable Setting for the Setting UseStaticExtensionCaching.
readonly BadEditableSetting< BadNativeOptimizationSettings, bool > m_UseConstantFunctionCaching
Editable Setting for the Setting UseConstantFunctionCaching.
bool UseConstantFoldingOptimization
Allow the runtime to optimize constant expressions If enabled the runtime will try to optimize consta...
readonly BadEditableSetting< BadNativeOptimizationSettings, bool > m_UseConstantSubstitutionOptimization
Editable Setting for the Setting UseConstantSubstitutionOptimization.
bool UseStaticExtensionCaching
Allow the runtime to cache extensions for object types. If enabled, the runtime will cache the result...
BadNativeOptimizationSettings()
Creates a new instance of the BadNativeOptimizationSettings class.
bool UseConstantSubstitutionOptimization
Allow the runtime to optimize constant expressions to a higher degree than constant folding....
bool UseStringCaching
Allow the runtime to cache string objects. If enabled, the runtime will reuse string objects for the ...
readonly BadEditableSetting< BadNativeOptimizationSettings, bool > m_UseStringCaching
Editable Setting for the Setting UseStringCaching.
Implements an Editable Setting.
Helper class that can be used to automatically load a settings object from a file.
Contains Runtime Settings Objects.
Contains the Settings Implementation.