Configuration
Every key of raylib_multiplatform.toml: its default, what it takes, and what it is for. Read from tools/configure.py --print-schema at the commit this site documents; the explanations are the comments of the framework's own .toml.
A key left out takes its default. A value configure.py refuses stops the build before anything is compiled, and the message names the line.
[project]
name
Binary name, CMake target, Xcode scheme, artifact names. Letters, digits, _ and - only — no spaces, because it becomes a filename on five OSes.
[window]
title
title The title bar on desktop, and the app's name under its icon on
Android and iOS.width The window's size when it opens on desktop, and the DESIGN height resolution: rmp::ui lays out at this size and scales to the real
one, and the camera starts centred on it.width
title The title bar on desktop, and the app's name under its icon on
Android and iOS.width The window's size when it opens on desktop, and the DESIGN height resolution: rmp::ui lays out at this size and scales to the real
one, and the camera starts centred on it.height
title The title bar on desktop, and the app's name under its icon on
Android and iOS.width The window's size when it opens on desktop, and the DESIGN height resolution: rmp::ui lays out at this size and scales to the real
one, and the camera starts centred on it.orientation
"landscape" | "portrait" | "unspecified" — applied to Android and iOS at once: the Android manifest's screenOrientation and iOS's supported orientations. Nothing else reads it; on desktop the window's shape is width x height.
vsync
Wait for the screen's refresh before showing each frame: no tearing, and no frames drawn that nobody sees. Without it a desktop game runs as fast as the GPU allows. The web paces the frame itself, so there it changes nothing.
fps
A cap in frames per second; 0 is no cap. With vsync on, the screen already paces the game and this is rarely needed. Ignored on the web and on iOS, where the platform paces the frame. On DRM (no desktop) it also picks the display mode: 144 asks for a 144 Hz mode. 1/fps may not be longer than [app] max_delta, or the game would run in slow motion.
stretch
How the world fits a window that is not width x height — a desktop window dragged bigger, a phone of another shape, a TV:
"none" the world at 1:1: a bigger window shows more of it and a
smaller one less. Nothing is scaled.
"letterbox" the design scaled to fit and centred, the rest of the window
bars of the clear colour. Every player sees the same part of
the world, and rmp::ui keeps the interface inside it.
"expand" scaled to fit like letterbox, with no bars: more of the world
shows the way the window is longer than the design -- above
and below on a 4:3 screen, at the sides on a 21:9 one. For a
level that scrolls anyway.A scene can change it at any moment with rmp::app::set_stretch(). A .toml without this line gets "none".
pause_unfocused
Pause the game while its window is out of focus: the scenes stop, the clock stands still (no giant step on the way back), music and sounds pause, and the last picture stays on screen. Off is what most games do: they keep running. A minimized desktop window never draws whatever this says — it keeps moving, sleeps between frames and draws nothing.
[app]
max_delta
The longest step the game logic is ever handed, in seconds.
GetFrameTime() returns real elapsed time and real elapsed time has no ceiling: drag the window, stop at a breakpoint, let the disk stall, and it comes back half a second. A bullet at 900 units/s then moves 450 units in one step — through the wall and out the other side, because at no point did it overlap. Clamping turns that into an instant of slow motion, which is the trade every game wants: nobody minds a hitch, everybody minds falling out of the world.
It is half of the answer to tunnelling. The other half is the swept test in the collision pass, which catches a fast object against a thin one even at a perfectly normal frame rate.
0.05 is a twentieth of a second. Sensible values are between 1/60 (0.0167) and 1/10 (0.1). 0 switches the clamp off and hands the real number through.
[targets]
enabled
Which platforms to build. Groups expand and deduplicate; there is no precedence to reason about because there are no conflicts.
groups : all | desktop | mobile | linux | windows | apple | bsd | web | android | drm
exact : linux-x64-glibc linux-arm64-glibc linux-riscv64-glibc linux-x64-musl
linux-x64-glibc-drm linux-arm64-glibc-drm windows-x64 windows-arm64
macos ios web android
freebsd-x64 freebsd-arm64 openbsd-x64 openbsd-arm64 netbsd-x64A target name is <os>-<arch>-<libc>-<env>, and a segment is only there when it can differ: windows-x64 stops early because Windows has one C library, macos stops at the OS because it is universal. No libc suffix on Linux would have meant "you have to know it is glibc", which is knowledge the name should carry.
linux-x64-glibc-drm and linux-arm64-glibc-drm are DRM/KMS: the game draws straight to the screen with no X11 and no Wayland, from a bare TTY. A Raspberry Pi, an arcade cabinet, a kiosk, or just developing from a console. Both segments before drm can differ and are spelled out for that reason — DRM is a kernel interface and exists on every architecture, and a machine with no desktop is far likelier to be a Pi than an x86 box, hence arm64; and the binary links libdrm, gbm and EGL directly instead of dlopening them, so a musl one would be a separate target. Both are glibc.
The x64 one builds and RUNS in CI on a vkms virtual display; the arm64 one is built and checked, because what it exists for is a Pi's own vc4/v3d pipeline and a virtual display would not be answering that question.
Neither honours [linux] glibc: they link the distribution's libdrm, gbm and EGL directly, so their floor is the build machine's. The jobs print it.
To leave them out: disabled = ["drm"].
disabled
Subtracted from whatever enabled expanded to. Use it to keep a group and drop one member: enabled = ["all"], disabled = ["ios"].
[android]
application_id
IRREVERSIBLE ON GOOGLE PLAY. Once an app is published under this id you can never change it — you would have to ship a new listing and lose your installs. Get it right before your first upload. CI refuses to build a tag while this still says com.example.*.
min_sdk
The oldest Android the app installs on, as an API level: 24 is Android 7.0. 21 to 36.
gl_version
ES20 | ES30. What raylib and your game are compiled for on Android (GRAPHICS_API_OPENGL_ES2 or _ES3), and the OpenGL ES version the manifest requires: a device without it is not offered your app on the Play Store. ES20 reaches every device, and is what a game made with rmp new starts with. ES30 is for a game that needs what raylib's ES 3.0 path adds. (The framework's own .toml has ES30, so that its CI compiles the ES 3.0 path.)
category
How the Play Store files your app (android:appCategory):
game | audio | video | image | social | news | maps | productivity | accessibilityThis is NOT what puts the icon in the app drawer — that part is fixed and not yours to set, because an app without it installs and then appears nowhere.
gradle_offline
Where CI's Android job gets Gradle and the libraries the app builds with. true: from the build image, which carries them, and Gradle runs with --offline — the job downloads nothing, and a library the image lacks fails the build at once, by name. false: Gradle downloads what the image lacks, and the job says so in a warning; for a game that adds a Gradle dependency of its own. Your machine is not affected: rmp android is never offline.
[android.display]
keep_on
never sleep while playing
immersive
hide the system bars
into_cutout
draw behind the notch
[android.permissions]
internet
What the app asks the system for. Every one of these is visible on your Play listing, so ask for nothing you do not use. android.permission.INTERNET — forced on when AdMob is enabled
vibration
What the app asks the system for. Every one of these is visible on your Play listing, so ask for nothing you do not use. android.permission.VIBRATE — needed by raymob's Vibrate()
[android.features]
gyroscope
Hardware. true = the Play Store hides your app from devices that lack it. false still declares the sensor as optional, which is what you want unless the game is unplayable without it.
accelerometer
Hardware. true = the Play Store hides your app from devices that lack it. false still declares the sensor as optional, which is what you want unless the game is unplayable without it.
[android.admob]
enabled
Ads, and off unless you turn them on: a game made with rmp new starts with false. (The framework's own .toml has true, so that its CI builds the ads path.) true brings, on Android:
- the Google Mobile Ads SDK in the APK, and
MobileAds.initialize()at startup - the AD_ID permission, and INTERNET with it
- an advertising-id declaration you owe Play's Data safety form
false builds none of that, and your code does not change: the rmp::ads calls (rmp/ads.h) stay compilable and do nothing, exactly as they do off Android.
It also turns itself off when "android" is not in [targets], however you removed it: by name, or by leaving out a group like "mobile".
app_id
Google's official TEST ids. Replace with your own before publishing. Clicking real ads from your own build is the fastest way to get an AdMob account suspended.
interstitial_id
Google's official TEST ids. Replace with your own before publishing. Clicking real ads from your own build is the fastest way to get an AdMob account suspended.
rewarded_id
Google's official TEST ids. Replace with your own before publishing. Clicking real ads from your own build is the fastest way to get an AdMob account suspended.
[ios]
bundle_id
Same warning as Android: this is your App Store identity.
deployment_target
The oldest iOS the app runs on: 13.0 at the least, because rmp::save uses std::filesystem and Apple's C++ library has it from iOS 13.
settings
Raw Xcode build settings, copied verbatim into the generated XcodeGen spec. For a device build you will need something like:
DEVELOPMENT_TEAM = "ABCDE12345"
CODE_SIGN_STYLE = "Automatic"[icon]
source
One square PNG, 1024x1024 recommended. The app icon on Android, iOS and Windows comes out of this one file: every Android density, the round variant, the adaptive foreground, the Play Store asset, the iOS AppIcon, and the multi-resolution .ico that gets embedded into the Windows .exe. The other targets ship a bare executable (macOS, Linux, the BSDs) or a page (web), with no icon of their own to make from it.
Deliberately NOT in resources/: everything in there is packed into resources.rres and shipped with the game, and your launcher icon is a build input, not a game asset.
adaptive_background
Behind the adaptive icon on Android 8+. Hex, or "" to use the source image as its own background.
[raylib]
disabled_modules
Modules you do not use, to shrink the binary. rcore and rlgl are mandatory and are not listed on purpose.
rmodels | raudiortextures, rtext and rshapes cannot be disabled: the asset layer and the CI render gate are built on rtextures, rres calls into rtext, and rmp::ui draws every panel and button with rshapes. configure.py says so if you try. NOTE: this does not affect iOS, which links a prebuilt xcframework.
[web]
memory
How much memory the WebAssembly module is allowed.
memory Megabytes reserved at startup (Emscripten's TOTAL_MEMORY). 64 is
enough for a menu and a handful of textures. A game that loads a
tile atlas and a few tracks wants more, and the failure mode is
specific: the tab dies with "Cannot enlarge memory arrays".grow Let it grow past memory instead of aborting. It costs a little
speed on every heap access — every pointer goes through a bounds
check that cannot be hoisted — so a game that knows its ceiling is
better off raising `memory` and leaving this off.grow
How much memory the WebAssembly module is allowed.
memory Megabytes reserved at startup (Emscripten's TOTAL_MEMORY). 64 is
enough for a menu and a handful of textures. A game that loads a
tile atlas and a few tracks wants more, and the failure mode is
specific: the tab dies with "Cannot enlarge memory arrays".grow Let it grow past memory instead of aborting. It costs a little
speed on every heap access — every pointer goes through a bounds
check that cannot be hoisted — so a game that knows its ceiling is
better off raising `memory` and leaving this off.backend
backend What raylib talks to in the browser. THE COMPILER IS EMSCRIPTEN IN
ALL THREE CASES — that is not what this chooses. It chooses whether
there is a layer between raylib and the browser, and it is the same
question [windows] backend and [linux] backend answer for their
platforms.glfw raylib calls GLFW, and Emscripten emulates GLFW in JavaScript
(that is what -sUSE_GLFW=3 links). The path raylib has shipped
for years and the one every web example on the internet is
built with. THE DEFAULT.
emscripten raylib calls the browser through Emscripten's own API, with
nothing in between. New in raylib 6.0
(platforms/rcore_web_emscripten.c). One layer less and no
JavaScript shim to download.
rgfw REFUSED, and not out of caution: RGFW's web backend calls
emscripten_sleep, which needs -sASYNCIFY, and this framework
deliberately has none — the browser owns the frame loop through
emscripten_set_main_loop precisely so that it does not. It
builds fine and then dies in the tab with "Please compile your
program with async support". Found by opening it in a real
browser; see .github/workflows/web-backends.yml.BOTH OF THESE ARE VERIFIED IN A BROWSER, not just built: the boot
job in web-backends.yml opens each one in headless Chromium and
screenshots the canvas. For `emscripten` that matters more than
usual — raylib 6.0 ships the backend without wiring it into the
build, and it compiles only through local patches to raylib's
(thirdparty/raylib/PATCHES.md).
WHY NOT `emscripten` BY DEFAULT YET, having read both backends: they
implement the same functions and stub out the same ones — monitor
enumeration and SetGamepadMappings, neither of which means anything
in a browser. Where they differ is in unfinished detail, and it is
in the one raylib calls new: rcore_web_emscripten.c carries
`TODO: keyCodes should be mapped to raylib/GLFW3 Key values` and
`TODO: Add char codes`, so key constants are not guaranteed to be
the ones raylib documents, and drop-files is `TODO: Implement GLFW3
alternative for drop callback`. The GLFW path has none of those.
Upstream is going the same way — rcore_web.c itself carries
`TODO: Replace GLFW-web by Emscripten?` — and this stays an option
and not the default while the keyboard mapping is unfinished.[input]
deadzone
deadzone How much of an analogue stick's travel reads as zero, 0..0.95.
Sticks drift as they wear, so 0 means a character that walks on its
own on a controller that has seen some use; too much and the stick
feels dead before it moves. 0.2 is the value most engines settle on.
It rescales rather than clipping: just past the dead zone the stick
reads a little above zero, not a sudden 0.2. Without that, every
character starts moving at a fifth of full speed.
Keyboard and d-pad are unaffected — they are on or off and have no
travel to ignore. rmp::input::set_deadzone() changes it at runtime,
which is what a settings slider does.[audio]
master
The volumes rmp::audio starts at, each a fraction from 0 (silent) to 1 (full). MASTER scales everything; MUSIC and SFX scale their own on top of it, so music = 0.8 under master = 0.5 plays at 40 %. A settings screen changes them at runtime with rmp::audio::set_volume() — these are only the start.
Nothing here opens the sound device: it opens the first time something is played, so a game with no sound never touches it.
music
The volumes rmp::audio starts at, each a fraction from 0 (silent) to 1 (full). MASTER scales everything; MUSIC and SFX scale their own on top of it, so music = 0.8 under master = 0.5 plays at 40 %. A settings screen changes them at runtime with rmp::audio::set_volume() — these are only the start.
Nothing here opens the sound device: it opens the first time something is played, so a game with no sound never touches it.
sfx
The volumes rmp::audio starts at, each a fraction from 0 (silent) to 1 (full). MASTER scales everything; MUSIC and SFX scale their own on top of it, so music = 0.8 under master = 0.5 plays at 40 %. A settings screen changes them at runtime with rmp::audio::set_volume() — these are only the start.
Nothing here opens the sound device: it opens the first time something is played, so a game with no sound never touches it.
[save]
portable
rmp::save — saving the game. Nothing here is a secret, and nothing may be.
portable: where the saves go.
false the user's data folder: %APPDATA%\<name> on Windows,
~/Library/Application Support/<name> on macOS, ~/.local/share/<name>
on Linux and the BSDs. What installers and Steam Cloud expect.
true a saves/ folder next to the executable. What a zip from itch.io
wants: delete the folder and the game is gone, saves included.
Only Windows, Linux and FreeBSD have such a place; macOS, Android,
iOS and web ignore it, and NetBSD and OpenBSD cannot say where the
executable is, so there the saves go to the user's folder and the
log says so once. If the folder cannot be written (a portable
build copied into Program Files), the saves go to the user's
folder instead and the log says so once -- never lost in silence:
reads look in both folders and take the newer save.encrypt: whether rmp::save::write() seals the file by default. Sealed means
unreadable and any edit detected, and with it on a plain file reads as
modified -- nobody swaps in a save of their own. The key is derived from
[project] name, so it lives in the binary: that stops a text editor, not a
determined player, and renaming the project makes old sealed saves
unreadable. Every save has a checksum either way.version: the version of YOUR save format. Adding a key never needs a bump --
a missing key reads as its default. Bump it when a key changes meaning,
and migrate on read: if (v.version() < 2) v["coins"] = v["gold"].as_int(0);encrypt
rmp::save — saving the game. Nothing here is a secret, and nothing may be.
portable: where the saves go.
false the user's data folder: %APPDATA%\<name> on Windows,
~/Library/Application Support/<name> on macOS, ~/.local/share/<name>
on Linux and the BSDs. What installers and Steam Cloud expect.
true a saves/ folder next to the executable. What a zip from itch.io
wants: delete the folder and the game is gone, saves included.
Only Windows, Linux and FreeBSD have such a place; macOS, Android,
iOS and web ignore it, and NetBSD and OpenBSD cannot say where the
executable is, so there the saves go to the user's folder and the
log says so once. If the folder cannot be written (a portable
build copied into Program Files), the saves go to the user's
folder instead and the log says so once -- never lost in silence:
reads look in both folders and take the newer save.encrypt: whether rmp::save::write() seals the file by default. Sealed means
unreadable and any edit detected, and with it on a plain file reads as
modified -- nobody swaps in a save of their own. The key is derived from
[project] name, so it lives in the binary: that stops a text editor, not a
determined player, and renaming the project makes old sealed saves
unreadable. Every save has a checksum either way.version: the version of YOUR save format. Adding a key never needs a bump --
a missing key reads as its default. Bump it when a key changes meaning,
and migrate on read: if (v.version() < 2) v["coins"] = v["gold"].as_int(0);version
rmp::save — saving the game. Nothing here is a secret, and nothing may be.
portable: where the saves go.
false the user's data folder: %APPDATA%\<name> on Windows,
~/Library/Application Support/<name> on macOS, ~/.local/share/<name>
on Linux and the BSDs. What installers and Steam Cloud expect.
true a saves/ folder next to the executable. What a zip from itch.io
wants: delete the folder and the game is gone, saves included.
Only Windows, Linux and FreeBSD have such a place; macOS, Android,
iOS and web ignore it, and NetBSD and OpenBSD cannot say where the
executable is, so there the saves go to the user's folder and the
log says so once. If the folder cannot be written (a portable
build copied into Program Files), the saves go to the user's
folder instead and the log says so once -- never lost in silence:
reads look in both folders and take the newer save.encrypt: whether rmp::save::write() seals the file by default. Sealed means
unreadable and any edit detected, and with it on a plain file reads as
modified -- nobody swaps in a save of their own. The key is derived from
[project] name, so it lives in the binary: that stops a text editor, not a
determined player, and renaming the project makes old sealed saves
unreadable. Every save has a checksum either way.version: the version of YOUR save format. Adding a key never needs a bump --
a missing key reads as its default. Bump it when a key changes meaning,
and migrate on read: if (v.version() < 2) v["coins"] = v["gold"].as_int(0);[windows]
backend
Which windowing backend Windows uses.
"glfw" the default, and what raylib uses everywhere else. Mature, and it
is what the CI matrix is tested against.
"win32" raylib 6.0's native Win32 backend: no GLFW at all, one dependency
fewer and a smaller .exe.
"rgfw" RGFW, a single-header windowing library. Also no GLFW, also
smaller, and the same caveat as win32 applies."win32" is a real option and a young one. It does not cover everything GLFW does — gamepads, multi-monitor, the clipboard and some keyboard cases are thinner — so it is right for a simple game and wrong as a default. Try it, measure the .exe, and keep it only if nothing you use is missing.
[upx]
enabled
Compress the shipped binary with UPX. Measured on linux-x64-glibc at commit cf7b676, built the way CI builds it — hardened, PIE, stripped: 1 234 656 bytes down to 365 836, a 70 % cut. linux-x64-musl the same, 1 232 872 to 365 196; linux-x64-glibc-drm, which links its graphics libraries instead of carrying them, 748 616 to 310 540, 58 %. CI holds every packed binary to the same boot and render gate as an unpacked one — see the last paragraph.
Groups expand and deduplicate exactly like [targets], and disabled is subtracted afterwards, so there is no precedence to reason about.
groups : all | linux | windows | bsd
exact : linux-x64-glibc linux-arm64-glibc linux-riscv64-glibc linux-x64-musl
linux-x64-glibc-drm linux-arm64-glibc-drm windows-x64 windows-arm64
freebsd-x64 freebsd-arm64 openbsd-x64 openbsd-arm64 netbsd-x64all here is NOT every target. macOS and iOS are refused because the binary is code-signed and compressing it breaks the signature; Android because what ships is a .so inside an APK, which is already a zip, so compressing it makes the APK BIGGER; web because it is .wasm and the browser fetches it gzipped. Naming any of them is an error with the reason, not a silent no-op.
LINUX-RISCV64-GLIBC IS PACKED ONLY WHEN NAMED (Omar, 2026-11-15): no group and no default brings it in, and naming it is a warning. UPX 5.2.0's riscv64 stub dies with SIGTRAP on every kernel before 6.3 — most RISC-V boards' vendor kernels, RISE's 5.10 among them — because memfd_create(MFD_EXEC) is EINVAL there and, unlike the amd64 and arm64 stubs, it never tries again without the flag. QEMU runs on the host's newer kernel and never saw it. A patched stub is no way out: UPX's licence exception covers only the unmodified one. A game whose players all run Linux 6.3 or later may name it for its 59 % (962 752 bytes to 391 504, measured at c0369ec).
WINDOWS IS AVAILABLE AND NOT ON BY DEFAULT, and that is deliberate: an unsigned .exe that has been UPX-packed is a shape Windows Defender associates with malware, and it gets quarantined on some machines and not others. If you sign your builds, turn it on and you get the same 70-odd per cent. If you do not, the download saving is not worth a fraction of your players being told your game is a virus.
BSD is untested territory for this and is off by default for that reason alone: upx publishes no FreeBSD/OpenBSD/NetBSD build, so the VMs would have to install it from ports.
THE DEFAULT IS EXACTLY THE TARGETS WHOSE PACKED BINARY CI STARTS. Each of these four jobs unzips the archive it ships — UPX-packed — starts what is in it, and checks it puts pixels on the screen: linux-x64-glibc on every push, under a virtual X server; linux-arm64-glibc on a full run, on an ARM64 runner; linux-x64-musl on a full run, on Alpine under Xvfb; and linux-x64-glibc-drm on a full run, on a vkms display. So if UPX ever produced a stub that does not launch, CI finds out. linux-riscv64-glibc's archive is started too, on a RISC-V board and under QEMU, unpacked: see above. linux-arm64-glibc-drm is never executed — built and checked statically — so turning UPX on there would ship a packed binary whose launch nobody has observed.
disabled
Compress the shipped binary with UPX. Measured on linux-x64-glibc at commit cf7b676, built the way CI builds it — hardened, PIE, stripped: 1 234 656 bytes down to 365 836, a 70 % cut. linux-x64-musl the same, 1 232 872 to 365 196; linux-x64-glibc-drm, which links its graphics libraries instead of carrying them, 748 616 to 310 540, 58 %. CI holds every packed binary to the same boot and render gate as an unpacked one — see the last paragraph.
Groups expand and deduplicate exactly like [targets], and disabled is subtracted afterwards, so there is no precedence to reason about.
groups : all | linux | windows | bsd
exact : linux-x64-glibc linux-arm64-glibc linux-riscv64-glibc linux-x64-musl
linux-x64-glibc-drm linux-arm64-glibc-drm windows-x64 windows-arm64
freebsd-x64 freebsd-arm64 openbsd-x64 openbsd-arm64 netbsd-x64all here is NOT every target. macOS and iOS are refused because the binary is code-signed and compressing it breaks the signature; Android because what ships is a .so inside an APK, which is already a zip, so compressing it makes the APK BIGGER; web because it is .wasm and the browser fetches it gzipped. Naming any of them is an error with the reason, not a silent no-op.
LINUX-RISCV64-GLIBC IS PACKED ONLY WHEN NAMED (Omar, 2026-11-15): no group and no default brings it in, and naming it is a warning. UPX 5.2.0's riscv64 stub dies with SIGTRAP on every kernel before 6.3 — most RISC-V boards' vendor kernels, RISE's 5.10 among them — because memfd_create(MFD_EXEC) is EINVAL there and, unlike the amd64 and arm64 stubs, it never tries again without the flag. QEMU runs on the host's newer kernel and never saw it. A patched stub is no way out: UPX's licence exception covers only the unmodified one. A game whose players all run Linux 6.3 or later may name it for its 59 % (962 752 bytes to 391 504, measured at c0369ec).
WINDOWS IS AVAILABLE AND NOT ON BY DEFAULT, and that is deliberate: an unsigned .exe that has been UPX-packed is a shape Windows Defender associates with malware, and it gets quarantined on some machines and not others. If you sign your builds, turn it on and you get the same 70-odd per cent. If you do not, the download saving is not worth a fraction of your players being told your game is a virus.
BSD is untested territory for this and is off by default for that reason alone: upx publishes no FreeBSD/OpenBSD/NetBSD build, so the VMs would have to install it from ports.
THE DEFAULT IS EXACTLY THE TARGETS WHOSE PACKED BINARY CI STARTS. Each of these four jobs unzips the archive it ships — UPX-packed — starts what is in it, and checks it puts pixels on the screen: linux-x64-glibc on every push, under a virtual X server; linux-arm64-glibc on a full run, on an ARM64 runner; linux-x64-musl on a full run, on Alpine under Xvfb; and linux-x64-glibc-drm on a full run, on a vkms display. So if UPX ever produced a stub that does not launch, CI finds out. linux-riscv64-glibc's archive is started too, on a RISC-V board and under QEMU, unpacked: see above. linux-arm64-glibc-drm is never executed — built and checked statically — so turning UPX on there would ship a packed binary whose launch nobody has observed.
max_size_mb
Skip compression when the binary is bigger than this, in megabytes.
UPX cannot pack a file past roughly 768 MB, and it does not decline politely when it happens: it exits non-zero, which fails the release of a game whose only problem is that it is large. The default leaves 168 MB of headroom, so what you get instead is a line in the log and an uncompressed binary that ships. Raise it if you have measured your own ceiling, lower it if you would rather not spend the packing minute on anything sizeable.
To turn compression off entirely, empty enabled above. Setting this to 0 is rejected, because it says the wrong thing.
[linux]
backend
Which windowing backend Linux uses, and whether it talks to Wayland natively.
backend "glfw" (default) or "rgfw". GLFW is what the CI matrix is tested
against; RGFW is smaller and younger — and on Linux it is
X11-ONLY, so it cannot be combined with wayland = true. The
generator refuses that pair rather than letting the build pick one.
Neither key reaches the DRM targets: DRM talks to the kernel
directly and has no windowing backend and no compositor at all.wayland false (default) builds GLFW against X11 only, so on a Wayland desktop
the game runs through XWayland — an extra hop, and the reason
fractional scaling and per-monitor DPI misbehave there.
true builds BOTH backends into the binary and lets GLFW pick at
startup: a Wayland session gets Wayland natively, an X11 session gets
X11 natively, and neither is a fallback for the other. It needs
libwayland-dev, wayland-protocols and libxkbcommon-dev on the build
machine.
Both, and not Wayland alone: a Wayland-only binary does not start
on an X11 session at all, and the machine that runs the game is not
the one that built it, so that is not a choice to make at build time.
Off by default because raylib 6.0's Wayland path is the less
travelled one.
One difference you WILL see, and it is Wayland's design and not a
bug: there is no window position. GetWindowPosition() and
SetWindowPosition() do not work, and GLFW logs a warning the first
time something asks. A game that remembers where its window was
cannot do that on Wayland, natively or otherwise.wayland
Which windowing backend Linux uses, and whether it talks to Wayland natively.
backend "glfw" (default) or "rgfw". GLFW is what the CI matrix is tested
against; RGFW is smaller and younger — and on Linux it is
X11-ONLY, so it cannot be combined with wayland = true. The
generator refuses that pair rather than letting the build pick one.
Neither key reaches the DRM targets: DRM talks to the kernel
directly and has no windowing backend and no compositor at all.wayland false (default) builds GLFW against X11 only, so on a Wayland desktop
the game runs through XWayland — an extra hop, and the reason
fractional scaling and per-monitor DPI misbehave there.
true builds BOTH backends into the binary and lets GLFW pick at
startup: a Wayland session gets Wayland natively, an X11 session gets
X11 natively, and neither is a fallback for the other. It needs
libwayland-dev, wayland-protocols and libxkbcommon-dev on the build
machine.
Both, and not Wayland alone: a Wayland-only binary does not start
on an X11 session at all, and the machine that runs the game is not
the one that built it, so that is not a choice to make at build time.
Off by default because raylib 6.0's Wayland path is the less
travelled one.
One difference you WILL see, and it is Wayland's design and not a
bug: there is no window position. GetWindowPosition() and
SetWindowPosition() do not work, and GLFW logs a warning the first
time something asks. A game that remembers where its window was
cannot do that on Wayland, natively or otherwise.glibc
glibc The OLDEST glibc the shipped binary is allowed to need, or "" to build
against whatever the build machine has.
A Linux binary records, per imported symbol, the glibc version that
symbol came from, and the loader refuses to start anything it cannot
satisfy. CI builds on Ubuntu 24.04, which is glibc 2.39 — and 2.39 does
not exist on Debian 12, Ubuntu 22.04, RHEL 8, or inside Steam's sniper
runtime. Nothing about the build hints at this: it compiles, links, and
runs perfectly on the machine that made it, and dies elsewhere with
"version GLIBC_2.39 not found".
THE FIX COSTS NOTHING, and that is measured rather than hoped. Every
symbol in this project asking for a modern glibc is either libm (powf,
hypot, fmod, acosf) or one of the pthread/dl functions glibc 2.34
folded into libc. There is not one new API in the whole thing, so the
floor is a build setting. With this set, tools/linux_build.sh compiles
with zig cc, which ships glibc stubs back to 2.17 — and at the same
optimisation level it renders a byte-identical frame to gcc, so this is
a compatibility change and not a behaviour change.
There is nothing to install on the player's side either: GLFW opens
libX11 and libGL with dlopen at runtime, so the binary's only hard
dependencies are libc, libm, libpthread and libdl.
2.17 RHEL/CentOS 7. The floor zig can reach; everything else is EOL.
2.28 RHEL 8 (supported to 2029), Debian 10, Ubuntu 18.10.
2.31 Ubuntu 20.04, Debian 11 — and Steam Runtime 3 "sniper", which
is what a game on Steam runs inside today.
"" build against this machine. Fine locally, wrong for a release.
2.28 is the default because it clears the oldest distribution still
getting security updates, and clears sniper with room to spare.
It reaches linux-x64-glibc and linux-arm64-glibc: those are built by
tools/linux_build.sh, and tools/glibc_check.sh fails the build if the
binary asks for more. Two kinds of target it does not reach:
linux-riscv64-glibc is cross-compiled with the distribution's GNU
toolchain against Ubuntu 24.04's glibc, and needs glibc 2.38 or newer
(Ubuntu 24.04, Debian 13 and Fedora 39 have it; Debian 12 and Ubuntu
22.04 do not); its job fails if that grows.
The DRM targets link the distribution's libdrm, gbm and EGL
directly; their floor is the build machine's glibc, and their jobs
print it.[dialogue]
build
rmp::Dialogue — conversations in Yarn Spinner 3 (.yarn files in resources/).
build Where a script is compiled:
"runtime" when the game loads it: edit, reload, see it at once.
"embedded" when the game is built, into the executable: nothing to
compile at start, and a script with a mistake fails the
build with its file, line and column. On the desktop;
a cross build (Android, iOS, the web) compiles at runtime.
"auto" runtime in a debug build, embedded in a release.[lang]
default
rmp::Text and rmp::lang — the game in more than one language. A literal the framework is handed ("Play") is looked up in the tables below by its text; what is not there is shown as written. Nothing here is required.
default The language every other falls back to: es-MX, then es, then this,
then the text as the code wrote it.file A table in resources/ with one column per language:
key<TAB>context<TAB>en<TAB>es<TAB>... ("" for none)folder A folder in resources/ with one table per language, es.tsv:
key<TAB>context<TAB>text. Both may be used; they are merged.collect A debug build writes the texts it showed that the tables lack to
lang_seen.tsv next to the executable; `rmp text scan` adds them.languages The languages the game ships, in the order a language menu lists
them. [] is every language the tables have. With a list, `rmp
text check` fails on a text one of them lacks, and the player's
system language is only chosen when it is one of them.fonts A font per language, for an alphabet the [ui] font does not have:
fonts = { ja = "jp.ttf" }. The UI changes font with the language.file
rmp::Text and rmp::lang — the game in more than one language. A literal the framework is handed ("Play") is looked up in the tables below by its text; what is not there is shown as written. Nothing here is required.
default The language every other falls back to: es-MX, then es, then this,
then the text as the code wrote it.file A table in resources/ with one column per language:
key<TAB>context<TAB>en<TAB>es<TAB>... ("" for none)folder A folder in resources/ with one table per language, es.tsv:
key<TAB>context<TAB>text. Both may be used; they are merged.collect A debug build writes the texts it showed that the tables lack to
lang_seen.tsv next to the executable; `rmp text scan` adds them.languages The languages the game ships, in the order a language menu lists
them. [] is every language the tables have. With a list, `rmp
text check` fails on a text one of them lacks, and the player's
system language is only chosen when it is one of them.fonts A font per language, for an alphabet the [ui] font does not have:
fonts = { ja = "jp.ttf" }. The UI changes font with the language.folder
rmp::Text and rmp::lang — the game in more than one language. A literal the framework is handed ("Play") is looked up in the tables below by its text; what is not there is shown as written. Nothing here is required.
default The language every other falls back to: es-MX, then es, then this,
then the text as the code wrote it.file A table in resources/ with one column per language:
key<TAB>context<TAB>en<TAB>es<TAB>... ("" for none)folder A folder in resources/ with one table per language, es.tsv:
key<TAB>context<TAB>text. Both may be used; they are merged.collect A debug build writes the texts it showed that the tables lack to
lang_seen.tsv next to the executable; `rmp text scan` adds them.languages The languages the game ships, in the order a language menu lists
them. [] is every language the tables have. With a list, `rmp
text check` fails on a text one of them lacks, and the player's
system language is only chosen when it is one of them.fonts A font per language, for an alphabet the [ui] font does not have:
fonts = { ja = "jp.ttf" }. The UI changes font with the language.collect
rmp::Text and rmp::lang — the game in more than one language. A literal the framework is handed ("Play") is looked up in the tables below by its text; what is not there is shown as written. Nothing here is required.
default The language every other falls back to: es-MX, then es, then this,
then the text as the code wrote it.file A table in resources/ with one column per language:
key<TAB>context<TAB>en<TAB>es<TAB>... ("" for none)folder A folder in resources/ with one table per language, es.tsv:
key<TAB>context<TAB>text. Both may be used; they are merged.collect A debug build writes the texts it showed that the tables lack to
lang_seen.tsv next to the executable; `rmp text scan` adds them.languages The languages the game ships, in the order a language menu lists
them. [] is every language the tables have. With a list, `rmp
text check` fails on a text one of them lacks, and the player's
system language is only chosen when it is one of them.fonts A font per language, for an alphabet the [ui] font does not have:
fonts = { ja = "jp.ttf" }. The UI changes font with the language.languages
rmp::Text and rmp::lang — the game in more than one language. A literal the framework is handed ("Play") is looked up in the tables below by its text; what is not there is shown as written. Nothing here is required.
default The language every other falls back to: es-MX, then es, then this,
then the text as the code wrote it.file A table in resources/ with one column per language:
key<TAB>context<TAB>en<TAB>es<TAB>... ("" for none)folder A folder in resources/ with one table per language, es.tsv:
key<TAB>context<TAB>text. Both may be used; they are merged.collect A debug build writes the texts it showed that the tables lack to
lang_seen.tsv next to the executable; `rmp text scan` adds them.languages The languages the game ships, in the order a language menu lists
them. [] is every language the tables have. With a list, `rmp
text check` fails on a text one of them lacks, and the player's
system language is only chosen when it is one of them.fonts A font per language, for an alphabet the [ui] font does not have:
fonts = { ja = "jp.ttf" }. The UI changes font with the language.fonts
rmp::Text and rmp::lang — the game in more than one language. A literal the framework is handed ("Play") is looked up in the tables below by its text; what is not there is shown as written. Nothing here is required.
default The language every other falls back to: es-MX, then es, then this,
then the text as the code wrote it.file A table in resources/ with one column per language:
key<TAB>context<TAB>en<TAB>es<TAB>... ("" for none)folder A folder in resources/ with one table per language, es.tsv:
key<TAB>context<TAB>text. Both may be used; they are merged.collect A debug build writes the texts it showed that the tables lack to
lang_seen.tsv next to the executable; `rmp text scan` adds them.languages The languages the game ships, in the order a language menu lists
them. [] is every language the tables have. With a list, `rmp
text check` fails on a text one of them lacks, and the player's
system language is only chosen when it is one of them.fonts A font per language, for an alphabet the [ui] font does not have:
fonts = { ja = "jp.ttf" }. The UI changes font with the language.[ui]
theme
rmp::ui — the interface layer. Nothing here is required: with every key at its default a menu is still three lines of code.
theme "dark" or "light". Only which one the app starts with — an
in-game appearance setting is rmp::ui::set_theme(theme_light()).font "" uses the font built into raylib: no asset, no licence, works on
every target. It is a pixel font, drawn at whatever size the
text asks for. Point it at a .ttf in resources/ for something
less retro: it is baked at every size the interface draws, so
SMALL, MEDIUM and LARGE are each sharp.font_size In DESIGN units, i.e. at the [window] resolution above. The UI
scales it from there, so this is a size you pick once.scale 0 = automatic, derived from [window] and the real window size.
Set a number to pin it (an "interface size" option would do this).max_elements Ceiling on the UI tree; it is what sizes the layout arena.
512 is plenty for menus and HUDs — Clay's own default of 8192
would reserve megabytes for three buttons.font
rmp::ui — the interface layer. Nothing here is required: with every key at its default a menu is still three lines of code.
theme "dark" or "light". Only which one the app starts with — an
in-game appearance setting is rmp::ui::set_theme(theme_light()).font "" uses the font built into raylib: no asset, no licence, works on
every target. It is a pixel font, drawn at whatever size the
text asks for. Point it at a .ttf in resources/ for something
less retro: it is baked at every size the interface draws, so
SMALL, MEDIUM and LARGE are each sharp.font_size In DESIGN units, i.e. at the [window] resolution above. The UI
scales it from there, so this is a size you pick once.scale 0 = automatic, derived from [window] and the real window size.
Set a number to pin it (an "interface size" option would do this).max_elements Ceiling on the UI tree; it is what sizes the layout arena.
512 is plenty for menus and HUDs — Clay's own default of 8192
would reserve megabytes for three buttons.font_size
rmp::ui — the interface layer. Nothing here is required: with every key at its default a menu is still three lines of code.
theme "dark" or "light". Only which one the app starts with — an
in-game appearance setting is rmp::ui::set_theme(theme_light()).font "" uses the font built into raylib: no asset, no licence, works on
every target. It is a pixel font, drawn at whatever size the
text asks for. Point it at a .ttf in resources/ for something
less retro: it is baked at every size the interface draws, so
SMALL, MEDIUM and LARGE are each sharp.font_size In DESIGN units, i.e. at the [window] resolution above. The UI
scales it from there, so this is a size you pick once.scale 0 = automatic, derived from [window] and the real window size.
Set a number to pin it (an "interface size" option would do this).max_elements Ceiling on the UI tree; it is what sizes the layout arena.
512 is plenty for menus and HUDs — Clay's own default of 8192
would reserve megabytes for three buttons.scale
rmp::ui — the interface layer. Nothing here is required: with every key at its default a menu is still three lines of code.
theme "dark" or "light". Only which one the app starts with — an
in-game appearance setting is rmp::ui::set_theme(theme_light()).font "" uses the font built into raylib: no asset, no licence, works on
every target. It is a pixel font, drawn at whatever size the
text asks for. Point it at a .ttf in resources/ for something
less retro: it is baked at every size the interface draws, so
SMALL, MEDIUM and LARGE are each sharp.font_size In DESIGN units, i.e. at the [window] resolution above. The UI
scales it from there, so this is a size you pick once.scale 0 = automatic, derived from [window] and the real window size.
Set a number to pin it (an "interface size" option would do this).max_elements Ceiling on the UI tree; it is what sizes the layout arena.
512 is plenty for menus and HUDs — Clay's own default of 8192
would reserve megabytes for three buttons.max_elements
rmp::ui — the interface layer. Nothing here is required: with every key at its default a menu is still three lines of code.
theme "dark" or "light". Only which one the app starts with — an
in-game appearance setting is rmp::ui::set_theme(theme_light()).font "" uses the font built into raylib: no asset, no licence, works on
every target. It is a pixel font, drawn at whatever size the
text asks for. Point it at a .ttf in resources/ for something
less retro: it is baked at every size the interface draws, so
SMALL, MEDIUM and LARGE are each sharp.font_size In DESIGN units, i.e. at the [window] resolution above. The UI
scales it from there, so this is a size you pick once.scale 0 = automatic, derived from [window] and the real window size.
Set a number to pin it (an "interface size" option would do this).max_elements Ceiling on the UI tree; it is what sizes the layout arena.
512 is plenty for menus and HUDs — Clay's own default of 8192
would reserve megabytes for three buttons.[dev]
compiler
Debug builds only, the ones that never ship: rmp run, rmp test and every debug preset — and the software-render check CI runs on every push (the lint job, the BSD and macOS jobs), which is a Debug build too. The release and web builds a player gets never read this section. clang | gcc | mingw | msvc | default
mingw looks for x86_64-w64-mingw32-gcc before plain gcc, which is what makes it work from MSYS2. Plain "gcc" on Windows is how you pick up a stray compiler from a Git-for-Windows shell and end up with a build that asks for X11.
c_compiler
What compiles the C: raylib, GLFW, RGFW, miniaudio, cJSON. same | tcc | auto
same [dev] compiler's own C compiler.
tcc the Tiny C Compiler: builds raylib and GLFW in about a second, and
optimises nothing. x86-64 Linux only; the C++ compiler above still
compiles the C++ and links the game, with GNU ld. tcc has no
sanitizers, so the C it compiles is not instrumented.
auto tcc where it is installed and can work, same anywhere else.The framework keeps "same", so its Debug builds sanitize raylib too; rmp new writes "auto" for a game, whose Debug build is for iterating fast.
See what tcc compiles, where it is used, and what it cannot do.
linker
What compiles the C: raylib, GLFW, RGFW, miniaudio, cJSON. same | tcc | auto
same [dev] compiler's own C compiler.
tcc the Tiny C Compiler: builds raylib and GLFW in about a second, and
optimises nothing. x86-64 Linux only; the C++ compiler above still
compiles the C++ and links the game, with GNU ld. tcc has no
sanitizers, so the C it compiles is not instrumented.
auto tcc where it is installed and can work, same anywhere else.The framework keeps "same", so its Debug builds sanitize raylib too; rmp new writes "auto" for a game, whose Debug build is for iterating fast. auto | mold | lld | default
strict
What compiles the C: raylib, GLFW, RGFW, miniaudio, cJSON. same | tcc | auto
same [dev] compiler's own C compiler.
tcc the Tiny C Compiler: builds raylib and GLFW in about a second, and
optimises nothing. x86-64 Linux only; the C++ compiler above still
compiles the C++ and links the game, with GNU ld. tcc has no
sanitizers, so the C it compiles is not instrumented.
auto tcc where it is installed and can work, same anywhere else.The framework keeps "same", so its Debug builds sanitize raylib too; rmp new writes "auto" for a game, whose Debug build is for iterating fast. true: a framework warning aborts a DEBUG build
sanitize
What a Debug build is instrumented with: address | undefined, or [] for none. The framework lists both and rmp new writes [] for a game: turn them on when you want the game's mistakes found where they happen instead of where they crash. A compiler without the runtime builds without, and says so.
See what each sanitizer catches and costs, and what configure.py refuses, with its reason.
[resources]
rres_password
Obfuscation, not security: the password ends up inside the binary. It exists so casual unpacking of your assets is inconvenient, nothing more.
[deploy]
licenses
Ship a LICENSES.txt next to the binary, with the full notice of everything vendored — raylib, Clay, rres and whatever comes later. Generated from the licence files in thirdparty/, so adding a dependency updates it and forgetting to add one is a build error.
Turn it off ONLY if your game already gives the credits inside it: a credits scene satisfies the same licences, and a loose .txt next to the executable is then just noise. On by default, because most games do not have that scene.
With licenses = false, credits_note has to say where the credits ARE — it is the record of the decision, and configure.py refuses false with it empty.
credits_note
Ship a LICENSES.txt next to the binary, with the full notice of everything vendored — raylib, Clay, rres and whatever comes later. Generated from the licence files in thirdparty/, so adding a dependency updates it and forgetting to add one is a build error.
Turn it off ONLY if your game already gives the credits inside it: a credits scene satisfies the same licences, and a loose .txt next to the executable is then just noise. On by default, because most games do not have that scene.
With licenses = false, credits_note has to say where the credits ARE — it is the record of the decision, and configure.py refuses false with it empty. e.g. "the Credits scene, from the main menu"
[deploy.itch]
user
Leave empty to skip publishing. The API key is a GitHub secret (BUTLER_API_KEY), never here.
game
Leave empty to skip publishing. The API key is a GitHub secret (BUTLER_API_KEY), never here.
[deploy.firebase]
project_id
Runs the debug APK in Firebase Test Lab. The default device, MediumPhone.arm, is one of Test Lab's Arm virtual devices; a physical model (gcloud firebase test android models list --filter=physical) runs it on a phone. Needs the GCP_SA_KEY secret and a Blaze billing account. Empty = skip.
device
Runs the debug APK in Firebase Test Lab. The default device, MediumPhone.arm, is one of Test Lab's Arm virtual devices; a physical model (gcloud firebase test android models list --filter=physical) runs it on a phone. Needs the GCP_SA_KEY secret and a Blaze billing account. Empty = skip.
[ci]
on_push
Whether CI runs on every push to main and on every pull request — the fast lane, on every commit. false runs it only when you ask: a tag v* still builds every target and releases (that is what rmp deploy pushes), and gh workflow run ci.yml runs the fast lane by hand. Pull requests stop too.
It is the one part of .github/workflows/ci.yml that is yours to change, and you change it here: tools/configure.py writes the push and pull_request triggers from this line, between the BEGIN and END lines in ci.yml, on the next build. Commit ci.yml with the .toml. A ci.yml that says otherwise is refused here, at this line, and by CI's first step.
riscv64
Where linux-riscv64-glibc is built and started, when the full matrix or a release builds it:
"rise" natively, on a RISE RISC-V runner (real hardware, free for open
source: https://riscv-runners.riseproject.dev/).
"cloud-v" natively, on a Cloud-V board (https://cloud-v.co/github-riscv-runner):
the native choice for a private repository, which RISE's
open-source offer does not cover.
"cross" cross-compiled on GitHub's amd64 runners and started under QEMU."rise" and "cloud-v" need the provider's GitHub App installed on this repository; without it the job waits in GitHub's queue for a board that never comes. When the board fails, the cross build runs instead and ships.