Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/raphimc/immediatelyfast

Speed up immediate mode rendering in Minecraft
https://github.com/raphimc/immediatelyfast

fabric minecraft minecraft-optimization

Last synced: about 2 hours ago
JSON representation

Speed up immediate mode rendering in Minecraft

Awesome Lists containing this project

README

        



ImmediatelyFast







ImmediatelyFast is an open source Minecraft mod which improves the immediate mode rendering performance of the client.

It is designed to be lightweight and compatible with other mods.


## Optimizations
ImmediatelyFast generally optimizes all immediate mode rendering by using a custom buffer implementation which batches
draw calls and uploads data to the GPU in a more efficient way.
The following parts of the immediate mode rendering code are optimized:

- Entities
- Block entities
- Particles
- Text rendering
- GUI/HUD
- Immediate mode rendering of other mods

It also features targeted optimizations where vanilla rendering code is being changed in order to run faster.
The following parts of the rendering code are optimized with a more efficient implementation:

- Map rendering
- HUD rendering
- Text rendering

## Performance
Here are some performance comparisons of areas the mod optimizes particularly well:

If other mods are listed in the table this means that this mod also optimizes that part of the game.

Test Hardware: Ryzen 5 1600, 32GB DDR4, GTX 1060

FPS Numbers were taken from external tools (in this case MSI Afterburner) and averaged over a couple of seconds.
If you decide to test this yourself keep in mind that ImmediatelyFast can only improve FPS in a scenario where your CPU
is the bottleneck (Most likely the case if your GPU isn't ancient or you use very heavy shaders).
Slower CPUs will benefit more from this mod than really fast CPUs.

### Entity Rendering
Generally FPS should be around **2x higher** on busy servers. [Tested using IF 1.1.7 on 1.19.3]

_Tested on a spigot server with 1000 cows in a 3x3 box on screen._

| Other mods | Without ImmediatelyFast | With ImmediatelyFast | Improvement |
|-----------------|-------------------------|----------------------|-------------|
| None | 16 FPS | 60 FPS | 3.75x |
| Sodium | 21 FPS | 82 FPS | 3.90x |
| Iris and Sodium | 60 FPS | 76 FPS | 1.27x |

### Map Rendering
Generally FPS should be around **5x higher** when there are many maps on screen. [Tested using IF 1.1.1 on 1.19.3]

_Tested on a fabric server with the [Image2Map](https://modrinth.com/mod/image2map) mod and around 930 maps on screen._

| Other mods | Without ImmediatelyFast | With ImmediatelyFast | Improvement |
|-----------------|-------------------------|----------------------|-------------|
| None | 50 FPS | 310 FPS | 6.20x |
| Sodium | 47 FPS | 320 FPS | 6.81x |

### HUD Rendering
Generally FPS should be around **40% higher** in almost all scenarios. [Tested using IF 1.1.7 on 1.19.3]

_Tested on a spigot server with different HUD elements on screen (Scoreboard, Potion effect overlay, Bossbars, Filled Chat, Extra hearts, Full Hotbar)._

| Other mods | Without ImmediatelyFast | With ImmediatelyFast | Improvement |
|---------------------|-------------------------|----------------------|-------------|
| None | 250 FPS | 380 FPS | 1.52x |
| Sodium | 335 FPS | 630 FPS | 1.88x |
| Exordium and Sodium | 740 FPS | 840 FPS | 1.14x |

### Text Rendering
Generally FPS should be around **2x higher** when there are many signs or holograms around you. [Tested using IF 1.1.7 on 1.19.3]

_Tested on a spigot server with 200 signs (Filled with text) on screen._

| Other mods | Without ImmediatelyFast | With ImmediatelyFast | Improvement |
|-----------------|-------------------------|----------------------|-------------|
| None | 70 FPS | 125 FPS | 1.79x |
| Sodium | 110 FPS | 300 FPS | 2.73x |

### Block-Entity Rendering
Generally FPS should be around **20% higher** when there are many block entities around you. [Tested using IF 1.1.7 on 1.19.3]

_Tested on a spigot server with 400 chests on screen._

| Other mods | Without ImmediatelyFast | With ImmediatelyFast | Improvement |
|-----------------|-------------------------|----------------------|-------------|
| None | 170 FPS | 205 FPS | 1.20x |
| Sodium | 315 FPS | 410 FPS | 1.30x |

## Compatibility
ImmediatelyFast is structured to interfere with mods as little as possible.
It should work fine with most if not all mods and modpacks.

Known incompatibilities:

- OptiFabric / OptiFine
- Most closed source "clients" like LunarClient and LabyMod

If you encounter any issues, please report them on the [Issue Tracker](https://github.com/RaphiMC/ImmediatelyFast/issues).

## Developer API
You can read the API docs [here](docs/API_DOCS.md).

## Partners
YourKit supports open source projects with innovative and intelligent tools
for monitoring and profiling Java and .NET applications.
YourKit is the creator of [YourKit Java Profiler](https://www.yourkit.com/java/profiler/),
[YourKit .NET Profiler](https://www.yourkit.com/.net/profiler/),
and [YourKit YouMonitor](https://www.yourkit.com/youmonitor/).

[![YourKit](https://www.yourkit.com/images/yklogo.png)](https://www.yourkit.com)

---

Kinetic Hosting offers extremely affordable deals on servers with very good hardware! If you'd like to cash in on the good deals click **[here](https://billing.kinetichosting.net/aff.php?aff=47)** or use code **RaphiMC** at checkout for 25% off your first month!

![Kinetic Hosting](https://i.imgur.com/GgSxkKv.png)

---

Credits to [sydist](https://github.com/sydist) for making the logo!