All Mods Resource Packs Data Packs Shaders Modpacks Plugins
AnimFix

AnimFix

by FalsePattern • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

UPDATE: This mod has been merged into FalseTweaks, this mod won't receive updates anymore.

A mixin-based library to improve the horrible stuttering in heavily modded games caused by animated textures (OptiFine calls it "Animated Terrain", but this mod actually optimizes the way said animations are uploaded to the graphics card, instead of just outright turning them off and calling that a "fix").

This happens because each individual animated texture has to separately upload its contents to the GPU. Each of these uploads has a nonzero overhead, which quickly spirals out of control when faced with hundreds or even thousands of animated textures.

This mod fixes that problem by batching those animated textures into a single gigantic texture, which gets uploaded in a single step. This causes a little bit of extra video memory usage, but with modern hardware it's negligible, while the overhead of individually uploading tiny textures is not.

The batching has a user-configurable limit, see the mod's config file for more information.

Dependencies

This project WILL NOT be ported to any version beyond 1.7.10, don't even ask.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.7.10
Forge
last yr. 1
1.7.10
Forge
last yr. 1
1.7.10
Forge
last yr. 1
1.7.10
Forge
last yr. 1
1.7.10
Forge
last yr. 1
1.7.10
Forge
last yr. 1
1.7.10
Forge
last yr. 1
[2.2.0] 2.2.0 by FalsePattern on Aug 27, 2022
Download
Made texture batching double-buffered. Additionally, batching is done in parallel with game logic on a separate worker thread, effectively removing all the overhead that was caused by batching.
[2.1.0] 2.1.0 by FalsePattern on Aug 26, 2022
Download
  • Updated to FalsePatternLib 0.10
  • Improved animated texture performance a bit more
[2.0.0-hotfix1] 2.0.0 Hotfix 1 by FalsePattern on Jun 28, 2022
Download
  • Complete reimplementation of the texture stitcher, now it should be working correctly and all weird texture bugs should be gone.
  • Modernized config system
  • Updated to FalsePatternLib 0.9.x
  • Main menu config gui. Changing the batching threshold here instead of the config file will automatically apply the change without a game restart.

Additionally, the reimplemented stitcher also COMPLETELY replaces the vanilla stitcher, which makes atlas stitching a lot faster compared to whatever spaghetti code was originally doing that.


Special credit to [Sciss](https://github.com/Sciss/Packing2D) for the MIT-licensed java rectangle packing code, i took that code as a base and improved upon it to achieve this.
[2.0.0] 2.0.0 by FalsePattern on Jun 28, 2022
Download
  • Complete reimplementation of the texture stitcher, now it should be working correctly and all weird texture bugs should be gone.
  • Modernized config system
  • Updated to FalsePatternLib 0.9.x
  • Main menu config gui. Changing the batching threshold here instead of the config file will automatically apply the change without a game restart.

Additionally, the reimplemented stitcher also COMPLETELY replaces the vanilla stitcher, which makes atlas stitching a lot faster compared to whatever spaghetti code was originally doing that.


Special credit to [Sciss](https://github.com/Sciss/Packing2D) for the MIT-licensed java rectangle packing code, i took that code as a base and improved upon it to achieve this.
[1.4.1] 1.4.1 by FalsePattern on Jun 12, 2022
Download
Fixed a bug that caused animated textures to sometimes disappear.
[1.4.0] 1.4.0 by FalsePattern on May 21, 2022
Download
Initial modrinth release. See the github repo for more info.
AnimFix Icon
Download AnimFix
Select game version
Select platform