Download Packet Profiler — Minecraft Mods — MetaMods

Packet Profiler

Active

Downloads

0

Last update

10 months ago
Client
Utils

Packet Profiler

This mod offers three main functions for analyzing and optimizing Minecraft performance.

Network Packet Profiling

The modification allows tracking the volume and quantity of all data packets transferred between server and client over a specified time period. This feature is particularly useful for identifying causes of high network load in modpacks, helping to significantly improve server performance.

To start analyzing transmitted packets on the server side, use the command /profileserver <time in ticks>. The obtained results are saved in the logs/profiler/ folder, where for each packet type the number of sent and received units is separately indicated, along with their total size.

Loot Generation Tracking

Using this function, you can register all loot modifiers used when creating loot. The tool shows how each of these modifiers affects the final result, which helps understand unexpected loot generation outcomes in large modpacks.

For loot analysis, execute the command /profileloot <time in ticks> and perform an action that activates the loot table (killing a mob, opening a loot chest, executing the /loot command, etc.). The report will be output to the latest.log file or console.

MCFunction Identification in Datapacks

MCFunction is a standard datapack capability that allows command execution. While this feature enables datapacks to implement complex mechanics, it can also cause significant lag. Some mods like Twilight Forest and Aether use MCFunction in minimal amounts to support their functionality, but if you've detected MCFunction-related performance issues and cannot identify the source, this feature will be extremely helpful.

MCFunction performance problems can be found in spark reports under <span>ServerFunctionManager</span>.<span>tick()</span> and <span>ServerFunctionManager</span>.<span>execute()</span> elements.

To determine which mods use MCFunction in datapacks, execute the /profiledatapack command. The system will display all namespaces containing MCFunction files together with the number of such files in each, sorting the results in descending order.

Project members
lcy0x1

lcy0x1

Created: 22 Dec 2024

ID: 94866