Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
/ AnimFix Public archive

Fixes the extreme clientside stuttering caused by animated modded textures

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING
LGPL-3.0
COPYING.LESSER
Notifications You must be signed in to change notification settings

FalsePattern/AnimFix

2022/09/23 UPDATE:

All of this mod's functionality has been merged into FalseTweaks.

This repository will not receive any updates from this point on.

Old readme

AnimFix

A small mod to remove the stuttering caused by the large amount of animated textures in heavily modded instances.

This is achieved by replacing the vanilla one-by-one texture uploading system with a batch-based system.

Every time an animated texture tries to upload, it gets recorded in a buffer, which is then processed by a second thread running parallel to the client thread.

The second part of the optimization is deferred texture updates, where every single animated texture is delayed by 1 tick to achieve double buffering. This way, the worker thread can process the textures while the game is still running, and the only lag that happens is a single texture update per atlas per tick, instead of hundreds or thousands per tick.

Dependencies