This commit is contained in:
1 parent
9178d36168
commit
49af536786
4 files changed
+10
-7
No files matched your search
+6
-1
@@ -13,7 +13,12 @@ import java.util.List;
|
||||
*
|
||||
* <pre>{@code
|
||||
* if (!ClientCommandHooks.onClientCommand(module, command, player, tbl))
|
||||
* LuaEventManager.triggerEvent("OnClientCommand", module, command, player, tbl);
|
||||
* {
|
||||
* LuaEventManager.triggerEvent(
|
||||
* "OnClientCommand", module,
|
||||
* command, player, tbl
|
||||
* );
|
||||
* }
|
||||
* }</pre>
|
||||
*
|
||||
* The arguments are the method's local variables of these names.
|
||||
|
||||
-1
@@ -15,7 +15,6 @@ import java.util.List;
|
||||
*/
|
||||
public final class CommandListPatch extends ReturnHookPatch
|
||||
{
|
||||
/** The whole method: {@code getstatic childrenClasses}, {@code areturn}. */
|
||||
private static final Anchor.Sequence ANCHOR = new Anchor.Sequence(
|
||||
new Anchor.Method("getSubClasses", "()[Ljava/lang/Class;"),
|
||||
new Anchor.Instruction.Opcode(Opcodes.GETSTATIC),
|
||||
|
||||
+3
-4
@@ -15,14 +15,13 @@ import org.objectweb.asm.tree.MethodNode;
|
||||
*
|
||||
* <pre>{@code
|
||||
* while (GameWindow.fileSystem.hasWork()) {
|
||||
* AssetLoadingHooks.updateAsyncTransactions(GameWindow.fileSystem); // was GameWindow.fileSystem.updateAsyncTransactions()
|
||||
* // GameWindow.fileSystem.updateAsyncTransactions()
|
||||
* AssetLoadingHooks.updateAsyncTransactions(GameWindow.fileSystem);
|
||||
* }
|
||||
* }</pre>
|
||||
*
|
||||
* 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
|
||||
* 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 CPU but one and parks the main thread between updates instead of spinning. The
|
||||
* per-frame call in {@code GameServer.main} stays.
|
||||
*/
|
||||
public final class GameServerAssetLoadingPerformancePatch extends PerformancePatch
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import java.util.List;
|
||||
*
|
||||
* <pre>{@code
|
||||
* File testDir = ChunkMapFilenames.instance.getDir(Core.gameSaveWorld);
|
||||
* if (!testDir.exists()) { // removed
|
||||
* if (!testDir.exists()) { // removed
|
||||
* testDir.mkdir();
|
||||
* }
|
||||
* }</pre>
|
||||
|
||||
Reference in new issue
Block a user