> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crazynode.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Performance Optimization

> Reduce lag and improve TPS on Minecraft, FiveM, and other game servers.

Server performance depends on hardware, configuration, and installed content. This guide covers the highest-impact optimizations.

## Minecraft optimizations

### Use Paper or Purpur

Switch from Vanilla or Spigot to **Paper** (or **Purpur**) for major performance gains — they include hundreds of async and chunk-loading optimizations.

### Tune `paper.yml` and `spigot.yml`

Key settings to lower:

* `view-distance`: 8 or lower
* `simulation-distance`: 6 or lower
* `entity-activation-range`
* `mob-spawn-range`

### Pre-generate the world

Use a plugin like [Chunky](https://modrinth.com/plugin/chunky) to pre-generate chunks. This prevents lag spikes when players explore.

### Audit plugins

Use `/timings paste` (Paper) or `/spark profiler` to find lag sources. Remove or replace heavy plugins.

## FiveM optimizations

* Remove unused resources from `server.cfg`.
* Use `resmon` (F8 in-game) to identify high-cost resources.
* Keep MySQL indexed — slow queries are the #1 cause of tick spikes.
* Update artifacts to the latest recommended build.

## General tips

<CardGroup cols={2}>
  <Card title="Right-size your plan" icon="arrow-up" href="/billing/upgrades">
    Upgrade RAM/CPU if usage stays consistently high.
  </Card>

  <Card title="Schedule restarts" icon="clock" href="/game-hosting/server-management">
    A daily restart clears memory leaks.
  </Card>

  <Card title="Enable backups" icon="database" href="/game-hosting/backups">
    Corrupted worlds cause slowdowns — backups let you recover quickly.
  </Card>

  <Card title="Contact support" icon="life-ring" href="/support/tickets">
    Our team can review your setup and suggest tuning.
  </Card>
</CardGroup>
