← Back to home

QuantumHy

Active

Hytale • Version 0.5.0

serverperformancefpsclientview-distanceentitiesoptimizationsoloco-op

QuantumHy makes your client run smoother in Hytale by cutting how much it has to build and draw, per player, without taking your view distance away. In a crowded, expensive spot it trims how far mobs are sent, and terrain buried under your feet arrives as plain stone until you get close.

The Hytale client is native, so no mod can touch the renderer. What a server mod can do is decide how much each client has to render, and that is the whole trick: less to build and fewer things to draw means more frames.

Two honest limits. It only helps where it is installed (your solo world, your own server, or a server that runs it), not on a server you merely join. And it never pushes your view past what you asked for: your own view radius is the cap.

QuantumHy

Performance

I walked the same route three times on Hytale 0.7.7: without QuantumHy, with 0.4.0 and with 0.5.0. Same world, same path, same client settings (view distance 18), same PC, one game session, no screen recorder running. Frame times come straight from the Hytale client, captured with CapFrameX.

0.5.0 ran its default config. 0.4.0 ran with terrain adaptation off (adaptiveTerrainViewEnabled and emergencyTerrainTrimEnabled set to false), so all three runs drew the same 18 chunks and the only difference is what each version does at that view distance.

Test PC

ComponentSpec
CPUAMD Ryzen 7 5700X
GPUNVIDIA GeForce GTX 1650 4GB
RAM16 GB (2×8 GB)

The route

  • Deck (55 s): walked down a long deck with fire, explosions and animals on both sides.
  • Drop + cave (40 s): dropped down a shaft into a cave and walked a long corridor through it.
  • Ramp (24 s): climbed a ramp back up to the surface.
  • Surface (27 s): walked a path on the surface to the end.

Results

PartWithout QuantumHy (avg / 1% low)QuantumHy 0.4.0 (avg / 1% low)QuantumHy 0.5.0 (avg / 1% low)Frames over 50 ms
Deck88 / 1591 / 19106 / 7012 / 7 / 0
Drop + cave109 / 22107 / 16117 / 343 / 9 / 3
Ramp104 / 25110 / 20113 / 391 / 4 / 1
Surface82 / 2485 / 35106 / 521 / 0 / 0
Whole run95 / 1997 / 19110 / 4517 / 20 / 4

1% low is the average of the slowest 1% of frames, the number that tells you how bad the stutters get. Frames over 50 ms are listed as without / 0.4.0 / 0.5.0.

CPU, memory and GPU

Averages over the whole run, logged by CapFrameX every 250 ms on the same runs.

Whole runWithout QuantumHyQuantumHy 0.4.0QuantumHy 0.5.0
Average FPS9597110
CPU load (whole PC)41.7%39.5%37.9%
CPU energy per frame650 mJ620 mJ566 mJ
Hytale client RAM6.41 GB6.46 GB5.09 GB
VRAM3.76 GB3.76 GB3.38 GB
GPU load76%78%86%
  • CPU load covers the whole PC, so the client and the singleplayer server together. 0.5.0 drew 16% more frames on 9% less CPU, about 13% less CPU energy per frame.
  • The client used 1.3 GB less RAM and 0.4 GB less VRAM, mostly from not holding the buried terrain.
  • GPU load went up because the GPU spends less time waiting on the CPU. That is where the extra frames come from.

Where the frames come from

  • Same view distance in all three runs, so none of this comes from seeing less. Most of the 0.5.0 lead comes from the client not building the buried terrain under the route.
  • Frames over 100 ms went from 14 without QuantumHy and 19 with 0.4.0 down to 1 with 0.5.0. A second 0.5.0 run gave 3.
  • One run per setup, so differences under ~5% would be noise. The gaps in 1% low and stutters are not.

How it works

Every few seconds QuantumHy counts the entities in the chunks around each player as a stand-in for render cost, smooths that signal, and uses it to shrink the entity stream radius in blocks, so the server stops sending far-off mobs when it is busy. That is where most of the gain comes from when you are looking at a crowd.

Your chunk view radius stays where you set it. Terrain only gets trimmed after about 10 seconds of the client clearly falling behind, or while LeanCore reports memory pressure. Set adaptiveTerrainViewEnabled to true if you want crowds to pull the view in as well.

Terrain buried under the surface, below you and more than a few chunks away, is sent as plain stone. Caves, ores and lava there are hidden by the ground anyway, so the view looks the same while the client skips building them. The real terrain comes back as you walk up to it or drop toward it.

