Texture Scaler

A high-definition texture compression optimization mod compatible with low-end graphics cards.
Back to Files

texturescaler-1.0.1.jar

File nametexturescaler-1.0.1.jar
Uploader
HoLuc1078HoLuc1078
Uploaded
Sep 17, 2026
Downloads
28
Size
42.9 KB
Mod Loaders
Forge
File ID
8902221
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:texture-scaler-1699432:8902221")

Learn more about Curse Maven

What's new

Texture Scaler 1.0.1 — initial public release.

WHAT IT FIXES

  • Block atlas stitching failures on GPUs whose maximum texture size is small: java.lang.RuntimeException: Requested atlas size 32768 exceeds maximum 16384 net.minecraft.client.renderer.texture.StitcherException This happens on AMD RX 580 and most Intel integrated GPUs (GL_MAX_TEXTURE_SIZE = 16384, older iGPUs 8192) when a resource pack or another mod ships block or item textures of 1024-4096 px.
  • The knock-on damage of a failed atlas: font textures, including every CJK glyph, never load, so all text renders as empty boxes, and the game usually crashes during or shortly after loading.
  • The game no longer needs the offending textures to be removed manually: oversized textures are downscaled automatically and the resource reload completes.

HOW IT WORKS

  • The mod reads GL_MAX_TEXTURE_SIZE at startup and installs a runtime overlay resource pack that serves proportionally downscaled copies of only the textures that would overflow the atlas.
  • The block atlas is populated by enumerating texture directories, so the mod hooks that enumeration and serves the downscaled versions at exactly that point.
  • Emitted entries are filtered per directory source, so no path can be handed to a source it does not belong to (which would abort the resource reload with a StringIndexOutOfBoundsException).
  • Nothing is modified on disk: no mod jar, no resource pack and no texture file is edited or replaced. The overlay pack simply has a higher priority than everything else.

FEATURES

  • Automatic threshold: cap = clamp(GL_MAX_TEXTURE_SIZE / 32, 256, 2048) 32768 -> 1024 | 16384 -> 512 | 8192 -> 256. Overridable in config/texturescaler-client.toml.
  • Proportional downscale with bilinear filtering; aspect ratio preserved.
  • Blockbench model UV guard: textures referenced by absolute-pixel UVs (texture_size) are skipped, so models that rely on pixel-exact UVs still render correctly.
  • Memory and on-disk caching of downscaled results (key = texture path + original size + cap), so the work is not repeated on every reload or launch.
  • skipNamespaces (minecraft and this mod are left untouched by default) and extraTextureDirs options.
  • Per-reload statistics in the log - consulted / scaled / small / missing / failed - to make troubleshooting straightforward.
  • Client-side only. Nothing needs to be installed on the server.

REQUIREMENTS

  • Minecraft 1.20.1, Forge 47+, Java 17. Client-side only.

VERIFIED ON

  • A heavily modded 1.20.1 pack on an Intel integrated GPU with GL_MAX_TEXTURE_SIZE = 16384, which previously failed to build its block atlas because of 4096 px textures: the atlas now stitches, Chinese text renders normally, and no atlas or font errors remain in the log.

NOTES

  • The automatic cap on a GPU with a large limit (32768, e.g. modern NVIDIA) is 1024, so 2048/4096 px textures are still downscaled there. If you would rather keep full quality, raise capOverride (for example 2048) or set enabled = false.
  • Cache location: .minecraft/texturescaler/cache/. Delete that folder at any time to force a rebuild; the next launch will be slower while it is repopulated.
  • Bug reports are welcome - please attach latest.log and your GPU model.

(AI-translated)

This mod has no additional files