> For the complete documentation index, see [llms.txt](https://clarkuk.gitbook.io/origination-1.19.2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clarkuk.gitbook.io/origination-1.19.2/information/installation/performance-tweaks.md).

# Performance Tweaks

A guide on how to optimise performance for your Origination instance.

{% hint style="warning" %}
This section is a work-in-progress. More tweaks will be added as time goes on.
{% endhint %}

The following steps are a list of potential methods you can take to improve your performance and load times for the client. These steps are ideal for those both struggling to run the instance, and for those who want to simply improve the experience.

### <mark style="color:yellow;">1. Adding Aikar's Flags as Launch Parameters.</mark>

Using Aikar's Flags, an optimimised set of flags for running Minecraft, you can potentially increase your performance. The modified set of flags I recommend for this pack are the following:

```
-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true
```

These can be added in the Java settings of the instance or launcher you are using. I have removed the flags that define the .jar file and min/max memory as most launchers should sort this anyway.

### <mark style="color:yellow;">2. Setting the priority of the instance to High.</mark>

Enter your Task Manager (CTRL + Shift + ESC), navigate to the "Details" tab, and right-click on the instance while it is open (the name of the instance will be **javaw\.exe**). Hover over priority, and select "High". This will instruct your system to prioritise allocating resources to this application, which can improve performance. Do be aware this can be sometimes detrimental to other applications running in the background.

### <mark style="color:yellow;">3. Using a launcher other than CurseForge.</mark>

Although CurseForge is arguably the easiest method to get set-up with Origination, you may find performance issues due to Curse insisting that Overwolf must always run in the background while running modpacks through their launcher. Overwolf uses a small amount of RAM from experience (between 200MB-1GB at a time), so using a different launcher may help to free up some memory on low memory systems.

### <mark style="color:yellow;">4. Minimise the number of background applications in use.</mark>

It should go without saying, but having background applications open will increase resource usage on your system. If you're struggling to run the pack, then maybe try closing some things you aren't using at the time. You can see everything that is running on your PC at once by opening Task Manager (CTRL + Shift + ESC).

### <mark style="color:yellow;">5. Modifying settings in-game to maximise performance.</mark>

In-game, navigate to Options > Video Settings and adjust your settings to the following to start with:

{% tabs %}
{% tab title="General" %} <mark style="color:orange;">Render Distance:</mark> 12 chunks (lower if lag persists).

<mark style="color:orange;">Shadow Distance:</mark> 12 chunks (lower if lag persists).

<mark style="color:orange;">Simulation Distance:</mark> 12 chunks (lower if lag persists).

<mark style="color:orange;">Fullscreen Resolution:</mark> Current.

<mark style="color:orange;">VSync:</mark> Off.

<mark style="color:orange;">Max Framerate:</mark> Keep it to the refresh rate of your monitor or lower (typically in the range of 30-144fps).
{% endtab %}

{% tab title="Quality" %} <mark style="color:orange;">Graphics:</mark> Fast.

<mark style="color:orange;">Clouds:</mark> Off.

<mark style="color:orange;">Weather:</mark> Fast.

<mark style="color:orange;">Leaves Quality:</mark> Fast.

<mark style="color:orange;">Particles:</mark> Minimal.

<mark style="color:orange;">Biome Blend:</mark> 0

<mark style="color:orange;">Entity Distance:</mark> 64.
{% endtab %}

{% tab title="Performance" %} <mark style="color:orange;">Chunk Update Threads:</mark> Default.

<mark style="color:orange;">Always Defer Chunk Updates:</mark> Off.

<mark style="color:orange;">Use Block Face Culling:</mark> On.

<mark style="color:orange;">Use Fog Occlusion:</mark> On.

<mark style="color:orange;">Use Entity Culling:</mark> On.

<mark style="color:orange;">Use Particle Culling:</mark> On.

<mark style="color:orange;">Animated Only Visible Textures:</mark> On.

<mark style="color:orange;">Cull Leaves:</mark> On.

<mark style="color:orange;">Cull Leaves Depth:</mark> 1
{% endtab %}

{% tab title="Advanced" %}
{% hint style="warning" %}
Leave all as default, unless you know how and why you'd change these.
{% endhint %}
{% endtab %}

{% tab title="MoreCulling" %}
{% hint style="warning" %}
Leave all as default, unless you know how and why you'd change these.
{% endhint %}
{% endtab %}

{% tab title="Animations" %}
{% hint style="warning" %}
These shouldn't impact performance much. But disable all if you absolutely need to save on resources.
{% endhint %}
{% endtab %}

{% tab title="Particles" %}
{% hint style="warning" %}
These shouldn't impact performance much. But disable all if you absolutely need to save on resources. If your world has a farm or chunk that is generating a lot of one particular particle, feel free to disable it to help with performance.
{% endhint %}
{% endtab %}

{% tab title="Details" %}
{% hint style="warning" %}
Mostly preference, shouldn't impact performance much. Weather can be disabled if you experience lag spikes during rain and snow.
{% endhint %}
{% endtab %}

{% tab title="Render" %}
{% hint style="warning" %}
Mostly preference again, but a lot of rendered blocks/entities might be the cause of some lag in some instances. So feel free to disable some of these to improve resource use again.
{% endhint %}
{% endtab %}
{% endtabs %}
