Openplanet plugin that keeps Trackmania Turbo running when the window loses focus.
Without it, alt-tab (or any other window stealing focus) pauses the race, pops the attract / INSERT COIN path, and freezes rules.Now — including Openplanet Update(). Toggle from Plugins › No Auto-Pause or the Keep running when unfocused setting. Unload restores the original bytes.
Turbo-only. On other games it loads, warns, and does nothing.
License: public domain (Unlicense or CC0 1.0, at your option).
Authors: XertroV
Code/issues: https://github.com/clankercode/tm-no-auto-pause
Needs Openplanet on Trackmania Turbo.
- Grab the source (or a release
.opwhen one exists). - Dev copy:
./build.sh devstages into~/OpenplanetTurbo/Plugins/tm-no-auto-pauseand reloads over RemoteBuild:30002. - Or copy
src/*plusinfo.tomlintoDocuments/TrackmaniaTurbo/OpenplanetTurbo/Plugins/tm-no-auto-pause/.
Reload plugins from the Openplanet menu, or restart the game.
Transition only (not per frame), Openplanet.log:
No Auto-Pause: focus lost paused=no Now=1044941 dNow=+12486
No Auto-Pause: pause started focus=no Now=1032155
- focus — engine window-has-focus flag (Turbo has no
InputPort.IsFocused) - pause — cmd-buffer paused, or
rules.Nowstalled ~20 frames in a race - dNow — race-clock delta since the previous focus log
Turbo's WndProc writes unfocused flags; WinMain then SleepEx's and App_NotifyWindowFocus(0) pauses the app. This plugin patches those sites at load. Details: Openplanet research note turbo/2026-09-08-Turbo-Unfocus-Pause.md (sibling openplanet/research repo).
v0.1.3: the WM_SIZE IsIconic stub now pops the HWND (stdcall). v0.1.1–0.1.2 left it on the stack and crashed on resize.
./build.sh dev # stage + RemoteBuild reload (OpenplanetTurbo :30002)
./build.sh release # tm-no-auto-pause-<version>.op
SKIP_LSP=1 / SKIP_RELOAD=1 if needed. TURBO_PLUGINS_DIR overrides the stage path.