Skip to content

Commit

Permalink
Makes sure all flags are logged when they are loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisDrogoul committed Oct 16, 2021
1 parent b225846 commit 4128c84
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions ummisco.gama.annotations/src/ummisco/gama/dev/utils/FLAGS.java
Expand Up @@ -47,6 +47,12 @@ private static boolean get(final String name, final boolean def) {
return Boolean.parseBoolean(v);
}

/**
* Used in DEBUG, set to true to enable logging activities (which will follow the declaration of DEBUG.ON() on the
* classes). Set to false to suppress all logging. True by default. KEEP IT THE FIRST PROPERTY
*/
public static final boolean ENABLE_LOGGING = get("enable_logging", true);

/**
* For debugging purposes, see #3164. True by default until bugs on Linux regarding the use of multiple threads in
* UI processes are solved.
Expand All @@ -66,12 +72,6 @@ private static boolean get(final String name, final boolean def) {
*/
public static final boolean USE_GLOBAL_PREFERENCE_STORE = get("use_global_preference_store", true);

/**
* Used in DEBUG, set to true to enable logging activities (which will follow the declaration of DEBUG.ON() on the
* classes). Set to false to suppress all logging. True by default
*/
public static final boolean ENABLE_LOGGING = get("enable_logging", true);

/**
* Used in msi.gama.application.Application to transmit the value of "quarter" (if true) to property
* org.eclipse.swt.internal.DPIUtil.SWT_AUTOSCALE, enabling more precise scaling methods for HiDPI screens.
Expand Down Expand Up @@ -101,15 +101,7 @@ private static boolean get(final String name, final boolean def) {
/**
* Used in JOGL displays, esp. ummisco.gama.opengl.view.SWTOpenGLDisplaySurface to create a NEWT window instead of a
* GLCanvas. Advantages are multiple (smaller memory footprint, immediate opening and resizing, etc.) but so are
* incompatibilities and issues.
*
* As of Sept. 2021:
*
* - mouse and key listeners do not work
*
* - fullscreen does not work
*
* - changing perspective does not work
* incompatibilities.
*/
public static final boolean USE_NATIVE_OPENGL_WINDOW = get("use_native_opengl_window", false);

Expand Down

0 comments on commit 4128c84

Please sign in to comment.