Ixeris

Buffered raw input and threaded event polling

Редакция NLZONE · 3 мин чтения · 5 просмотров
Ixeris
Скачать Ixeris1.16.5 – 26.3-snapshot-8 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Buffered raw input and threaded event polling

  • Тип: мод
  • Загрузчик: fabric, forge, neoforge, quilt
  • Версии Minecraft: 1.16.5 – 26.3-snapshot-8
  • Скачиваний на Modrinth: 16 687 693

Подробно

Ixeris is a mod that optimizes event polling to improve client performance.

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 event polling. This is most noticeable on Windows, especially when your mouse has a high polling rate.

Ixeris resolves the issue mainly through two measures:

- Threaded Event Polling. Instead of performing rendering and event polling on the same thread, Ixeris performs event polling on the main thread and kicks rendering to a separate render thread. - Buffered Raw Input (Windows-only). Switches the method used for input polling from the inefficient GetRawInputData (one call for each input event) to GetRawInputBuffer which allows reading raw input messages in batches (one call for all events). Additionally, performing this work in Java code has allowed us to eliminate the JNI upcall overhead.

These tests are done after the world has fully loaded and the framerate has stabilized.

This test compares the performance when the mouse is grabbed, i.e. cursor invisible. This test is performed in a superflat world with no entities.

This test is done on Windows, where Ixeris uses buffered raw input by default to improve performance. The "Ixeris, Non-buffered" column shows the FPS with that option disabled.

| Polling Rate | Without Ixeris | Ixeris, Non-buffered | Ixeris, Buffered | |--------------|----------------|----------------------|------------------| | 8000 Hz | 12 FPS | 83 FPS (6.9x) | 121 FPS (10.1x) | | 2000 Hz | 76 FPS | 114 FPS (1.50x) | 135 FPS (1.78x) | | 500 Hz | 134 FPS | 145 FPS (1.08x) | 151 FPS (1.13x) |

This test compares the performance when the mouse is not grabbed, i.e. cursor visible, as in F3+Esc pause screen. In this case, raw input is never used as the game needs to know the actual cursor position, not the raw relative movement. The polling rate is 1000Hz.

The "Idle FPS" column shows the FPS when not moving the mouse, and the next two columns show the FPS when moving the mouse quickly over the game window, without Ixeris and with Ixeris, respectively. Note that this test was performed at the initial release of Ixeris, and many improv

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также