# Optimize Solo Performance

If you experience **rollbacks, freezes, or poor performance** when playing Cobblemon Realms solo, adjusting your JVM arguments in the CurseForge launcher can greatly improve stability and smoothness.

***

## 💡 Recommended JVM Arguments

-Xms10G -Xmx10G -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:InitiatingHeapOccupancyPercent=30 -XX:+ExplicitGCInvokesConcurrent

***

## 🛠 How to Apply in CurseForge

1. Open the **CurseForge app**.
2. Click the **gear icon** in the bottom-left corner (**Settings**).
3. Go to **Game Specific → Minecraft**.
4. Scroll to **Java Settings**.
5. **Disable** “Use System Memory Settings”.
6. Set the **Memory slider** to at least **8–10 GB** max !
7. In **Additional Java Arguments**, paste the flags exactly as shown above (separated by spaces).
8. Save and **restart the modpack**.

> ⚠️ CurseForge automatically adds its own flags, but the **last** `-Xms` / `-Xmx` values entered will take priority.

***

## ✅ Summary

By combining **Java 21** with these optimized JVM settings, you can fix most solo performance issues in Cobblemon Realms—especially those related to memory cleanup, lag spikes, and rollback glitches.\
Enjoy smoother, more stable gameplay! 🧭


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://our-story-network.gitbook.io/cr-wiki/cr-en/settings/optimize-solo-performance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
