Redirector

Redirector

Mod

Redirect Enum#values() allocation in codes and improve game performance.

Client or server Optimization

12.9k downloads
19 followers
Created4 months ago
Updated2 months ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

This mod is for 1.16.5 +, If you are looking for 1.12.2-, go Redirector [Retro]

We have changed our name from redirector to redirector, because the redirection targets are not only about directions but all enum values now.

Preface

In the well-known optimization mods for Minecraft, Sodium, Lithium or Phosphor, there is a common optimization concept: replacing references to element values in enum classes with static final field values references.

This technique aims to enhance performance by improving access speed and reducing unnecessary computations when frequently accessing the constants.

Introduction

Redirector is the complete implementation of this concept to reduce the required memory of the game.

Note

Redirector should work on both the client and server and can be installed on servers without requiring clients to also have the mod.

Issue Report

1.16.5+ : https://github.com/MCTeamPotato/Kasualix-Issue-Tracker

1.12.2-: https://github.com/Ecdcaeb/Redirectionor/issues

Misc

image

External resources



Project members

Kasualix

Member


Technical information

Client side
optional
Server side
optional
Project ID