Performance Improvement: high-requency listener (#4402)

* Adding new 'high-frequency-listener' setting

* Moving high-frequency event listener in new class

* Small typo
This commit is contained in:
RedstoneFuture
2024-05-13 21:20:21 +02:00
committed by GitHub
parent c8e8eb919f
commit f88ea94bfe
4 changed files with 210 additions and 121 deletions

View File

@ -43,6 +43,11 @@ public class Settings extends Config {
"Leave it off if you don't need it, it can spam your console."})
public static boolean DEBUG = true;
@Comment({"The activity of high-frequency event listener can be deactivated here to improve the server performance. ",
"Affected settings: 'redstone' settings here below. Affected flags: 'disable-physics', 'redstone'. ",
"Only deactivate this setting if you do not need any of the mentioned settings or flags."})
public static boolean HIGH_FREQUENCY_LISTENER = true;
@Create // This value will be generated automatically
public static ConfigBlock<Auto_Clear> AUTO_CLEAR = null;
// A ConfigBlock is a section that can have multiple instances e.g. multiple expiry tasks