Using GAMA flags
What are flags​
GAMA and some of its components (software libraries) make it possible to change some of the software behaviors by setting up "flags". Those are mainly for advanced users and should not be much of a concern for most users.
Gama flags​
GAMA flags are flags that are defined directly by GAMA developers, they have to be set in the Gama.ini file as a new line item (or as a VM argument) like this -D<FLAGNAME>=true/false. For example :
-Denable_logging=false
Available flags​
The flags read by GAMA itself are declared in gama.dev.FLAGS. The value indicated below is the one used when the flag is not set.
enable_debug(defaulttrue): logs the debug messages (DEBUG.OUT(...),DEBUG.ERR(...)of the classes declaringDEBUG.ON()). Set it tofalseto suppress all debug logging; regular logging (DEBUG.LOG(...),DEBUG.TIMER(...)) keeps working. The property must be read first, so declare it first in the file.enable_logging(defaulttrue): enables the logging activities ofDEBUG.LOG(...)andDEBUG.TIMER(...). Set it tofalseto prevent all logging, including the debug one.enable_legacy_logging(defaulttrue): keeps the historical logging throughGamaLogger, the custom implementation of SLF4J.use_global_preference_store(defaulttrue): stores the preferences in the global store managed by the Java runtime, which is shared by all the workspaces and all the installed versions of GAMA of that user. Set it tofalseto keep them in the store of the installation instead (the way Eclipse does).read_only(defaultfalse): set it totrueto make the GAML editor read-only, which prevents any modification of the models.cast_container_contents(defaulttrue): casts the contents of a container to the type it declares (for instance the elements of alist<int>toint). Unlike the others, it can also be changed through the corresponding preference.exported_runner(defaultfalse): marks a runner exported as a playable model and disables the editing features. It is meant to be used together with the preferencespref_workspace_remember,pref_workspace_path,pref_startup_model,pref_default_modelandpref_default_experiment.
The same file can also carry preferences: a JVM system property such as -Dpref_parallel_simulations=false has the highest priority when a preference is read. The three sources of a preference, their order of precedence and the way an assignment made from GAML is restored when the experiment closes are described in Preferences; this page keeps only the flags which are not preferences.
Using Eclipse and SWT flags​
GAMA 2026-11 is built on the Eclipse Rich Client Platform: the installation ships the OSGi framework 3.24 (org.eclipse.osgi_3.24.100), the Equinox launcher 1.7 (org.eclipse.equinox.launcher_1.7.100) and SWT 3.133 (org.eclipse.swt.win32.win32.x86_64_3.133.0). The links below point at the 2026-03 online documentation of Eclipse; the release train these components were cut from is not stated by the installation itself.
More precisely, GAMA uses the Eclipse Runtime which provides the foundational support for plug-ins, extension points and extensions (among other facilities), it's the application structure and is built on top of the OSGi framework.
GAMA also uses the Standard Widget Toolkit (or SWT for short). SWT is designed to provide efficient, portable access to the user-interface facilities of the operating systems on which it is implemented.
Available flags​
Both components can be tweaked thanks to the eclipse's Rich Client Platform interface using some flags and parameters documented in the official Eclipse documentation.
Here are some links to more detailed explanations about both components and their respective flags:
Using JOGL flags​
JOGL together with GlueGen (both from the JogAmp project) are the two libraries used in GAMA for 3D Graphics, Multimedia and Processing.
Available flags​
Most of them are documented on the official documentation website.