Romaniabyddha/terarria-zoom-patcher
Terraria zoom patcher. Useful for widescreen / ultrawide monitors
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
Terraria Zoom Patcher
Terraria calculates minimum zoom as max(1.0, screenWidth/1920, screenHeight/1200). On ultrawide (3440x1440), this means 1.79x minimum - the slider shows "100%" but you're actually at 179%, seeing the same world as a 1920x1200 monitor. This patcher removes that limit.
Terraria 1.4.5.6 has a hidden SupportWideScreen flag that skips the forced zoom-in and raises the render target cap. ReLogic looks to be planning to expose this natively, so the need for this patcher should be temporary.
Requirements
Python available in PATH
Usage
python patcher.py <PATH_TO_TERRARIA_EXE>
For displays exceeding 4096 in any dimension (e.g. 5120x1440 super ultrawide, 7680x4320 8K):
python patcher.py <PATH_TO_TERRARIA_EXE> --8k
[!NOTE] Windows users: check if python is installed with
python --version. If not, install withwinget install Python.
One-liner (Linux)
curl -sSL https://raw.githubusercontent.com/byddha/terarria-zoom-patcher/refs/heads/main/patcher.py | python - <PATH_TO_TERRARIA_EXE>
One-liner (Windows PowerShell)
powershell -NoProfile -ExecutionPolicy ByPass -Command "& { (Invoke-WebRequest -Uri https://raw.githubusercontent.com/byddha/terarria-zoom-patcher/refs/heads/main/patcher.py).Content | python - '<PATH_TO_TERRARIA_EXE>' }"
Backup
The script creates Terraria.exe.bak before patching. To restore, delete Terraria.exe and rename Terraria.exe.bak back.
What it patches
Flips SupportWideScreen from false to true in Main's static initializer. With this enabled, the game:
- Sets
ForcedMinimumZoom = 1.0- removes forced zoom-in - Raises render target cap from 1920 to 4096 (on HiDef profile) - fixes culling at low zoom
With --8k, additionally patches the 4096 caps to 8192:
maxScreenW,maxScreenH,_renderTargetMaxSizeinSetGraphicsProfileInternal- allows window/backbuffer sizes above 4096- Render target dimension cap in
InitTargets- allows world rendering above 4096
Screenshots (3440x1440)
Pre-fix (zoom "100%" / actual 177%):
Post-fix (zoom 100%):
Post-fix (zoom 125%):
Post-fix (zoom 150%):
Similar Projects
Discover other similar projects and AI models.
A Python library and command-line tool designed for working with Terraria 1.4.5.6 (.plr) player files.
Plugins to make or improve widescreen resolutions support in games, add more features and fix bugs.
Collection of memory patches that aim to fix resolution, aspect ratio, FOV, HUD and other things in old PC games.
Resolution-aware interface patch for Star Wars: Knights of the Old Republic (2003): fonts, layouts, inventory and area map sized for 66 built-in resolutions from 800x600 to 15360x8640 and any other from 4:3 to 32:9, with native controller support. Windows, macOS and Linux (Proton).
Python tool for converting files and office documents to Markdown.
:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.
A mod to make and play Terraria mods. Supports Terraria 1.4 (and earlier) installations