Project icon QuantumHy
QuantumHy

QuantumHy is a server-side FPS mod for Hytale. It trims how much the server tells each client to draw, based on how crowded the area around them is, so frames hold up in busy spots and come back in the open.

1
3 months ago
OptimizationUtility

QuantumHy: server-side FPS helper for Hytale

QuantumHy makes your client run smoother in Hytale by cutting how much the server tells it to draw, and it adjusts that per player depending on where you are. Out in the open you keep your full view; in a crowded, expensive spot it pulls things in so your FPS does not tank.

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: fewer chunks and entities in view means fewer things to draw, which 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 only ever pulls it down.

Performance

Client frametime capture on Hytale Client. Same test PC for every run below.

Test PC

ComponentSpec
CPUAMD Ryzen 5 3600
GPUNVIDIA GeForce GTX 1650 4GB
RAM16 GB (2×8 GB)

Stress route

Solo world, same stress route (birds and mobs on screen). Mod off vs QuantumHy default (~205s off, ~233s on).

MetricMod offMod onChange
Average FPS102146+43%
P551.691.1+76%
P136.264.4+78%
1% low average14.019.8+41%
Time under 60 FPS25.3%6.9%−73% of that slice

Full tables and chart images: Chart images

This is not a lab benchmark. Massive frametime spikes (500ms–1s+) still appear on both runs; QuantumHy helps sustained crowd load more than it removes one-off hitches.

Stress route mod off: https://www.youtube.com/embed/H6Vns8b4hAg?si=9Fh4guGf70KxOZOC

Stress route mod on: https://www.youtube.com/embed/CKGlXmX1M6k?si=4KHXwLfMade8h_z2

(On CurseForge, embed these two with the editor's YouTube button so they show as players.)

Normal gameplay

Solo world, normal session (~5 min each). No intentional stress route, just regular play. Mod off vs QuantumHy default config.

MetricMod offMod onChange
Average FPS159.6226.9+42%
P5111.1178.1+60%
P177.2139.1+80%
1% low average43.7111.7+155%
Time under 60 FPS2.2%0.1%−95% of that slice

Full tables and chart images: Chart images

The mod recalibration targets real exploration, not only mob piles: higher average FPS, a much higher floor (P5/P1), and less time under 60 FPS. Chunk-load hitches still show up on both runs.

Upload benchmark PNGs from docs/benchmark/ as gallery images on CurseForge when you publish (stress route + normal gameplay sets, including normal-comparison.png).

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 turns it into a single shrink factor. That one factor drives two levers at once:

  • The chunk view radius, so distant terrain stops streaming when it is busy.
  • The entity stream radius in blocks, so the server stops sending far-off mobs. This is independent of chunks and is where most of the gain comes from when you are looking at a crowd.

On top of that, a global entity LOD setting drops small and distant entities sooner. An optional per-player visible cap can keep only the nearest entities in view when crowds get extreme. When server tick time (MSPT) climbs, the pressure governor can trim render levers further until the server calms down.

In the open everything ramps back up to where you started. While you are still loading chunks (just joined, or sprinting), cuts are held and ambient spawn can pause so the client is not told to drop chunks it is busy loading.

Features

  • Adaptive chunk view radius driven by local entity density, capped at your own view radius
  • Adaptive entity stream radius in blocks, the big lever in mob-heavy areas
  • Global entity LOD culling that drops small and distant entities sooner
  • Entity cull system with vertical (Y) prune and optional per-player visible cap
  • Density smoothing so a moving player's view does not flip-flop
  • Chunk streaming smoothing so moving into new terrain does not hitch
  • Spawn stream pause while a player's chunks are still loading
  • MSPT pressure governor that trims render load when the server is under tick pressure
  • Automatic LeanCore coexistence so the two mods never fight over the same levers
  • Update check on startup for operators or durkz.quantumhy.admin (opt out with checkForUpdates)
  • /q command (status, help) to see what it is doing live
  • Verbose server log that explains every decision per player per pass

Installation

  1. Download QuantumHy-0.2.3.jar from the Files tab
  2. Place it in your server's mods folder (or %AppData%\Hytale\UserData\Mods\ on Windows)
  3. Start the server. Config is created as QuantumHy.json in the plugin data folder

Config

Everything lives in QuantumHy.json, created on first run. Defaults work out of the box: no hard view cap, adapt only when crowded. Set targetClientViewRadius above 0 to trade some view distance for FPS everywhere. Set verboseLog to false once you trust it. Set checkForUpdates to false to skip the startup version check. For a live look at what it is doing, use /q status in game or the console.

Found a bug? Issues

Running with LeanCore

Both mods can run together. Each one owns different levers so they are not fighting over the same fields. Defaults already line up: QuantumHy drives client view radius (leanCoreTakeover=true); LeanCore keeps hot/sim radius and memory. QuantumHy yields chunk streaming when LeanCore throughput governance is on. See the README for the ownership table and optional knobs (leanCoreTakeover, yieldToLeanCoreViewRadius).

Recommended

  • Solo or your own server: leave the defaults. You only lose view distance when it is actually crowded.
  • Want FPS everywhere: set targetClientViewRadius to a value like 12 to 16 to cap view distance even in the open.
  • Watch the log for a pass or two to see density and view decisions, then set verboseLog to false.

License: MIT

Creators

0followers
3projects
3downloads

Details

License
Created
Updated
ID
gV88BA