
World Generation Profiling in Minecraft
The Worldgen profiling mod provides powerful tools for analyzing world generation performance in Minecraft using Java Flight Recorder (JFR) technology.
Creating a JFR Report
To get started, install Fabric Loader and add the mod to the mods
folder. After launching the game, execute the /jfr start
command and move to an area with unexplored territory to generate new landscape. When finished, use /jfr stop
- the report will be saved in the .minecraft/debug/client-*.jfr
file.
Data Analysis
To view the results, you'll need the JDK Mission Control utility. Open the created file through the "File > Open File..." menu. In the "Event Browser" section, find the "Minecraft > World Generation > Feature Placement" category - here you'll find data about the placement of all game objects.
Create a separate page for this event type. Since JFR records each object placement in a chunk, it's useful to group the data for better visualization. In this view, it's easy to evaluate average and total execution times, allowing you to quickly identify the most resource-intensive elements of world generation.