Back to blog

Complete Guide: Optimize Your Hytale Server Performance

Introduction

A well-optimized Hytale server ensures a smooth gaming experience for all your players. Whether you are hosting a few friends or a large community, this guide presents the best practices to maximize your server's performance and reduce lags.


Why Optimize Your Server?

Optimizing your Hytale server is essential for providing an enjoyable gaming experience. A poorly configured server can lead to slowdowns, disconnections, and general frustration for your players.

  • Significant reduction in lags and improved response times
  • Ability to accommodate more players simultaneously
  • Increased stability and fewer server crashes
  • Better utilization of available resources

RAM Allocation

RAM is one of the most important resources for your server. Proper allocation allows the server to efficiently manage chunks, entities, and connected players.

Number of PlayersRecommended RAM
1-5 players4 GB
5-15 players8 GB
15-30 players12 GB
30+ players16 GB+

Important Tip: Do not allocate more RAM than necessary. Excess RAM can paradoxically reduce performance due to the garbage collector having to manage more memory.


View Distance

View distance determines the number of chunks loaded around each player. Reducing this value can significantly improve performance, especially with many players connected.

{
  "viewDistance": 8
}

A value between 6 and 10 offers a good balance between performance and visual experience. Reduce to 4-6 for heavily populated servers.


Entity Management

Entities (mobs, items on the ground, vehicles) are often the main cause of server lags. Limiting their number and optimizing their management is crucial.

1. Limit Mobs per Chunk

Set a reasonable limit on the number of mobs that can spawn in each chunk. A value of 30-50 mobs per chunk is generally sufficient.

2. Clean Up Ground Items

Set a despawn delay for ground items (5-10 minutes). Uncollected items consume resources unnecessarily.

3. Disable Excessive Automatic Farms

Automatic mob farms can generate hundreds of entities. Monitor and limit these constructions if necessary.


World Pre-generation

Generating new chunks in real-time is very resource-intensive. Pre-generating your world before the server opens avoids lags during exploration.

/worldborder set 10000
/pregen start

This command pre-generates the world within a radius of 5000 blocks. Perform this operation when the server is empty.


Optimize Backups

Backups are essential but can impact performance if misconfigured. Here’s how to optimize them:

  • Schedule backups during off-peak hours (night, early morning)
  • Use incremental backups rather than full ones when possible
  • Avoid backups too frequently (every 1-2 hours is usually sufficient)

Monitor Performance

Use built-in diagnostic commands to identify performance issues and adjust your settings accordingly.

CommandDescription
/tpsDisplays ticks per second (ideally 20 TPS)
/memoryDisplays RAM usage
/entitiesLists the number of loaded entities

Summary of Optimizations

OptimizationImpactDifficulty
Correct RAM AllocationHighEasy
Reducing View DistanceHighEasy
Limiting EntitiesVery HighMedium
World Pre-generationMediumEasy
Optimized BackupsMediumEasy

Need a High-Performance Server?

HytaleServ offers optimized servers with next-gen hardware. Enjoy maximum performance without worrying about configuration.

Launch Your Hytale Server

Create your Hytale server in a few clicks with HytaleServ.

View our plans