Radius does not snap back the moment the area looks empty. Expand waits until load is calm, at least half the density disk is loaded, you are not flying, and the world is not hitching. While streaming or joining, cuts are held so the client is not told to drop chunks it is busy loading. At full shrink the entity radius drops to the floor in one pass.

Features

  • Respects your view distance: terrain only trims when the client keeps falling behind or LeanCore reports memory pressure
  • Buried terrain stand-ins: caves and ores under the surface arrive as plain stone until you get close
  • Adaptive entity stream radius in blocks, the big lever in mob-heavy areas
  • Simulation distance: every visible chunk stays, simulation is limited to 4 chunks around each player
  • Buffered lighting: the engine’s light propagation runs through reusable buffers
  • Client draw distance cap so the client stops drawing what the server stopped sending
  • Strained-client easing: a client that falls behind gets a gentler chunk rate, and a tighter view if it keeps falling behind
  • Far effects budget for particles and 3D sounds, plus lighter goblin pipe smoke; effects close to you always go through
  • Smooth chunk streaming so moving into new terrain does not hitch
  • Expand freeze until load, coverage, and MSPT are calm
  • Persistent per-player opt-out through /q optimize off, without affecting other players
  • Density smoothing so a moving player’s radius does not flip-flop
  • Automatic LeanCore takeover of the view and simulation radius, plus LeanCore memory awareness
  • Optional global entity LOD override, disabled by default, for admins who want stronger world-wide culling
  • Optional verbose server log that explains every decision per player per pass (off by default)
  • Update check on startup, sent only to operators or durkz.quantumhy.admin (opt out with checkForUpdates)
  • Optional extras, off by default: crowds trimming the terrain view, fewer position updates for far entities, wider item merge under server pressure

Installation

  1. Download QuantumHy-0.5.0.jar from the CurseForge Files tab
  2. Place the JAR in your server’s mods/ folder, or on Windows solo: %AppData%\Hytale\UserData\Mods
  3. Start the server. Config is created as QuantumHy.json in the plugin data folder

Commands

/q status
/q optimize on
/q optimize off
/q help

Aliases: /quantumhy, /qhy. Players see only their own optimization state in /q status; admins and the server console see the full runtime status.

Config

Server settings live in QuantumHy.json, created on first run. Per-player choices are stored in PlayerPreferences.json. Defaults work out of the box: your view distance is kept and only the entity radius adapts to crowds. Set targetClientViewRadius above 0 to trade some view distance for FPS everywhere. Set checkForUpdates to false to skip the startup version check. Full key reference: documentation.

Permissions

  • durkz.quantumhy.admin: receive in-game update notices and see the full /q status. Server operators inherit this through *.

Running it with LeanCore

If you run LeanCore too, QuantumHy sorts out the overlap for you. Both can set the client view radius and the simulation radius, and only one should, so QuantumHy takes them: on startup it detects LeanCore, turns off LeanCore’s view-radius and hot-radius governance, and drives both itself. LeanCore keeps memory and zone dormancy, and gets its simulation setting back when QuantumHy shuts down. You do not have to touch LeanCore’s config. Set leanCoreTakeover to false to leave LeanCore alone, yieldToLeanCoreViewRadius to true to let LeanCore keep the view radius, or simulationDistanceEnabled to false to leave the simulation radius to LeanCore.

  • Solo or your own server: leave the defaults. You keep your view distance and the gains come from what the client no longer has to build.
  • Want FPS everywhere: set targetClientViewRadius to a value like 12 to 16 to cap view distance even in the open.
  • Prefer the original server limits: use /q optimize off. Your choice persists across restarts.
  • Turn verboseLog on only while diagnosing; it is off by default.
  • Leave checkForUpdates on unless you do not want operators to see a newer-JAR notice.

Known limitations

  • QuantumHy cannot read client FPS. It responds to local entity density, streaming state, visible entity pressure, and server MSPT.
  • /q optimize off disables the per-player view and entity-stream adjustments. Explicit global controls enabled by an admin still apply to the world.
  • Right after a long drop into a cave, the client rebuilds the terrain it had as stone. That can cost a hitch or two before it settles.

License

MIT License

For server owners

Need permissions, commands & config?

The full administration guide covers every permission node, admin command, LuckPerms examples, and all config options.

Read server documentation