File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed
resources/assets/vulkanmod/lang Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ public class Config {
2828 public int builderThreads = 0 ;
2929
3030 public boolean backFaceCulling = true ;
31+ public boolean textureAnimations = true ;
3132
3233 public void write () {
3334
Original file line number Diff line number Diff line change @@ -310,6 +310,13 @@ public static OptionBlock[] getOtherOpts() {
310310 Renderer .scheduleSwapChainUpdate ();
311311 }, () -> config .frameQueueSize )
312312 .setTooltip (Component .translatable ("vulkanmod.options.frameQueue.tooltip" )),
313+ new SwitchOption (Component .translatable ("vulkanmod.options.textureAnimations" ),
314+ value -> {
315+ config .textureAnimations = value ;
316+ },
317+ () -> config .textureAnimations ),
318+ }),
319+ new OptionBlock ("" , new Option []{
313320 new CyclingOption <>(Component .translatable ("vulkanmod.options.deviceSelector" ),
314321 IntStream .range (-1 , DeviceManager .suitableDevices .size ()).boxed ()
315322 .toArray (Integer []::new ),
@@ -321,10 +328,8 @@ public static OptionBlock[] getOtherOpts() {
321328 value ).deviceName )
322329 )
323330 .setTooltip (Component .nullToEmpty ("%s: %s" .formatted (
324- Component .translatable ("vulkanmod.options.deviceSelector.tooltip" ).getString (),
325- DeviceManager .device .deviceName
326- ))
327- )
331+ Component .translatable ("vulkanmod.options.deviceSelector.tooltip" ).getString (),
332+ DeviceManager .device .deviceName )))
328333 })
329334 };
330335
Original file line number Diff line number Diff line change 22
33import net .minecraft .client .renderer .texture .TextureManager ;
44import net .minecraft .client .renderer .texture .Tickable ;
5+ import net .vulkanmod .Initializer ;
56import net .vulkanmod .render .texture .SpriteUpdateUtil ;
67import net .vulkanmod .vulkan .Renderer ;
78import org .spongepowered .asm .mixin .Final ;
@@ -21,7 +22,7 @@ public abstract class MTextureManager {
2122 */
2223 @ Overwrite
2324 public void tick () {
24- if (Renderer .skipRendering )
25+ if (Renderer .skipRendering || ! Initializer . CONFIG . textureAnimations )
2526 return ;
2627
2728 //Debug D
Original file line number Diff line number Diff line change 4444 "vulkanmod.options.windowMode.windowedFullscreen" : " Windowed Fullscreen" ,
4545
4646 "vulkanmod.options.builderThreads" : " Chunk Builder Threads" ,
47- "vulkanmod.options.builderThreads.auto" : " Auto"
47+ "vulkanmod.options.builderThreads.auto" : " Auto" ,
48+
49+ "vulkanmod.options.textureAnimations" : " Texture Animations"
4850}
You can’t perform that action at this time.
0 commit comments