qol: improve comments
ci / image (42, public) (push) Successful in 3m41s

This commit is contained in:
Overlord committed 2026-10-05 20:27:52 +02:00
1 parent 9178d36168
commit 49af536786
3 files changed
+9 -6

No files matched your search

@@ -13,7 +13,12 @@ import java.util.List;
* *
* <pre>{@code * <pre>{@code
* if (!ClientCommandHooks.onClientCommand(module, command, player, tbl)) * if (!ClientCommandHooks.onClientCommand(module, command, player, tbl))
* LuaEventManager.triggerEvent("OnClientCommand", module, command, player, tbl); * {
* LuaEventManager.triggerEvent(
* "OnClientCommand", module,
* command, player, tbl
* );
* }
* }</pre> * }</pre>
* *
* The arguments are the method's local variables of these names. * The arguments are the method's local variables of these names.
@@ -15,7 +15,6 @@ import java.util.List;
*/ */
public final class CommandListPatch extends ReturnHookPatch public final class CommandListPatch extends ReturnHookPatch
{ {
/** The whole method: {@code getstatic childrenClasses}, {@code areturn}. */
private static final Anchor.Sequence ANCHOR = new Anchor.Sequence( private static final Anchor.Sequence ANCHOR = new Anchor.Sequence(
new Anchor.Method("getSubClasses", "()[Ljava/lang/Class;"), new Anchor.Method("getSubClasses", "()[Ljava/lang/Class;"),
new Anchor.Instruction.Opcode(Opcodes.GETSTATIC), new Anchor.Instruction.Opcode(Opcodes.GETSTATIC),
@@ -15,14 +15,13 @@ import org.objectweb.asm.tree.MethodNode;
* *
* <pre>{@code * <pre>{@code
* while (GameWindow.fileSystem.hasWork()) { * while (GameWindow.fileSystem.hasWork()) {
* AssetLoadingHooks.updateAsyncTransactions(GameWindow.fileSystem); // was GameWindow.fileSystem.updateAsyncTransactions() * // GameWindow.fileSystem.updateAsyncTransactions()
* AssetLoadingHooks.updateAsyncTransactions(GameWindow.fileSystem);
* } * }
* }</pre> * }</pre>
* *
* With the feature {@code experimental_performance} the hook grows the loader pool to one thread * With the feature {@code experimental_performance} the hook grows the loader pool to one thread
* per CPU but one and parks the main thread between updates instead of spinning. Asset loading * per CPU but one and parks the main thread between updates instead of spinning. The
* of an explored world: 4.8 to 3.2 s with 8 CPUs, 9.1 to 6.3 s with 4, 13.7 to 10.1 s with 2
* (startup 15.9 to 13.7 s, 20.0 to 17.2 s, 28.4 to 25.0 s). Off, it makes the vanilla call. The
* per-frame call in {@code GameServer.main} stays. * per-frame call in {@code GameServer.main} stays.
*/ */
public final class GameServerAssetLoadingPerformancePatch extends PerformancePatch public final class GameServerAssetLoadingPerformancePatch extends PerformancePatch