Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Ixeris

Ixeris

Off-thread event polling

5,779
36
Optimization

Compatibility

Minecraft: Java Edition

1.21.x
1.20.x
1.19.4

Platforms

Fabric

Supported environments

Client-side

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source

Creators

decce6
decce6 Member

Details

Licensed LGPL-3.0-only
Published last month
Updated yesterday
DescriptionChangelogVersions

Ixeris

Overview

Ixeris is a mod that optimizes the client performance by offloading event polling to a separate thread, making available more CPU time for the render thread.

You might have noticed a visible drop of the FPS when you move your mouse. Part of the FPS drop is because the game does have additional jobs to do when you turn the camera, like calculating the visibility of chunks. However, because of the inefficiency in the native code that polls events and the JNI upcall overhead, some of the CPU time, otherwize can be utilized for rendering, are unnecessarily spent on the call to glfwPollEvents(). This is most noticeable on Windows, especially when your mouse has a high polling rate.

This mod resolves this issue by calling glfwPollEvents() on the main thread, which means event polling no longer blocks the render thread. This way, the render thread can keep working while GLFW retrieves events from the operating system. FPS improvements while standing still are unlikely, but you will have a much smoother framerate when turning the camera.

Benchmarks

These tests are done after the world has fully loaded and the framerate has stabilized. The mouse has a polling rate of 1000Hz. F3+Esc is pressed to make sure the framerate change when moving the mouse is the result of event polling, not any other calculation.

The "Idle FPS" column shows the FPS when not moving the mouse. The next two columns show the FPS when moving the mouse quickly over the game window, without Ixeris and with Ixeris, respectively. The last column compares the FPS when Ixeris is and is not installed.

Idle FPS Without Ixeris With Ixeris Improvement
Windows 233 FPS 133 FPS 165 FPS 1.24x
Linux (X11) 358 FPS 320 FPS 355 FPS 1.11x
Linux (Wayland) 364 FPS 289 FPS 298 FPS 1.03x

Technical Details

Thread Satefy

In its current state Ixeris should not break thread safety. Callbacks registered with glfwSet*Callback are executed on the render thread. Calls to GLFW functions that are required to be called on the main thread, if made on other threads, are dispatched to the main thread. These calls may immediately return if they can be safely delayed, or otherwise may block the caller until the call is finished.

As of version 3.1.0, the requirements of thread safety in the GLFW documentation are strictly obeyed.

Glossary

  • The main thread is the thread that the game is started on. Most GLFW functions are required to be called on this thread, and it is responsible for event polling.
  • The render thread does everything the game normally does, except event polling.

These two terms are synonymous in vanilla Minecraft.

Modrinth is open source.

main@81b0922

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.