WORK IN PROGRESS: MANY FEATURES MAY BE BROKEN - proof of concept, tested only against a fake Steam library in a Linux sandbox so far.
Put Unreal Engine 4/5 games on a performance diet. One click writes a vetted,
reversible block of Engine.ini tweaks - cheaper Lumen lighting, Virtual
Shadow Maps, Nanite, volumetric fog, Niagara particles, upscaling and
shader-stutter settings - so games that shipped with the engine's desktop
defaults have a fighting chance on a Steam Deck, ROG Ally or an old desktop
GPU.
Copyright Matthew Armstrong. Licensed under the
PolyForm Noncommercial License 1.0.0 - source-available,
free for non-commercial use, no warranty and no liability. Not affiliated
with Epic Games or Valve. Editing config files is at your own risk; online
games with anti-cheat may object to it.
Project started 2026-11-03 11:22. Version 0.5.0-wip.
Why
Most UE5 games ship with Lumen, Virtual Shadow Maps, Nanite and TSR at the
Epic scalability bucket and never re-tune the Low/Medium buckets for weak
hardware, so "Low" is still Lumen-plus-VSM. The engine reads the per-user
Engine.ini after the game's own config, which is why every Steam Deck
guide for S.T.A.L.K.E.R. 2, Oblivion Remastered, Silent Hill f or Expedition
33 ends with a pasted block of console variables. Unreal Diet writes that
block for you, with every value anchored to what the engine's own
BaseScalability.ini would set at Low / Medium / High, keeps a pristine
backup, and can take it all out again.
The research behind the numbers - why launch-day Stalker 2 was so heavy,
what the well-behaved UE5 games (Satisfactory, The Talos Principle 2,
RoboCop: Rogue City, Tekken 8, Fortnite on Switch) do differently, and
what each console variable costs you visually - is in
docs/RESEARCH.md. What the app reads and writes is in
HOW_IT_WORKS.md.
Use - the web window
The window is a small page served by Unreal Diet itself on your own computer (127.0.0.1 only, locked with a random key, so other websites cannot reach it). It looks the same as This PC for Linux and follows your light / dark theme.
1. Your games. Every Unreal Engine 4/5 game in every Steam library, with its Steam artwork. The chip says what it has: the plan applied, untouched, or run the game once (Unreal only creates Engine.ini on first launch). Filter and search at the top; Add folder for games outside Steam. |
![]() |
| 2. Pick a plan. Click a game. Handheld Lite (Deck / Ally at 15 W), Handheld (25 W), Handheld Quality (Ally X / Legion Go S / docked Deck), Balanced desktop, Stutter fix only, or Custom. Game-specific advice shows in blue at the top. | ![]() |
| 3. Fine-tune (optional). Twelve modules, each with what the choice costs you visually. Changing one turns the plan into Custom. If two choices fight, the app fixes it and says so in yellow (red for warnings); smaller notes fold under Notes. Show what will be written displays the exact block. | ![]() |
| 4. Apply. One confirmation, then the block is written and the card updates. Remove tweaks takes it out again; Restore original backup puts back the file exactly as it was before the first edit. Tick read-only for games that reset the file on exit. | ![]() |
Dark theme and phone-width layout:
The first start shows a disclaimer that must be ticked once. The window stops by itself 15 minutes after its tab is closed.
Steam Game Mode (Bazzite / SteamOS)
Install once, from Desktop Mode: double-click UnrealDiet-Bazzite.sh. A terminal shows each step:
- Copies the app into your home folder (works on read-only systems).
- Finds a browser to show the page full screen - Firefox (Bazzite includes it), or Chrome / Chromium / Brave / Edge.
- Steam has to close for a few seconds while the Unreal Diet tile is added with its artwork - the installer asks, closes Steam, writes the tile, reads it back and starts Steam again.
- Checks every piece and ends with
RESULT: OK. In Game Mode: Library → Non-Steam → Unreal Diet.
In Game Mode the same page opens full screen with bigger controls and works with the controller:
| D-pad / left stick move between cards and buttons, A choose, B back (on the main screen: back to Steam), X read-only, Y rescan. On a drop-down, left/right (or LB/RB) change the level. Touch works too. | ![]() |
| In the tuner everything is in one column - plans, then Check and apply, then the fine-tune list - so down always leads to the Apply button. Back to Steam (top right, or B) closes the page and the program together. | ![]() |
The very first button press after the page opens may only "wake up" the controller (browsers hide gamepads until one is pressed) - press it again.
No browser installed? The installer falls back to the older pygame screen (downloads pygame-ce once, ~12 MB). UnrealDiet-Bazzite.sh --with-pygame picks it on purpose.
Update: run the newer UnrealDiet-Bazzite.sh again. Check: UnrealDiet-Bazzite.sh --check. Remove: UnrealDiet-Bazzite.sh --uninstall (takes the tile, menu entry and installed copy away; tweaks already written into games stay until you Remove tweaks first).
What it writes where is in HOW_IT_WORKS.md.
The classic window (tkinter)
Still there: Windows and Mac open it by default; on Linux use UnrealDiet-Linux.sh --tk. It needs tkinter, which immutable systems (Bazzite, SteamOS, Silverblue) do not have - the companion app Tk Anywhere installs a complete Python with Tk into your home folder, and --tk finds it by itself.
Command line
python3 src/main.py --list
python3 src/main.py --apply "STALKER 2" --plan handheld --module lighting=lumen_off --read-only
python3 src/main.py --remove "STALKER 2"
python3 src/main.py --snippet --plan lite > my-tweaks.ini
python3 src/main.py --version
What the plans change
| Module | Handheld Lite | Handheld | Balanced desktop (Handheld Quality is Handheld with Lumen GI + SSR, TSR 77 %, Image 3) |
|---|---|---|---|
| Lighting | Lumen off → SSGI + SSR, GTAO | cheaper Lumen (engine Medium-style probes, no RT) | cheaper Lumen |
| Shadows | VSM off → 2 cascades @ 1024 | cheaper VSM (half-res pages, 4 SMRT rays) | cheaper VSM |
| Geometry | Nanite 2 px/edge, view distance 0.7 | same | keep |
| Foliage | half density | half density | keep |
| Particles | engine Medium: no particle lights | same | same |
| Fog & clouds | volumetric fog off | engine High grid, capped clouds | same |
| Post | no motion blur / DoF / flares / grain | same | same |
| Upscaling | TAA at 67 % + sharpen | TSR at 67 %, Low history | keep |
| Frame cap | 30 fps + dynamic res | 40 fps + dynamic res | keep |
| Image | 1 Performance | 2 Balanced | 3 Quality |
| Textures | 2 GB pool, mip +1, 8x aniso | same | 3 GB pool, 16x aniso |
| Stutter | PSO precache at startup | same | same |
Full cvar tables with engine-bucket values and visual cost are in
docs/RESEARCH.md.
Cheap image quality: the performance → quality ladder
The Image module is ordered cheapest first. Pick by what you are holding:
| Level | What it does | Works best on | Visual cost |
|---|---|---|---|
| 1 Performance | VRS shades anything flat at 2x2 (edge threshold 0.35, looser than the engine default); strand hair → hair cards; half-res GTAO | Steam Deck LCD/OLED, ROG Ally at 15 W, any 800p panel | Faint softening on gentle gradients (sky, plain walls); hair looks "painted" up close |
| 2 Balanced | VRS at the engine's own thresholds (0.2 / 0.1); hair cards; half-res GTAO | Ally / Ally X at 25 W, Legion Go, Deck docked at 1080p | Normally invisible at 800p-1080p |
| 3 Quality | Conservative VRS (0.1 / 0.05, only truly flat pixels); strand hair kept; full-res GTAO with spatial + temporal filter | Ally X at 30 W, Legion Go S, entry desktop GPUs (1660 / 6600 / A750) | 1-3 % slower than Balanced; nothing visible |
| 4 Max | VRS off; strand hair; full GTAO | A 6 GB+ desktop card that is CPU-bound anyway | None - this is a quality floor, not a saving |
VRS needs DX12 (Proton routes it through vkd3d) on RDNA2+ (Deck, Ally, Legion), Turing+ or Arc; on DX11 or Vulkan-native games the lines are ignored. GTAO only matters when the Lighting module has Lumen off - with Lumen on, Lumen does its own occlusion.
Plans use it like this: Handheld Lite → Performance, Handheld → Balanced, Handheld Quality (new: Ally X at 30 W / Legion Go S / docked Deck, Lumen GI kept with SSR reflections, TSR 77 %) → Quality, Balanced desktop → Quality.
How the quality and performance modules interact
Some modules undo each other. The app checks every combination and either fixes it in the written block (marked Interaction fix: in the block header and Fixed: under the module list) or warns:
| Combination | What would go wrong | What the app does |
|---|---|---|
| Lighting Lumen OFF or GI + SSR with Effects Low | engine Low effects switch SSR off, so you would have no reflections at all | holds sg.EffectsQuality at 1 (the particle cuts still apply) - fixed
|
| Lighting No dynamic GI with Image Keep | no ambient occlusion anywhere | turns GTAO on - fixed |
| Image with VRS + Upscaling TAA 50 % | half-rate shading on a half-res frame looks blocky | VRS thresholds made conservative - fixed, suggests 67 % or Image Max |
| Fog High grid with Effects Low | effects Low shrinks the translucency lighting volume to 24, which makes the kept fog blocky | holds it at 32 - fixed |
| Frame cap (dynamic res) with any fixed resolution | the game's dynamic res floats, so your 67 % is a starting point not a fixed value | dynamic-res range set to -10 / +20 around your choice - note |
| Image Quality/Max (strand hair) on a Lite plan | hair alone can cost 2-4 ms in Stalker 2 / Wukong | warning to drop to Balanced if hair scenes stutter |
| Nanite OFF with VSM still on | VSM loses what it caches | warning to pair with VSM OFF |
| Any Image level with Lumen on | GTAO lines are ignored | note, harmless |
| Any sharpen + the OvalSharpen extra | centre sharpened twice | note: set the extra's CentreStrength to 0 |
The checks live in presets.check_interactions and tests/test_unreal_diet.py proves every built-in plan triggers none of the fixes or warnings.
Foveation and other cheap image tricks
Oval foveated rendering like OvalFFR is not possible from Engine.ini on a
flat screen (one resolution per frame; the engine's foveation cvars need a
headset). The nearest real saving is contrast-adaptive VRS in the Image
module. The cosmetic half - sharpen the periphery, leave the centre alone -
ships in extras/ as a ReShade / vkBasalt shader, with
notes on frame generation (lsfg-vk, Lossless Scaling) and Gamescope scaling.
Source code: The-Dorkknight/unreal-diet on GitHub











Top comments (0)