Total War: Warhammer III: Best preferences.script for 4K UI

The objective is to achieve a crisp 200% scaling ratio ($S_{ui}$) while maintaining a 1:1 pixel map for fonts and icons.

Setup & File Navigation

  1. Directory Path: Press Win + R, type %APPDATA%\The Creative Assembly\Warhammer3\scripts\, and hit Enter.
  2. The Target: Open preferences.script.txt with Notepad++.
  3. Critical Safety: Before editing, set the game to Windowed Mode in the in-game menu. Manual UI scaling often causes crashes in exclusive Fullscreen mode due to viewport mismatches.

Optimized “4K Clarity” Configuration Table

Parameter (preferences.script)Recommended ValueTechnical Purpose
ui_scale2.0The 4K Standard. Brute-forces a 200% scale for legibility.
ui_unit_scale1.0Prevents unit cards from overlapping in the 4K viewport.
gfx_aafxaaThe Blur Fix. Removes the TAA “ghosting” from UI elements.
gfx_sharpeningtrueEnhances edge definition of scaled fonts ($E_{sharp}$).
x_res / y_res3840 / 2160Ensures the engine anchors the UI to a 4K coordinate grid.

HowTo: Engineering the UI Clarity Pipeline

Follow these GameEngineer.net technical steps to stabilize your 4K simulation:

  1. The “UI Scale” Brute-Force: In the script, search for ui_scale. If you are on a 27-inch 4K monitor, set this to 1.5. For 32-inch or larger, use 2.0. In 2026, the engine sometimes caps the slider at 100%; editing the script directly is the only way to bypass this limit for Ultra-HD displays ($R_{uhd}$).
  2. Neutralizing TAA Smear: The TAA (Temporal Anti-Aliasing) implementation in Warhammer III applies a “jitter” that affects the UI layer. By switching gfx_aa to fxaa in the script, you stop the engine from processing the UI icons through the temporal filter, resulting in significantly sharper text.
  3. Coordinate Alignment ($X, Y$): Ensure x_pos and y_pos are set to 0. If these values are skewed, your 4K UI might “drift” off-center, making buttons unclickable because the visual asset and the hit-box are no longer aligned ($A_{hitbox}$).
  4. DPI Scaling Override: If the UI still looks blurry, right-click Warhammer3.exe > Properties > Compatibility > Change high DPI settings. Check “Override high DPI scaling” and select Application. This forces Windows to stop trying to “help” the game scale its pixels.
  5. The “Windowed” Stability Hack: Total War’s engine handles high UI scales much better in Borderless Windowed mode. In the script, ensure gfx_fullscreen is false and gfx_borderless is true. This allows the Windows DWM (Desktop Window Manager) to handle the 4K buffer, which is more stable for UI overlays.

Technical Explanation: UI Vectoring and Pixel Mapping

Warhammer III’s UI is not fully vector-based; it uses “Atlas” textures. At 4K, a 100% scale icon ($1 \times 1$) must be mapped to a $2 \times 2$ pixel grid.

$$Scaling\_Ratio = \frac{Target\_Resolution}{Base\_Resolution}$$

By forcing ui_scale 2.0, you are telling the engine to use a four-pixel block for every single UI coordinate. When combined with FXAA, which lacks the temporal history buffer of TAA, the engine avoids the “Ghosting” effect ($G_{ghost}$) that occurs when the UI tries to “re-project” itself between frames.

Leave a Comment