Box64 works well with its default settings, but its real strength lies in how precisely you can tune it. Nearly every aspect of its behaviour can be adjusted through environment variables, and those adjustments can be saved per program in a configuration file. This guide explains the Box64 settings that matter most, what each one changes and how to build a reliable tuning routine.
How Box64 settings work
Box64 reads its options from environment variables whose names begin with BOX64_. You can set them for a single run by placing them before the command:
BOX64_LOG=1 box64 ./program
Or for the whole terminal session:
export BOX64_LOG=1
box64 ./program
Box64 also reads rc files, which store settings permanently. Most users eventually move their working settings into one of those files, as explained later in this guide.
Diagnostic and general settings
BOX64_LOG
Controls how much Box64 prints. 0 shows almost nothing, 1 shows useful information such as which libraries are wrapped or emulated, and higher values produce detailed debugging output intended mainly for bug reports. When something fails, run once with BOX64_LOG=1 before changing anything else.
BOX64_NOBANNER
Set to 1 to hide the start-up banner. Helpful when Box64 runs inside scripts whose output you want to keep clean.
BOX64_LD_LIBRARY_PATH
Adds folders where Box64 should look for x86_64 libraries. If a program reports a missing library, place an x86_64 copy in a folder and point Box64 to it:
export BOX64_LD_LIBRARY_PATH=~/x64libs
BOX64_PATH
Adds folders where Box64 searches for x86_64 executables, which is useful when one program launches another by name.
BOX64_DYNAREC
Turns the dynamic recompiler on or off. 1 is the default. Setting 0 forces the interpreter, which is much slower but invaluable for diagnosis: if a crash disappears with the Dynarec disabled, the cause lies in translation, and the Dynarec options below are the place to look.
The Dynarec options
These are the settings that trade speed against compatibility. Change one at a time and keep notes.
BOX64_DYNAREC_BIGBLOCK
Determines how large a chunk of code Box64 translates as one block. Larger blocks allow more optimisation and better speed but can confuse programs that jump into the middle of code or modify it. 0 is the most conservative; higher values are more aggressive. If a game crashes on start-up, try 0. If it is stable but slow, try a higher value.
BOX64_DYNAREC_STRONGMEM
Emulates x86's stricter memory ordering between threads. ARM processors allow more reordering of memory operations, which can break multi-threaded programs written for x86. Values from 1 upward add more barriers. It costs some speed but often fixes random freezes and crashes in game engines that use many threads.
BOX64_DYNAREC_SAFEFLAGS
Controls how carefully Box64 preserves processor flags around function calls and returns. Higher values are safer and slower. Some programs depend on flags surviving a call in ways that normal code does not, and this option rescues them.
BOX64_DYNAREC_CALLRET
Optimises function calls and returns by pairing them more directly in translated code. It often improves speed noticeably but can upset programs that manipulate their own return addresses, such as some copy-protection schemes.
BOX64_DYNAREC_FASTNAN and BOX64_DYNAREC_FASTROUND
Both relate to floating-point behaviour. When enabled, Box64 skips some work needed to reproduce x86 handling of special values and rounding modes exactly. Most games do not notice, and the speed gain is welcome. If you see physics glitches, odd geometry or incorrect calculations, disable them.
BOX64_DYNAREC_X87DOUBLE
Older software uses the x87 floating-point unit, which works with 80-bit precision internally. This option makes Box64 use 64-bit doubles instead, which is faster but less precise. Some older games rely on the extra precision.
BOX64_DYNAREC_WAIT
Decides whether a thread waits for another thread to finish translating a block of code, or falls back to the interpreter in the meantime. Changing it can smooth out stutter in some multi-threaded programs.
A quick reference table
| Variable | Faster setting | Safer setting | Typical symptom it addresses |
|---|---|---|---|
BOX64_DYNAREC_BIGBLOCK | Higher | 0 | Crashes on start, or slowness |
BOX64_DYNAREC_STRONGMEM | 0 | 1 or more | Random freezes in threaded games |
BOX64_DYNAREC_SAFEFLAGS | Lower | Higher | Crashes after function calls |
BOX64_DYNAREC_CALLRET | 1 | 0 | Problems with protected software |
BOX64_DYNAREC_FASTNAN | 1 | 0 | Physics or maths errors |
BOX64_DYNAREC_FASTROUND | 1 | 0 | Rounding or geometry glitches |
Defaults change between versions, so check the usage document in the docs folder of the Box64 GitHub repository for the exact values that apply to your build.
Saving settings with box64rc files
Typing variables before every launch quickly becomes tedious. Box64 reads rc files that apply settings automatically, per program. A system-wide default file is installed with Box64, and you can add your own in your home folder as ~/.box64rc. Your personal file takes precedence for the programs it lists.
An rc file is plain text, divided into sections named after an executable:
[mygame.x86_64]
BOX64_DYNAREC_BIGBLOCK=0
BOX64_DYNAREC_STRONGMEM=1
[launcher.exe]
BOX64_DYNAREC_SAFEFLAGS=2
BOX64_DYNAREC_CALLRET=0
When Box64 starts mygame.x86_64, it applies the settings in that section. Windows executables run through Wine can be matched by their .exe names in the same way.
The default rc file shipped with Box64 already contains tuned profiles for many popular programs and games. Read it before writing your own; your program may already be covered, and its entries show useful patterns.
A reliable tuning routine
- Run the program with default settings and
BOX64_LOG=1. Note any missing libraries and fix them first. - If it crashes, try
BOX64_DYNAREC=0to confirm whether translation is involved. - Re-enable the Dynarec and apply safer settings one at a time:
BIGBLOCK=0, thenSTRONGMEM=1, then higherSAFEFLAGS. - Once stable, try faster settings one by one, testing between each change.
- Save the final combination in
~/.box64rcunder the program's name. - Share your working profile with the community or propose it for the default rc file on GitHub.
Settings in Winlator
Winlator's Box64 presets are simply named groups of these same variables. Understanding them lets you build a custom preset that suits a particular game. See our Box64 for Winlator guide for details.
Combining settings with launch scripts
For programs you start often, a small launch script keeps settings and commands together in one place and avoids clutter in your shell profile. A script might set two or three BOX64_ variables, change to the program's folder and then start it with Box64. Because the variables are set only inside the script, they do not affect other programs.
Scripts and rc files work well together. Use the rc file for settings that should always apply to a given executable, and use scripts for situational options such as extra logging while you investigate a problem.
Logging without overwhelming yourself
Higher log levels produce a great deal of output. Redirect it to a file rather than reading it in the terminal:
BOX64_LOG=2 box64 ./program > box64.log 2>&1
Search the file for words such as "Error", "missing" or "SIGSEGV" to find the interesting part quickly. When reporting a problem on GitHub, attach the relevant section rather than the whole file unless a developer asks for more.
Settings that change between releases
Box64's defaults evolve as the Dynarec improves. A setting that was essential for a game two releases ago may now be unnecessary or even slower. After each Box64 upgrade, try removing old entries from your personal rc file one at a time to see whether the defaults now handle the program well. Keeping the file lean makes future troubleshooting much easier.
Limiting processor cores
Some older programs behave badly when they detect many processor cores, or perform poorly because their threads compete for resources on a small board. Box64 offers an option to limit the number of cores the emulated program sees, documented in the usage guide on GitHub. Reducing the visible core count can stabilise such programs and sometimes even improves smoothness by leaving headroom for the graphics driver and the rest of the system. As with every other setting, test the effect rather than assuming it helps.
Where to find the complete list
This guide covers the settings most users need, but Box64 has many more, including options for specific libraries, debugging and unusual programs. The complete, current list lives in the usage document inside the docs folder of the official Box64 repository on GitHub. Because it is maintained alongside the code, it always reflects the options available in the latest version. Bookmark it, and check it whenever a release mentions new or renamed settings.
Frequently asked questions
Box64 installs a system-wide default rc file and also reads ~/.box64rc in your home folder, where you can add your own per-program settings.
Start with BOX64_DYNAREC_BIGBLOCK=0 and BOX64_DYNAREC_STRONGMEM=1. They resolve many crashes caused by aggressive translation or memory ordering.
Try higher BOX64_DYNAREC_BIGBLOCK values, enable BOX64_DYNAREC_CALLRET and consider FASTNAN and FASTROUND, testing each change for stability.
Set BOX64_NOBANNER=1.
Yes. Box64 runs Wine, so its settings apply, and rc file sections can match Windows .exe names.
Conclusion
Box64's environment variables give you fine control over the balance between speed and compatibility. Learn the diagnostic options first, then the core Dynarec settings, and change one thing at a time. When you find a combination that works, save it in ~/.box64rc so it applies every time. With a methodical approach, Box64 settings turn "almost works" into "works well" for a surprising number of programs.

Running Windows Games with Box64, Wine and DXVK
Box64 vs FEX-Emu vs QEMU: Choosing the Right x86 Translator
Box64 Download APK: What Android Users Really Need to Know