https://github.com/misode/worldgen-profiling
Fabric mod that adds custom JFR events to profile world generation
https://github.com/misode/worldgen-profiling
Last synced: about 1 year ago
JSON representation
Fabric mod that adds custom JFR events to profile world generation
- Host: GitHub
- URL: https://github.com/misode/worldgen-profiling
- Owner: misode
- License: mit
- Created: 2021-12-02T22:30:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-12T01:12:55.000Z (over 2 years ago)
- Last Synced: 2025-03-16T23:42:06.165Z (about 1 year ago)
- Language: Java
- Size: 160 KB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# worldgen-profiling
> Fabric mod that adds custom JFR events to profile world generation
## Creating a JFR report
1. Launch Minecraft 1.18 with [Fabric](https://fabricmc.net/use/).
2. Download the [latest release](https://github.com/misode/worldgen-profiling/releases) and add it in the `mods` folder.
3. Start by running the `/jfr start` command and generate new terrain.
4. Run `/jfr stop`. This will create a file at `.minecraft/debug/client-*.jfr`.
## Analyzing the JFR report
1. Download and install the [JDK Mission Control](https://adoptopenjdk.net/jmc) tool.
2. In Mission Control, navigate to `File > Open File...` and select the JFR report.

3. Select the `Even Browser` Page in the Outline.

4. Find the `Minecraft > World Generation > Feature Placement` event type, and select it.
5. Create a new page with just this event type.

6. Because the JFR file has an event for each feature placement per chunk, it is useful to group events.


7. In this view, you can show average and total durations. It is now really easy to see which features are the bottlenecks.

