Merge remote-tracking branch 'origin/main' into l269-merge

# Conflicts:
#	docs/design-system.md
This commit is contained in:
Ludovic Marie
2026-10-23 01:31:40 +02:00
80 changed files with 7636 additions and 337 deletions
+4
View File
@@ -18,6 +18,10 @@ concurrency:
# A new push to a pull request replaces its running checks; main's runs all finish (releases follow them).
group: checks-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
# Test runs never reach the telemetry server: no live-count ping, no uploads (docs/telemetry.md).
HORIZON_TELEMETRY_URL: "off"
jobs:
verify:
runs-on: ubuntu-latest
+4
View File
@@ -49,6 +49,10 @@ concurrency:
group: launcher-${{ github.ref == 'refs/heads/main' && 'release' || github.ref }}
cancel-in-progress: false
env:
# Test runs never reach the telemetry server: no live-count ping, no uploads (docs/telemetry.md).
HORIZON_TELEMETRY_URL: "off"
jobs:
decide:
runs-on: ubuntu-latest
+4
View File
@@ -23,6 +23,10 @@ permissions:
concurrency:
group: nightly-audit
cancel-in-progress: false
env:
# Test runs never reach the telemetry server: no live-count ping, no uploads (docs/telemetry.md).
HORIZON_TELEMETRY_URL: "off"
jobs:
audit:
runs-on: [self-hosted, horizon-game]
+4
View File
@@ -15,6 +15,10 @@ on:
required: true
permissions:
contents: read
env:
# Test runs never reach the telemetry server: no live-count ping, no uploads (docs/telemetry.md).
HORIZON_TELEMETRY_URL: "off"
jobs:
parity:
runs-on: [self-hosted, horizon-game]
+4
View File
@@ -11,6 +11,10 @@ permissions:
concurrency:
group: run-parity-${{ github.event.pull_request.number }}
cancel-in-progress: true
env:
# Test runs never reach the telemetry server: no live-count ping, no uploads (docs/telemetry.md).
HORIZON_TELEMETRY_URL: "off"
jobs:
parity:
if: github.event.label.name == 'run-parity'
@@ -330,6 +330,10 @@ impl Game<'_> {
"held": m.extra.main_hand.as_deref(),
"mount": m.extra.mount,
"rider": m.extra.rider,
// A player's input this tick, and whether it steers.
"ridden": m.rider.map(|r| r.steer),
"controlled": horizon_client::mobs::equine::controlled(m),
"saddled": m.extra.saddled,
"enchants": horizon_client::mobs::gear::gear(m).map(|g| g.slots.iter().map(|s| s.iter().map(|(e, l)| format!("{e}:{l}")).collect::<Vec<_>>()).collect::<Vec<_>>()),
"ints": m.extra.ints,
"pois": [m.extra.home, m.extra.bed, m.extra.meeting],
+10
View File
@@ -800,6 +800,16 @@ impl Game<'_> {
self.send_admin_feedback(&mut host, None);
}
let state = self.lan_host_state(&host);
// An animal whose rider left the game (or the level) stops taking
// its input.
for m in &mut self.mobs {
if m.rider.is_some()
&& self.riding != Some(m.id)
&& !host.hub.guests.iter().any(|g| g.vehicle == Some(m.id))
{
m.rider = None;
}
}
// A dedicated server runs the hub without a host player.
if state.is_some() || host.hub.config.dedicated {
let has_guests = !host.hub.guests.is_empty();
@@ -49,6 +49,8 @@ pub(super) struct GuestPlay {
/// Swings the guest's actions started this tick, for the players around
/// (`LivingEntity.swing` sends ClientboundSwingAnimationPacket).
swings: u32,
/// The guest's riding jump charge (`LocalPlayer.jumpRidingTicks`).
mount: super::mounts::MountState,
/// The trading screen the guest has open.
pub(super) merchant: Option<super::lan_trading::GuestMerchant>,
/// The inventory menu and the crafting table the guest crafts in.
@@ -289,6 +291,7 @@ impl Game<'_> {
let attack_ticks = std::mem::replace(&mut self.attack_ticks, play.attack_ticks);
let attack_item = std::mem::replace(&mut self.attack_item, play.attack_item.take());
let swing = std::mem::replace(&mut self.swing, play.swing);
std::mem::swap(&mut self.mount, &mut play.mount);
let (left, right) = (self.left, self.right);
self.left = play.digging.is_some();
self.right = play.using.is_some() || self.using.is_some();
@@ -478,6 +481,7 @@ impl Game<'_> {
play.attack_ticks = std::mem::replace(&mut self.attack_ticks, attack_ticks);
play.attack_item = std::mem::replace(&mut self.attack_item, attack_item);
play.swing = std::mem::replace(&mut self.swing, swing);
std::mem::swap(&mut self.mount, &mut play.mount);
self.container = container;
self.screen = screen;
self.sign_edit = host_sign;
+24 -4
View File
@@ -26,6 +26,7 @@ pub(super) fn input_keys(flags: u8) -> Keys {
right: flags & 8 != 0,
jump: flags & 16 != 0,
shift: flags & 32 != 0,
sprint: flags & 64 != 0,
..Keys::default()
}
}
@@ -96,9 +97,10 @@ impl Game<'_> {
let (keys, dead) = (input_keys(g.input), g.dead || g.health <= 0.0);
let boat = self.boats.iter().position(|b| b.id == vehicle);
let cart = self.carts.iter().any(|c| c.id == vehicle);
let mount = self.mobs.iter().any(|m| m.id == vehicle);
// The vehicle is gone (broken, in another level) or the rider died:
// its client drops it with the entity or the death screen.
if dead || (boat.is_none() && !cart) {
if dead || (boat.is_none() && !cart && !mount) {
let g = &mut host.hub.guests[gi];
(g.vehicle, g.vehicle_good) = (None, None);
return;
@@ -122,8 +124,12 @@ impl Game<'_> {
return Some([p.x, p.y + SEAT, p.z]);
}
// The minecart moves with the rider's input, and lets it out when
// it sneaks or the cart breaks.
game.tick_cart_riding(keys);
// it sneaks or the cart breaks. An animal takes the rider's input
// for its own tick (`travelRidden`), or lets it off.
if !game.tick_cart_riding(keys) && game.tick_mount_riding(keys) {
game.riding?;
game.position_rider();
}
game.riding?;
let p = game.player.as_ref()?.position;
Some([p.x, p.y, p.z])
@@ -163,12 +169,26 @@ impl Game<'_> {
.find(|c| c.id == vehicle)
.map(|c| c.position)
});
let g = &mut host.hub.guests[gi];
if let Some(p) = at {
let g = &mut host.hub.guests[gi];
g.vehicle_good = Some([p.x, p.y, p.z]);
g.previous_position = g.position;
g.position = [p.x, p.y + SEAT, p.z];
g.on_ground = false;
return;
}
// An animal: the rider sits where `positionRider` puts it.
let seat = self.as_guest(host, conn, |game| {
game.position_rider();
game.player
.as_ref()
.map(|p| [p.position.x, p.position.y, p.position.z])
});
if let Some(Some(at)) = seat {
let g = &mut host.hub.guests[gi];
g.previous_position = g.position;
g.position = at;
g.on_ground = false;
}
}
+29 -19
View File
@@ -107,6 +107,10 @@ impl Game<'_> {
let held = self.inventory[self.selected].clone();
let m = &self.mobs[index];
let species = m.species();
// A server player rides it already (`isVehicle`: no seat, no feeding).
if self.ridden_by_guest(m.id) {
return false;
}
if matches!(species, Species::Pig | Species::Strider) {
return self.interact_steerable(index, item);
}
@@ -246,24 +250,9 @@ impl Game<'_> {
self.consume_held();
true
}
/// The rider's input for this tick; returns false when not on a mount.
pub(super) fn tick_mount_riding(&mut self, keys: Keys) -> bool {
let Some(i) = self.mount_index() else {
return false;
};
if keys.shift || !self.mobs[i].alive() {
self.dismount_mount();
return true;
}
let strafe = f32::from(u8::from(keys.left)) - f32::from(u8::from(keys.right));
let forward = f32::from(u8::from(keys.forward)) - f32::from(u8::from(keys.backward));
// LocalPlayer.aiStep: the riding jump charges while space is held.
let held = self.held().map(|s| s.item.clone());
let steer = match self.mobs[i].species() {
Species::Pig => held.as_deref() == Some("minecraft:carrot_on_a_stick"),
Species::Strider => held.as_deref() == Some("minecraft:warped_fungus_on_a_stick"),
_ => false,
};
/// `LocalPlayer.aiStep`'s riding jump: the bar charges while jump is
/// held; on release, the jump's strength (0 when there is none).
pub(super) fn charge_mount_jump(&mut self, i: usize, keys: Keys) -> f32 {
// PlayerRideableJumping: horses, camels and nautili (the dash).
let saddled = self.mobs[i].extra.saddled
&& (equine::is_equine(self.mobs[i].species())
@@ -299,6 +288,27 @@ impl Game<'_> {
}
st.was_jumping = keys.jump;
}
jump
}
/// The rider's input for this tick; returns false when not on a mount.
pub(super) fn tick_mount_riding(&mut self, keys: Keys) -> bool {
let Some(i) = self.mount_index() else {
return false;
};
if keys.shift || !self.mobs[i].alive() {
self.dismount_mount();
return true;
}
let strafe = f32::from(u8::from(keys.left)) - f32::from(u8::from(keys.right));
let forward = f32::from(u8::from(keys.forward)) - f32::from(u8::from(keys.backward));
// LocalPlayer.aiStep: the riding jump charges while space is held.
let held = self.held().map(|s| s.item.clone());
let steer = match self.mobs[i].species() {
Species::Pig => held.as_deref() == Some("minecraft:carrot_on_a_stick"),
Species::Strider => held.as_deref() == Some("minecraft:warped_fungus_on_a_stick"),
_ => false,
};
let jump = self.charge_mount_jump(i, keys);
let m = &mut self.mobs[i];
if jump > 0.0 {
// onPlayerJump: rear while jumping (horses).
@@ -324,7 +334,7 @@ impl Game<'_> {
pitch: self.pitch,
jump: if jump > 0.0 { jump } else { pending },
steer,
sprint: self.keys.contains(&winit::keyboard::KeyCode::ControlLeft),
sprint: keys.sprint || self.keys.contains(&winit::keyboard::KeyCode::ControlLeft),
jumping: keys.jump,
});
true
@@ -112,6 +112,14 @@ impl Game<'_> {
let Some(id) = self.riding else {
return false;
};
if let Some(i) = self.mobs.iter().position(|m| m.id == id) {
// An animal moves on the server with the rider's input
// (PlayerInput); here the jump bar charges for the HUD and the
// rider sits where `positionRider` puts it.
self.charge_mount_jump(i, keys);
self.position_rider();
return true;
}
let seat = if let Some(i) = self.boats.iter().position(|b| b.id == id) {
// AbstractBoat.tick on the controlling client: steer and move.
let mut b = self.boats[i].clone();
+2 -2
View File
@@ -2,8 +2,8 @@
//! launcher's "N playing now". While the game runs, a thread of its own sends a random session
//! ID made here and kept only in memory, the version, the platform and whether a LAN or
//! play-with-friends world is open, every minute and at once when that last one changes.
//! It sends nothing when there is no server (`HORIZON_TELEMETRY_URL`, none by default) or
//! with `HORIZON_NO_HEARTBEAT=1` (automated runs).
//! It sends nothing when sending is turned off (`HORIZON_TELEMETRY_URL=off`) or with
//! `HORIZON_NO_HEARTBEAT=1` (automated runs).
use std::sync::OnceLock;
use std::sync::atomic::{AtomicBool, Ordering};
use std::thread::Thread;
+14 -8
View File
@@ -338,15 +338,21 @@ pub fn ridden_step(m: &mut Mob) {
// Pig/Strider: always forward along the rider's look, at a fraction
// of the movement speed, boosted by the stick.
m.head_pitch = r.pitch * 0.5;
m.ai.xxa = 0.0;
m.ai.zza = 1.0;
// Strider.getRiddenSpeed: slower while it shivers out of the warmth.
let factor = if m.species() == Species::Pig {
0.225
} else if super::strider::suffocating(m) {
0.35
} else {
0.55
};
let boost = boost_factor(m);
m.set_speed((m.attrs.speed * factor) as f32 * boost);
// travelRidden: setSpeed(getRiddenSpeed), then travel(getRiddenInput);
// the input is set after the speed (Mob.setSpeed also sets zza).
// getAttributeValue(MOVEMENT_SPEED): with the cold strider's modifier.
m.set_speed((m.movement_speed() * factor) as f32 * boost);
m.ai.xxa = 0.0;
m.ai.zza = 1.0;
return;
}
if super::camel::is_camel(m.species()) {
@@ -366,14 +372,14 @@ pub fn ridden_step(m: &mut Mob) {
} else {
r.forward
};
m.ai.xxa = r.strafe * 0.5;
m.ai.zza = forward;
let bonus = if r.sprint && m.extra.anim_ticks == 0 {
0.1
} else {
0.0
};
m.set_speed(m.attrs.speed as f32 + bonus);
m.set_speed(m.movement_speed() as f32 + bonus);
m.ai.xxa = r.strafe * 0.5;
m.ai.zza = forward;
if r.jump > 0.0 {
let mut ev = Vec::new();
super::camel::dash(m, r.jump, &mut ev);
@@ -394,10 +400,10 @@ pub fn ridden_step(m: &mut Mob) {
} else {
r.forward
};
let speed = m.movement_speed() as f32;
m.set_speed(speed);
m.ai.xxa = r.strafe * 0.5;
m.ai.zza = forward;
let speed = m.attrs.speed as f32;
m.set_speed(speed);
if m.on_ground && r.jump > 0.0 {
// executeRidersJump
let impulse = m.extra.vector[0] as f32 * r.jump;
+34 -3
View File
@@ -5,7 +5,7 @@ This server receives what players choose to send (performance summaries, crash a
cargo run --release # in this folder: its own workspace, like the launcher's
PORT=8080 HORIZON_TELEMETRY_DB=/data/telemetry.sqlite3 horizon-telemetry-server
The launcher sends to it when `HORIZON_TELEMETRY_URL` is set (and to `DEFAULT_ENDPOINT` in `crates/horizon-telemetry` once there is one).
It runs at **https://telemetry.playhorizon.dev** (`DEFAULT_ENDPOINT` in `crates/horizon-telemetry`). The game and the launcher use it unless `HORIZON_TELEMETRY_URL` names another server, or is `off` (tests and automated runs send nothing).
## Endpoints
@@ -14,11 +14,34 @@ The launcher sends to it when `HORIZON_TELEMETRY_URL` is set (and to `DEFAULT_EN
| `POST /v1/batch` | A zstd batch (`Content-Encoding: zstd`, at most 256 KiB, 1 MiB inflated, 64 items). Returns 204. Returns 400 for a bad batch, 413 for one too large, 415 if it is not zstd, 429 when over a limit. |
| `DELETE /v1/installs/<id>` | Deletes everything that install sent. Its share of the daily totals is rebuilt at once. |
| `GET /v1/aggregate?days=30` | The totals the website reads. Cached 10 minutes, with `Access-Control-Allow-Origin` set to the website. |
| `GET /v1/benchmarks/summary` | Players' benchmark uploads grouped by GPU, CPU, render distance and game, for the website's Benchmarks page (below). Cached 10 minutes, same `Access-Control-Allow-Origin`. |
| `POST /v1/live` | A game's "I'm playing" ping (JSON, at most 512 bytes). Returns 204. Returns 400 for a bad ping, 413 for one too large, 429 over the address's limit, 503 when it holds `LIVE_MAX_SESSIONS` already. |
| `GET /v1/live` | How many play now, rounded: `playing`, `lan`, `versions`, `platforms`. Made again at most every 15 seconds, with the same `Access-Control-Allow-Origin`. |
| `GET /healthz` | `ok` |
The totals are grouped per version, OS, GPU vendor and render distance. Each group has its sessions, install-days, hours played, the 14 frame-time buckets summed, and the mean p50 and p99 frame times. Groups with fewer than 5 install-days are left out. The totals also list crash counts per version and the newest 50 benchmark uploads.
The totals are grouped per version, OS, GPU vendor and render distance. Each group has its sessions, install-days, hours played, the 14 frame-time buckets summed, and the mean p50 and p99 frame times. Groups with fewer than 5 install-days are left out. The totals also list crash counts per version. Benchmark uploads are published only through the summary below, never one by one.
## Benchmarks summary
`src/summary.rs` makes it with the same rules as `website/scripts/benchmarks.mjs`, which bakes the page's fallback copy; both are tested against the same fixtures (`website/scripts/fixtures/benchmarks/`).
- Only reports that compare: a version 1 `horizon-benchmark-report` of the standard flight over the four scenes, VSync off, no frame cap, on screen, from Horizon or plain vanilla, naming its GPU and CPU.
- A group (GPU, CPU, render distance, game) is published only with **at least 3 different installs**. Each install counts once: the median of its runs, then the median across installs.
- Out go the names, the counts, the newest three versions and the medians. Never an install ID, a day, an OS version, a driver, a memory size or a screen.
```json
{
"format": "horizon-benchmark-summary", "version": 1, "generated": "2026-10-22T20:00:00Z", "min_installs": 3,
"groups": [{
"gpu": "NVIDIA GeForce RTX 4080", "cpu": "13th Gen Intel Core i7-13700KF", "render_distance": 12,
"game": "horizon", "source": "players", "installs": 3, "reports": 4, "versions": ["v0.2.1", "v0.2.0"],
"medians": { "avg_fps": 515, "low_1pct_fps": 120, "p95_ms": 3.5, "world_ms": 4500,
"chunk_load_ms": 1400, "rss_peak_mb": 1450, "rss_steady_mb": 1250 }
}]
}
```
Frame rates are whole numbers, milliseconds have one decimal under 10, megabytes are whole. Groups come most installs first. A deleted install leaves its groups at once.
## Storage
@@ -45,7 +68,7 @@ All are environment variables:
- `HORIZON_TELEMETRY_MIN_INSTALL_DAYS` (5)
- `HORIZON_TELEMETRY_REQUESTS_PER_HOUR` per address (60, bursts of 6)
- `HORIZON_TELEMETRY_ITEMS_PER_DAY` per install (100)
- `HORIZON_TELEMETRY_TRUST_PROXY=1` behind a proxy (the client's address is then the first of `X-Forwarded-For`)
- `HORIZON_TELEMETRY_TRUST_PROXY=1` behind a proxy (the client's address is then the proxy's `X-Real-IP`, else the last `X-Forwarded-For` entry; it is used only for the rate limits, in memory, and never stored or logged)
- `HORIZON_TELEMETRY_ALLOW_ORIGIN` (`https://playhorizon.dev`)
- `HORIZON_TELEMETRY_LIVE_PER_HOUR` per address, pings and reads (600, bursts of 60: ten players behind one address)
- `HORIZON_TELEMETRY_LIVE_WINDOW_SECONDS` (120)
@@ -55,6 +78,14 @@ All are environment variables:
`Dockerfile` builds it from the repository root (`docker build -f crates/horizon-telemetry-server/Dockerfile .`). The database goes on a volume mounted at `/data`.
On Railway it is a service of the same project as the website:
- Source: this repository, root directory `/` (the Dockerfile needs the shared crate), config file `/crates/horizon-telemetry-server/railway.json` (Dockerfile build, health check `/healthz`, one replica in `europe-west4`, Amsterdam: one SQLite file can't be shared).
- A volume mounted at `/data`. The Dockerfile already sets `HORIZON_TELEMETRY_DB=/data/telemetry.sqlite3` and `HORIZON_TELEMETRY_TRUST_PROXY=1`; Railway sets `PORT`.
- The custom domain `telemetry.playhorizon.dev`: a `CNAME` at Porkbun to the target Railway gives.
Check it with `curl https://telemetry.playhorizon.dev/healthz`.
At Railway's prices (RAM $10/GB-month, CPU $20/vCPU-month, volumes $0.15/GB-month, egress $0.05/GB), one more service with a 1 GB volume uses about $0.35 a month:
- RAM about 15 MB: $0.15
@@ -0,0 +1,21 @@
{
"$schema": "https://railway.com/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"dockerfilePath": "crates/horizon-telemetry-server/Dockerfile",
"watchPatterns": [
"/crates/horizon-telemetry/**",
"/crates/horizon-telemetry-server/**",
"/Cargo.toml"
]
},
"deploy": {
"healthcheckPath": "/healthz",
"healthcheckTimeout": 60,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 5,
"multiRegionConfig": {
"europe-west4-drams3a": { "numReplicas": 1 }
}
}
}
+86 -12
View File
@@ -3,6 +3,8 @@
//! - `POST /v1/batch`: a zstd batch from the launcher, checked by `horizon_telemetry::batch`.
//! - `DELETE /v1/installs/<id>`: everything an install sent goes.
//! - `GET /v1/aggregate?days=30`: the anonymous totals the website reads, cached.
//! - `GET /v1/benchmarks/summary`: players' benchmark results grouped by GPU and CPU, groups of at
//! least 3 installs only (`summary`), cached; the website's Benchmarks page reads it.
//! - `POST /v1/live`: a game's anonymous "I'm playing" ping (`live`, in memory only).
//! - `GET /v1/live`: how many play now, rounded, cached briefly.
//! - `GET /healthz`.
@@ -26,6 +28,7 @@ use horizon_telemetry::batch;
pub mod live;
pub mod store;
pub mod summary;
use horizon_telemetry::live::{MAX_PING_BYTES, Ping};
use live::Live;
@@ -40,7 +43,8 @@ pub struct Config {
pub requests_per_hour: f64,
/// Items one install may send a day.
pub items_per_day: u32,
/// Behind a proxy (Railway, Fly…): the client's address is the first of X-Forwarded-For.
/// Behind a proxy (Railway, Fly…): the client's address is the proxy's `X-Real-IP`, else the
/// last `X-Forwarded-For` entry.
pub trust_proxy: bool,
/// The website allowed to read the totals from a browser.
pub allow_origin: String,
@@ -117,6 +121,8 @@ pub struct App {
live_cache: Mutex<Option<(Instant, String)>>,
/// `/v1/aggregate` answers by `days`, with when they were made.
cache: Mutex<HashMap<u32, (Instant, String)>>,
/// `/v1/benchmarks/summary`'s answer and when it was made.
summary_cache: Mutex<Option<(Instant, String)>>,
/// Today, in days since 1970 (a test moves it).
today: Box<dyn Fn() -> u32 + Send + Sync>,
}
@@ -148,6 +154,7 @@ impl App {
live: Mutex::new(live),
live_cache: Mutex::default(),
cache: Mutex::default(),
summary_cache: Mutex::default(),
today,
})
}
@@ -170,20 +177,26 @@ impl App {
self.live.lock().unwrap_or_else(|e| e.into_inner())
}
/// The address requests are counted under, for the rate limits only: kept in memory, never
/// stored or logged. Behind a proxy (Railway) the TCP peer is the proxy, so it is the proxy's
/// `X-Real-IP`, else the last `X-Forwarded-For` entry: the one the proxy added, which a client
/// can't choose (the first one it can).
fn client(&self, headers: &HeaderMap, peer: Option<SocketAddr>) -> IpAddr {
let header = |name: &str| headers.get(name)?.to_str().ok();
let forwarded = self
.config
.trust_proxy
.then(|| {
headers
.get("x-forwarded-for")?
.to_str()
.ok()?
.split(',')
.next()?
.trim()
.parse()
.ok()
header("x-real-ip")
.and_then(|ip| ip.trim().parse().ok())
.or_else(|| {
header("x-forwarded-for")?
.rsplit(',')
.next()?
.trim()
.parse()
.ok()
})
})
.flatten();
forwarded
@@ -196,6 +209,12 @@ impl App {
self.store().newest_day(install).ok().flatten()
}
/// Drops the cached public answers (after a deletion or expiry).
fn forget_cached(&self) {
self.cache.lock().unwrap_or_else(|e| e.into_inner()).clear();
*self.summary_cache.lock().unwrap_or_else(|e| e.into_inner()) = None;
}
/// Daily upkeep: totals rebuilt, expired rows removed, idle rate-limit entries and live
/// sessions forgotten.
pub fn maintain(&self) -> rusqlite::Result<usize> {
@@ -209,7 +228,7 @@ impl App {
}
self.live().forget_expired(Instant::now());
if removed > 0 {
self.cache.lock().unwrap_or_else(|e| e.into_inner()).clear();
self.forget_cached();
}
Ok(removed)
}
@@ -288,7 +307,7 @@ async fn forget(State(app): State<Arc<App>>, Path(id): Path<String>, req: Reques
};
match app.store().delete_install(&install) {
Ok(_) => {
app.cache.lock().unwrap_or_else(|e| e.into_inner()).clear();
app.forget_cached();
StatusCode::NO_CONTENT.into_response()
}
Err(e) => {
@@ -338,6 +357,60 @@ async fn aggregate(State(app): State<Arc<App>>, Query(window): Query<Window>) ->
json_response(&app, json, CACHE_FOR.as_secs())
}
/// `GET /v1/benchmarks/summary`: players' benchmark groups (`summary`), made again at most every
/// ten minutes.
async fn benchmarks(State(app): State<Arc<App>>) -> Response {
let cached = app
.summary_cache
.lock()
.unwrap_or_else(|e| e.into_inner())
.as_ref()
.filter(|(at, _)| at.elapsed() < CACHE_FOR)
.map(|(_, json)| json.clone());
let json = match cached {
Some(json) => json,
None => {
let oldest = (app.today)().saturating_sub(app.config.retention_days);
let uploads = match app.store().benchmark_uploads(oldest) {
Ok(uploads) => uploads,
Err(e) => {
eprintln!("horizon-telemetry-server: could not read the benchmarks: {e}");
return status(StatusCode::SERVICE_UNAVAILABLE, "try again later");
}
};
let json = summary::summary(&uploads, summary::MIN_INSTALLS, &utc_now()).to_string();
*app.summary_cache.lock().unwrap_or_else(|e| e.into_inner()) =
Some((Instant::now(), json.clone()));
json
}
};
json_response(&app, json, CACHE_FOR.as_secs())
}
/// Now as `YYYY-MM-DDTHH:MM:SSZ`.
fn utc_now() -> String {
let secs = std::time::SystemTime::now()
.duration_since(std::time::UNIX_EPOCH)
.map_or(0, |d| d.as_secs());
let (days, rest) = (secs / 86_400, secs % 86_400);
// Days since 1970 to a civil date (Howard Hinnant's algorithm).
let z = days as i64 + 719_468;
let era = z.div_euclid(146_097);
let doe = z - era * 146_097;
let yoe = (doe - doe / 1460 + doe / 36_524 - doe / 146_096) / 365;
let doy = doe - (365 * yoe + yoe / 4 - yoe / 100);
let mp = (5 * doy + 2) / 153;
let day = doy - (153 * mp + 2) / 5 + 1;
let month = if mp < 10 { mp + 3 } else { mp - 9 };
let year = yoe + era * 400 + i64::from(month <= 2);
format!(
"{year:04}-{month:02}-{day:02}T{:02}:{:02}:{:02}Z",
rest / 3600,
rest / 60 % 60,
rest % 60
)
}
/// `POST /v1/live`: one "I'm playing". 204, or 400 for a bad ping, 413 for one too large, 429
/// over the address's limit, 503 when the table is full.
async fn ping(State(app): State<Arc<App>>, req: Request) -> Response {
@@ -407,6 +480,7 @@ pub fn router(app: Arc<App>) -> Router {
.route("/v1/live", post(ping).get(playing))
.route("/v1/installs/{id}", delete(forget))
.route("/v1/aggregate", get(aggregate))
.route("/v1/benchmarks/summary", get(benchmarks))
.route("/healthz", get(|| async { "ok" }))
.with_state(app)
}
+20 -14
View File
@@ -357,27 +357,33 @@ impl Store {
})?
.collect::<Result<_, _>>()?
};
let benchmarks: Vec<serde_json::Value> = {
let mut q = self.db.prepare(
"SELECT day, version, body FROM reports WHERE kind = ?1 AND day BETWEEN ?2 AND ?3
ORDER BY rowid DESC LIMIT 50",
)?;
q.query_map(params![kind_code(Kind::Benchmark), from, to], |r| {
let body: Vec<u8> = r.get(2)?;
Ok(serde_json::json!({
"day": r.get::<_, u32>(0)?, "version": r.get::<_, String>(1)?, "report": inflate(&body),
}))
})?
.collect::<Result<_, _>>()?
};
Ok(serde_json::json!({
"from_day": from, "to_day": to, "min_install_days": k,
"bucket_edges_ms": BUCKET_EDGES_MS.map(|e| (f64::from(e) * 10.0).round() / 10.0),
"totals": { "sessions": sessions, "hours": (hours * 10.0).round() / 10.0 },
"groups": out, "crashes_by_version": crashes, "benchmarks": benchmarks,
"groups": out, "crashes_by_version": crashes,
}))
}
/// Every benchmark upload received since `from_day`, with its install (to count installs, never shown)
/// and release, for `summary`.
pub fn benchmark_uploads(
&self,
from_day: u32,
) -> rusqlite::Result<Vec<crate::summary::Upload>> {
let mut q = self
.db
.prepare("SELECT install, version, body FROM reports WHERE kind = ?1 AND day >= ?2")?;
q.query_map(params![kind_code(Kind::Benchmark), from_day], |r| {
Ok(crate::summary::Upload {
install: r.get(0)?,
version: r.get(1)?,
report: inflate(&r.get::<_, Vec<u8>>(2)?),
})
})?
.collect()
}
/// The day an install's newest row came in, if any (tests, and checking a deletion).
pub fn newest_day(&self, install: &[u8]) -> rusqlite::Result<Option<u32>> {
self.db
@@ -0,0 +1,266 @@
//! `GET /v1/benchmarks/summary`: players' benchmark uploads, grouped for the website's Benchmarks page.
//!
//! The same rules as `website/scripts/benchmarks.mjs` (which builds the page's baked copy), checked against the
//! same fixtures (`website/scripts/fixtures/benchmarks/`):
//!
//! - Only reports that compare: `horizon-benchmark-report` version 1, kind `game`, Horizon or plain vanilla, the
//! standard flight over the four scenes, VSync off, no frame cap, drawn on a screen, with a GPU and CPU name.
//! - Groups by GPU, CPU, render distance and game. A group is published only with at least `min_installs`
//! different installs, so no one can be picked out.
//! - Each install counts once: the median of its runs first, then the median across installs.
//! - Out go the group's names, its counts, the newest three versions and the medians. Never the install ID, the
//! day, the OS version, the driver, the memory size or the screen.
use std::collections::{BTreeMap, BTreeSet, HashMap};
use serde_json::{Value, json};
pub const FORMAT: &str = "horizon-benchmark-summary";
pub const MIN_INSTALLS: usize = 3;
pub const SCENES: [&str; 4] = ["village", "forest", "ocean", "mountain"];
pub const FIELDS: [&str; 7] = [
"avg_fps",
"low_1pct_fps",
"p95_ms",
"world_ms",
"chunk_load_ms",
"rss_peak_mb",
"rss_steady_mb",
];
/// One stored upload: who sent it (only to count installs), the release, and the report.
pub struct Upload {
pub install: Vec<u8>,
pub version: String,
pub report: Value,
}
/// "Intel(R) Core(TM) i7" -> "Intel Core i7", spaces collapsed.
fn trim(s: &str) -> String {
s.replace("(R)", "")
.replace("(TM)", "")
.replace("(tm)", "")
.split_whitespace()
.collect::<Vec<_>>()
.join(" ")
}
fn game(app: &Value) -> Option<&'static str> {
match app.get("name").and_then(Value::as_str) {
Some("horizon-client") => Some("horizon"),
Some("minecraft") => {
let mods = app.get("mods").and_then(Value::as_array);
let plain = mods.is_none_or(|m| {
m.iter()
.all(|m| m.get("name").and_then(Value::as_str) == Some("fabric-loader"))
});
plain.then_some("vanilla")
}
_ => None,
}
}
/// Why a report can't be compared with the others, or `None` when it can.
pub fn rejection(report: &Value) -> Option<&'static str> {
if report.get("format").and_then(Value::as_str) != Some("horizon-benchmark-report")
|| report.get("version").and_then(Value::as_u64) != Some(1)
{
return Some("not a version 1 benchmark report");
}
if report.get("kind").and_then(Value::as_str) != Some("game") {
return Some("not a game run");
}
game(&report["app"])?;
let c = &report["conditions"];
let scenario = c.get("scenario").and_then(Value::as_str).unwrap_or("");
if !(scenario == "standard" || scenario == "flight" || scenario.starts_with("perf_bench:")) {
return Some("not the standard flight");
}
if c.get("vsync") != Some(&Value::Bool(false)) {
return Some("VSync on or unknown");
}
if c.get("fps_cap").is_some_and(|v| !v.is_null()) {
return Some("frame rate capped");
}
if c.get("offscreen") == Some(&Value::Bool(true)) {
return Some("offscreen");
}
if !c.get("render_distance").is_some_and(Value::is_number) {
return Some("no render distance");
}
let phases: BTreeSet<&str> = report["frames"]
.as_array()
.map(|f| f.iter().filter_map(|f| f["phase"].as_str()).collect())
.unwrap_or_default();
if !SCENES.iter().all(|s| phases.contains(s)) {
return Some("not every scene");
}
let named = |v: &Value| v.as_str().is_some_and(|s| !trim(s).is_empty());
if !named(&report["hardware"]["gpu"]["name"]) || !named(&report["hardware"]["cpu"]) {
return Some("no GPU or CPU name");
}
None
}
fn mean(xs: &[f64]) -> Option<f64> {
(!xs.is_empty()).then(|| xs.iter().sum::<f64>() / xs.len() as f64)
}
pub fn median(xs: &[f64]) -> Option<f64> {
let mut v: Vec<f64> = xs.iter().copied().filter(|x| x.is_finite()).collect();
if v.is_empty() {
return None;
}
v.sort_by(f64::total_cmp);
let m = v.len() / 2;
Some(if v.len() % 2 == 1 {
v[m]
} else {
(v[m - 1] + v[m]) / 2.0
})
}
/// fps to integers, milliseconds to a tenth under 10 and to integers above, megabytes to integers.
pub fn round(field: &str, x: f64) -> f64 {
if field.ends_with("_ms") && x < 10.0 {
(x * 10.0).round() / 10.0
} else {
x.round()
}
}
/// Whole numbers as integers (`515`, not `515.0`), as JavaScript writes them.
fn number(x: f64) -> Value {
if x.fract() == 0.0 && x.abs() < 9e15 {
json!(x as i64)
} else {
json!(x)
}
}
/// A report's figures: frame figures averaged over every flight, the rest from its metrics.
pub fn figures(report: &Value) -> [Option<f64>; 7] {
let frames = report["frames"]
.as_array()
.map(Vec::as_slice)
.unwrap_or(&[]);
let avg = |key: &str| {
mean(
&frames
.iter()
.filter_map(|f| f[key].as_f64())
.collect::<Vec<_>>(),
)
};
let metrics = report["metrics"].as_object();
let metric = |name: &str| metrics.and_then(|m| m.get(name)?.get("mean")?.as_f64());
let loads: Vec<f64> = metrics
.map(|m| {
m.iter()
.filter(|(k, _)| {
k.strip_prefix("chunks.")
.and_then(|k| k.strip_suffix(".load_ms"))
.is_some_and(|scene| !scene.contains('.'))
})
.filter_map(|(_, v)| v.get("mean")?.as_f64())
.collect()
})
.unwrap_or_default();
[
avg("avg_fps"),
avg("low_1pct_fps"),
avg("p95_ms"),
metric("startup.world_ms"),
mean(&loads),
metric("memory.rss_peak_mb"),
metric("memory.rss_steady_mb"),
]
}
/// "v0.2.10" after "v0.2.9", dated tags by their numbers: newest first.
fn newest_first(a: &str, b: &str) -> std::cmp::Ordering {
let n = |v: &str| -> Vec<u64> {
v.split(|c: char| !c.is_ascii_digit())
.filter(|p| !p.is_empty())
.filter_map(|p| p.parse().ok())
.collect()
};
n(b).cmp(&n(a))
}
#[derive(Default)]
struct Group {
installs: HashMap<Vec<u8>, Vec<[Option<f64>; 7]>>,
reports: usize,
versions: BTreeSet<String>,
}
/// Players' groups of at least `min_installs` installs, as `website/scripts/benchmarks.mjs` makes them.
pub fn groups(uploads: &[Upload], min_installs: usize) -> Vec<Value> {
let mut by: BTreeMap<(String, String, i64, &str), Group> = BTreeMap::new();
for u in uploads {
if u.install.is_empty() || rejection(&u.report).is_some() {
continue;
}
let r = &u.report;
let key = (
trim(r["hardware"]["gpu"]["name"].as_str().unwrap_or_default()),
trim(r["hardware"]["cpu"].as_str().unwrap_or_default()),
r["conditions"]["render_distance"]
.as_f64()
.unwrap_or_default() as i64,
game(&r["app"]).unwrap_or_default(),
);
let g = by.entry(key).or_default();
g.reports += 1;
if !u.version.is_empty() {
g.versions.insert(u.version.clone());
}
g.installs
.entry(u.install.clone())
.or_default()
.push(figures(r));
}
let mut out: Vec<(usize, Value)> = by
.into_iter()
.filter(|(_, g)| g.installs.len() >= min_installs)
.map(|((gpu, cpu, rd, game), g)| {
let per_install: Vec<[Option<f64>; 7]> = g
.installs
.values()
.map(|runs| {
std::array::from_fn(|i| median(&runs.iter().filter_map(|r| r[i]).collect::<Vec<_>>()))
})
.collect();
let medians: serde_json::Map<String, Value> = FIELDS
.iter()
.enumerate()
.map(|(i, f)| {
let m = median(&per_install.iter().filter_map(|r| r[i]).collect::<Vec<_>>());
(f.to_string(), m.map_or(Value::Null, |m| number(round(f, m))))
})
.collect();
let mut versions: Vec<String> = g.versions.into_iter().collect();
versions.sort_by(|a, b| newest_first(a, b));
versions.truncate(3);
let installs = g.installs.len();
(
installs,
json!({
"gpu": gpu, "cpu": cpu, "render_distance": rd, "game": game, "source": "players",
"installs": installs, "reports": g.reports, "versions": versions, "medians": medians,
}),
)
})
.collect();
// Most installs first, then by GPU and render distance (the map's order).
out.sort_by_key(|g| std::cmp::Reverse(g.0));
out.into_iter().map(|(_, v)| v).collect()
}
/// The whole answer; `generated` is an RFC 3339 UTC time.
pub fn summary(uploads: &[Upload], min_installs: usize, generated: &str) -> Value {
json!({
"format": FORMAT, "version": 1, "generated": generated, "min_installs": min_installs,
"groups": groups(uploads, min_installs),
})
}
@@ -198,14 +198,30 @@ async fn an_address_is_rate_limited() {
s.post(&install(9), vec![perf("x", 8)]).await,
StatusCode::TOO_MANY_REQUESTS
);
let from = |forwarded: &str, real: Option<&str>| {
let body = batch::encode(&Batch::new(&install(9), vec![perf("x", 8)]));
let mut req = Request::post("/v1/batch")
.header("x-forwarded-for", forwarded)
.header("content-encoding", "zstd");
if let Some(ip) = real {
req = req.header("x-real-ip", ip);
}
req.body(Body::from(body)).unwrap()
};
// A client can't pick its address: the proxy adds the real one last, or sets X-Real-IP.
assert_eq!(
s.send(from("198.51.100.7, 203.0.113.9", None)).await.0,
StatusCode::TOO_MANY_REQUESTS
);
assert_eq!(
s.send(from("198.51.100.7", Some("203.0.113.9"))).await.0,
StatusCode::TOO_MANY_REQUESTS
);
// Another address has its own allowance.
let body = batch::encode(&Batch::new(&install(9), vec![perf("x", 8)]));
let req = Request::post("/v1/batch")
.header("x-forwarded-for", "198.51.100.7, 10.0.0.1")
.header("content-encoding", "zstd")
.body(Body::from(body))
.unwrap();
assert_eq!(s.send(req).await.0, StatusCode::NO_CONTENT);
assert_eq!(
s.send(from("203.0.113.9, 198.51.100.7", None)).await.0,
StatusCode::NO_CONTENT
);
}
#[tokio::test]
@@ -0,0 +1,180 @@
//! `GET /v1/benchmarks/summary` against the website's fixtures (website/scripts/fixtures/benchmarks/): the same
//! uploads must give the groups `website/scripts/benchmarks.mjs` gives.
use std::sync::Arc;
use std::sync::atomic::AtomicU32;
use axum::body::Body;
use axum::http::{Request, StatusCode};
use horizon_telemetry::Item;
use horizon_telemetry::batch::{self, Batch};
use horizon_telemetry::payload::{Payload, Source};
use horizon_telemetry_server::store::Store;
use horizon_telemetry_server::summary::{self, Upload};
use horizon_telemetry_server::{App, Config, router};
use http_body_util::BodyExt;
use serde_json::Value;
use tower::ServiceExt;
const FIXTURES: &str = concat!(
env!("CARGO_MANIFEST_DIR"),
"/../../website/scripts/fixtures/benchmarks"
);
fn items() -> Vec<Value> {
std::fs::read_to_string(format!("{FIXTURES}/items.jsonl"))
.unwrap()
.lines()
.filter(|l| !l.trim().is_empty())
.map(|l| serde_json::from_str(l).unwrap())
.collect()
}
fn expected() -> Value {
serde_json::from_str(&std::fs::read_to_string(format!("{FIXTURES}/expected.json")).unwrap())
.unwrap()
}
/// The fixtures' short install names as the 32 hex digits real installs have.
fn install_id(name: &str) -> String {
format!(
"{:032x}",
name.bytes().fold(0u128, |n, b| n * 257 + u128::from(b))
)
}
#[test]
fn the_fixtures_give_the_websites_groups() {
let uploads: Vec<Upload> = items()
.into_iter()
.map(|i| Upload {
install: i["install_id"]
.as_str()
.unwrap_or_default()
.as_bytes()
.to_vec(),
version: i["version"].as_str().unwrap_or_default().to_owned(),
report: i["data"].clone(),
})
.collect();
let s = summary::summary(&uploads, summary::MIN_INSTALLS, "2026-11-03T00:00:00Z");
let want = expected();
assert_eq!(s["format"], "horizon-benchmark-summary");
assert_eq!(s["version"], 1);
assert_eq!(s["min_installs"], want["min_installs"]);
assert_eq!(s["groups"], want["groups"]);
}
#[test]
fn only_comparable_runs_count() {
let reasons: Vec<&str> = items()
.iter()
.filter_map(|i| summary::rejection(&i["data"]))
.collect();
assert_eq!(
reasons,
[
"VSync on or unknown",
"offscreen",
"frame rate capped",
"not every scene",
"not the standard flight",
"not a version 1 benchmark report"
]
);
}
#[test]
fn medians_and_rounding() {
assert_eq!(summary::median(&[3.0, 1.0, 2.0]), Some(2.0));
assert_eq!(summary::median(&[4.0, 1.0, 2.0, 3.0]), Some(2.5));
assert_eq!(summary::median(&[f64::NAN]), None);
assert_eq!(summary::round("p95_ms", 3.46), 3.5);
assert_eq!(summary::round("world_ms", 4512.4), 4512.0);
assert_eq!(summary::round("avg_fps", 99.5), 100.0);
}
async fn get(app: &Arc<App>, uri: &str) -> (StatusCode, String, Option<String>) {
let res = router(app.clone())
.oneshot(Request::get(uri).body(Body::empty()).unwrap())
.await
.unwrap();
let code = res.status();
let origin = res
.headers()
.get("access-control-allow-origin")
.map(|v| v.to_str().unwrap().to_owned());
let body = res.into_body().collect().await.unwrap().to_bytes();
(code, String::from_utf8_lossy(&body).into_owned(), origin)
}
/// Uploaded through `POST /v1/batch` as the launcher sends them, then read back from the endpoint.
#[tokio::test]
async fn uploads_come_back_grouped_and_anonymous() {
let day = Arc::new(AtomicU32::new(20_396));
let clock = day.clone();
let config = Config {
requests_per_hour: 1e6,
..Config::default()
};
let app = App::with_clock(
Store::open(":memory:").unwrap(),
config,
Box::new(move || clock.load(std::sync::atomic::Ordering::SeqCst)),
);
for i in items() {
let Some(name) = i["install_id"].as_str() else {
continue; // an item without an install can't be sent
};
let item = Item::new(
Source::Game,
i["version"].as_str().unwrap(),
Payload::Benchmark(i["data"].clone()),
);
let body = batch::encode(&Batch::new(&install_id(name), vec![item]));
let res = router(app.clone())
.oneshot(
Request::post("/v1/batch")
.header("content-encoding", "zstd")
.body(Body::from(body))
.unwrap(),
)
.await
.unwrap();
assert_eq!(res.status(), StatusCode::NO_CONTENT, "{name}");
}
let (code, body, origin) = get(&app, "/v1/benchmarks/summary").await;
assert_eq!(code, StatusCode::OK);
assert_eq!(origin.as_deref(), Some("https://playhorizon.dev"));
let s: Value = serde_json::from_str(&body).unwrap();
assert_eq!(s["groups"], expected()["groups"]);
let generated = s["generated"].as_str().unwrap();
assert!(
generated.len() == 20 && generated.ends_with('Z'),
"{generated}"
);
for secret in [
install_id("a1").as_str(),
"install_id",
"secret-os-version",
"secret-driver",
"20394",
"ram_mb",
] {
assert!(!body.contains(secret), "{secret} in {body}");
}
// Deleting one of the three installs takes the group below three: it goes at once.
let res = router(app.clone())
.oneshot(
Request::delete(format!("/v1/installs/{}", install_id("a3")))
.body(Body::empty())
.unwrap(),
)
.await
.unwrap();
assert_eq!(res.status(), StatusCode::NO_CONTENT);
let (_, body, _) = get(&app, "/v1/benchmarks/summary").await;
let s: Value = serde_json::from_str(&body).unwrap();
assert_eq!(s["groups"], serde_json::json!([]));
}
+29 -7
View File
@@ -33,16 +33,21 @@ pub const SCHEMA: u32 = 1;
/// and until the player answers nothing new is kept or sent.
pub const CONSENT_VERSION: u32 = 1;
/// The ingest server, or none while there isn't one: then nothing is ever sent (no ping either)
/// and the outbox stays within its caps. `HORIZON_TELEMETRY_URL` overrides it (tests, a local
/// server).
pub const DEFAULT_ENDPOINT: Option<&str> = None;
/// The ingest server (`crates/horizon-telemetry-server`, on Railway). `HORIZON_TELEMETRY_URL`
/// overrides it (a local server); `HORIZON_TELEMETRY_URL=off` sends nothing at all, no ping
/// either (tests and automated runs). What is sent still depends on the player's switches.
pub const DEFAULT_ENDPOINT: &str = "https://telemetry.playhorizon.dev";
/// Where items are sent, if anywhere.
pub fn endpoint() -> Option<String> {
match std::env::var("HORIZON_TELEMETRY_URL") {
Ok(url) if !url.trim().is_empty() => Some(url.trim().trim_end_matches('/').to_owned()),
_ => DEFAULT_ENDPOINT.map(str::to_owned),
resolve(std::env::var("HORIZON_TELEMETRY_URL").ok().as_deref())
}
fn resolve(var: Option<&str>) -> Option<String> {
match var.map(str::trim) {
Some("off" | "none" | "0") => None,
Some(url) if !url.is_empty() => Some(url.trim_end_matches('/').to_owned()),
_ => Some(DEFAULT_ENDPOINT.to_owned()),
}
}
@@ -100,3 +105,20 @@ pub(crate) mod test_home {
dir
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn the_endpoint_defaults_to_the_server_and_can_be_moved_or_turned_off() {
assert_eq!(resolve(None).as_deref(), Some(DEFAULT_ENDPOINT));
assert_eq!(resolve(Some(" ")).as_deref(), Some(DEFAULT_ENDPOINT));
assert_eq!(
resolve(Some("http://127.0.0.1:8080/")).as_deref(),
Some("http://127.0.0.1:8080")
);
assert_eq!(resolve(Some("off")), None);
assert!(DEFAULT_ENDPOINT.starts_with("https://") && !DEFAULT_ENDPOINT.ends_with('/'));
}
}
+48 -4
View File
@@ -474,6 +474,41 @@ impl Palette {
}
}
impl Blocks {
/// Every colour by its CSS name. The website reads the Blocks palettes; the first twelve keep
/// the names of [`Palette::named`] (`plate-soft` is `raised`, `plate` is `button`, `surface`
/// is `panel`, `on-accent` is `on_face`), so styles written for those still apply.
pub fn named(&self) -> [(&'static str, u32); 25] {
[
("page", self.page),
("plate-soft", self.raised),
("plate", self.button),
("surface", self.panel),
("rule", self.rule),
("ink", self.ink),
("ink-soft", self.ink_soft),
("muted", self.muted),
("accent", self.accent),
("on-accent", self.on_face),
("danger", self.danger),
("success", self.success),
("warn", self.warn),
("side", self.side),
("panel", self.panel),
("raised", self.raised),
("button", self.button),
("button-bevel", self.button_bevel),
("well", self.well),
("bevel", self.bevel),
("lip", self.lip),
("outline", self.outline),
("face", self.face),
("face-bevel", self.face_bevel),
("face-lip", self.face_lip),
]
}
}
/// The WCAG 2 contrast ratio of two colours.
pub fn contrast(a: u32, b: u32) -> f32 {
fn luminance(c: u32) -> f32 {
@@ -499,10 +534,12 @@ pub fn css() -> String {
let t = format!("{v:.3}");
t.trim_end_matches('0').trim_end_matches('.').to_string()
};
let colors = |s: &mut String, p: &Palette| {
// The website wears the launcher's Blocks look; the game's menus keep LIGHT and DARK.
let colors = |s: &mut String, p: &Blocks| {
for (name, c) in p.named() {
let _ = writeln!(s, " --{name}: #{c:06x};");
}
let _ = writeln!(s, " --on-face: #{:06x};", p.on_face);
let _ = writeln!(
s,
" color-scheme: {};",
@@ -513,11 +550,18 @@ pub fn css() -> String {
"/* Generated from crates/horizon-theme by `cargo run -p xtask -- tokens`; do not edit.\n \
docs/design-system.md describes the tokens. */\n\n:root {\n",
);
colors(&mut s, &LIGHT);
colors(&mut s, &BLOCKS_LIGHT);
let _ = writeln!(
s,
" --font: \"{FONT}\", ui-sans-serif, system-ui, sans-serif;\n --mono: \"{MONO}\", ui-monospace, monospace;"
" --font: \"{FONT}\", ui-sans-serif, system-ui, sans-serif;\n --mono: \"{MONO}\", ui-monospace, monospace;\n --pixel: \"{PIXEL}\", \"{FONT}\", ui-sans-serif, sans-serif;"
);
for (name, v) in [
("block-outline", BLOCK_OUTLINE),
("block-bevel", BLOCK_BEVEL),
("block-lip", BLOCK_LIP),
] {
let _ = writeln!(s, " --{name}: {}px;", num(v));
}
for step in TYPE {
let size = match step.web {
Web::Fixed => format!("{}px", num(step.px)),
@@ -576,7 +620,7 @@ pub fn css() -> String {
"}\n\n@media (prefers-color-scheme: dark) {\n :root:not([data-theme=\"light\"]) {\n",
);
let mut dark = String::new();
colors(&mut dark, &DARK);
colors(&mut dark, &BLOCKS_DARK);
for line in dark.lines() {
let _ = writeln!(s, " {line}");
}
+22 -20
View File
@@ -140,37 +140,39 @@ Geist (400, 500, 600) and Geist Mono (400), bundled under the SIL Open Font Lice
landscape banner with the hero, the version picker and Play; Mods holds the resource pack,
shader pack and modpack tabs; Versions and Patch notes are lists of panels; Settings is
grouped panels of rows. Dark by default, Light or System in Settings (Appearance).
- **Website** (`website/`): the same page structure as before (what it is, screenshots,
parity, launcher, patch notes, community), each section a `micro` mono label, a `display`
heading and a short paragraph, its content an index list. Screenshots stay as images (radius
12, no frame). Light and dark follow the system, with a toggle. A giant faint wordmark sits
above the footer. No hero photograph: the first screen is the headline, one paragraph, the
download button and the parity score as an index row.
- **Website** (`website/`): the Blocks look below. The same page structure as before (what it
is, screenshots, parity, launcher, patch notes, community), headings in Pixelify Sans, lists as
stacks of panels, the stone texture behind the page and Horizon's pixel landscape (a dawn or a
sunset) behind the hero. Light and dark follow the system, with a toggle. A giant wordmark in
pixels sits in the footer.
- **Game**: vanilla's screens. The on-screen keyboard is a rounded plate of keys in the page
colour, the focused key in the accent.
## Blocks (the launcher)
## Blocks
The launcher's look since the gaming redesign: Minecraft's inventory rather than a document.
Its tokens are `horizon_theme::Blocks` (`BLOCKS_DARK`, `BLOCKS_LIGHT`); the palettes above stay
what the game's menus read.
A blocky, Minecraft-like look in Horizon's purple, for the website and the redesigned launcher:
Minecraft's inventory rather than a document. Its colours are `horizon_theme::Blocks`
(`BLOCKS_LIGHT`, `BLOCKS_DARK`), which `tokens.css` carries under the same names as before plus
`--panel`, `--raised`, `--button`, `--well`, `--bevel`, `--lip`, `--outline` and the `--face`
of the main action. The game's menus keep `LIGHT` and `DARK`.
- **Pixel type for what you act on.** Headings, tabs, buttons, badges and the wordmark use Pixelify
Sans (Medium, SemiBold, Bold); paragraphs, details and numbers stay in Geist and Geist Mono so long
text reads easily.
- **Blocks, not rounded cards.** Every surface is a square panel: a 2 px dark outline, a 2 px light
bevel along the top and a darker lip along the bottom. The main action (Play, Install) is the
violet `face` with its own bevel and a 4 px lip; secondary buttons are raised `button` blocks;
fields and tracks are sunk `well`s.
- **Pixel type for what names and what you act on.** Headings, navigation, buttons and the
wordmark use Pixelify Sans (OFL; Medium, SemiBold, Bold); paragraphs and numbers stay in Geist
and Geist Mono so long text reads easily.
- **Blocks, not rounded cards.** Every surface is square: a 2 px dark outline, a 2 px light bevel
along the top and a darker lip along the bottom. The main action is the violet face with its own
bevel and a 4 px lip; it sinks a pixel when pressed. Code and fields are sunk wells.
- **Inventory tabs** switch the kinds in Mods: the open tab joins the panel under it.
- **Slots** hold pictures: a mod's or pack's own icon and gallery images from its source,
downloaded when first shown and kept on disk (`launcher/src/browser/images.rs`); the launcher
ships no third-party pictures. The Horizon instance shows a grass block drawn from the player's
own prepared Minecraft textures. Sources are named in text ("from Modrinth"): Modrinth's logo is
all rights reserved, so it is not shown.
- **Pixel art made in code** (`launcher/src/art.rs`): the stone behind the pages (16 texel tiles in
five shades of the page colour) and the landscape behind Home (a sunset in dark, a dawn in light),
baked at the window's scale so each texel covers whole device pixels.
- **Pixel art drawn in code.** The stone behind the pages is close shades of the page colour
(`TILE_SHADES`), never Minecraft's stone; the landscape is a banded sky, a sun cut in slices like
the mark, hills and square trees (a sunset in dark, a dawn in light). The launcher bakes them in
`launcher/src/art.rs` at the window's scale so each texel covers whole device pixels; the website
draws them in `website/scripts/art.mjs`.
- **Icons**: Pixelarticons (MIT), 24 unit pixel SVGs in `crates/horizon-theme/icons/pixel/`, tinted
with the text colour.
- **Contrast**: every text colour meets WCAG AA (4.5:1) on the panels, the page and the lightest
+5 -3
View File
@@ -45,7 +45,8 @@ Never sent: account names or UUIDs, world names, server or LAN addresses, chat,
- `telemetry/outbox/` holds one JSON file per item, `<day>-<kind>-<random>.json`. It never holds more than 200 items or 2 MiB, and the oldest go first. `kept.json` counts today's items per kind against the caps above.
- The launcher sends the outbox when it starts and when it closes. Items go as one JSON batch (`{"schema":1,"install_id":…,"items":[…]}`, up to 64 items and 1 MiB), compressed with zstd: `POST /v1/batch` with `Content-Encoding: zstd`. A day's perf summaries are under 2 KB on the wire.
- After a failure the launcher waits a minute, doubling up to a day, and sends at most 8 batches a day. A batch the server refuses with a 4xx (not 429) is dropped.
- `HORIZON_TELEMETRY_URL` sets the server. There is none by default: until there is, nothing is sent and the outbox stays within its caps.
- The server is `https://telemetry.playhorizon.dev` (`DEFAULT_ENDPOINT`), on Railway in the EU (`europe-west4`, Amsterdam). `HORIZON_TELEMETRY_URL` names another one (a local server); `HORIZON_TELEMETRY_URL=off` sends nothing at all, no ping either. Tests, CI and the benchmark and test harnesses set `off`.
- What is sent still depends on the switches: with every switch off nothing but the ping leaves, and the outbox stays empty.
- `SCHEMA` versions the format. New optional fields keep it. A field that changes meaning or goes bumps it, and the server keeps reading the older ones.
## The "I'm playing" ping
@@ -68,13 +69,14 @@ The server keeps sessions in memory only, never on disk, and never with the send
{ "playing": 1240, "lan": 85, "versions": { "v2026.10.22": 1100, "other": 140 }, "platforms": { "linux": 300, "macos": 240, "windows": 700 } }
```
The launcher reads it when it opens and every minute after, and shows "N playing now" on the Play page. It shows nothing when the server can't be reached. Like the rest, there is no server by default (`HORIZON_TELEMETRY_URL`): until there is one, the game sends no ping and the launcher shows no count. `HORIZON_NO_HEARTBEAT=1` keeps automated runs out of the count.
The launcher reads it when it opens and every minute after, and shows "N playing now" on the Play page. It shows nothing when the server can't be reached. `HORIZON_TELEMETRY_URL=off` turns both off; `HORIZON_NO_HEARTBEAT=1` keeps a single automated run out of the count.
## Server
- `POST /v1/batch`
- `DELETE /v1/installs/<install_id>`: deletes everything sent under that ID.
- `GET /v1/aggregate`: the anonymous totals the website's results page reads.
- `GET /v1/benchmarks/summary`: players' benchmark uploads grouped by GPU, CPU, render distance and game for playhorizon.dev/benchmarks. A group shows only with at least 3 different installs, and only its medians and counts: no install ID, day, OS version, driver, memory or screen. Uploads are never published one by one.
- `POST /v1/live` and `GET /v1/live`: the "I'm playing" ping and the live count.
`crates/horizon-telemetry-server` is the server. Its [README](../crates/horizon-telemetry-server/README.md) covers storage (about 190 bytes per play session), retention (180 days of raw rows, anonymous daily totals kept), rate limits and hosting.
`crates/horizon-telemetry-server` is the server, at `https://telemetry.playhorizon.dev` on Railway (one SQLite file on a volume, region `europe-west4`). Its [README](../crates/horizon-telemetry-server/README.md) covers storage (about 190 bytes per play session), retention (180 days of raw rows, anonymous daily totals kept), rate limits and hosting.
+1 -1
View File
@@ -765,7 +765,7 @@ fn data(action: DataCmd, as_json: bool) -> Result<(), String> {
println!("Waiting to be sent: {}", status["waiting"]);
match horizon_telemetry::endpoint() {
Some(url) => println!("Server: {url}"),
None => println!("Server: none yet, nothing is sent"),
None => println!("Server: turned off (HORIZON_TELEMETRY_URL=off), nothing is sent"),
}
}
DataCmd::Allow { kinds } => {
+1 -1
View File
@@ -307,7 +307,7 @@ impl Launcher {
let server = if horizon_telemetry::endpoint().is_some() {
format!("{waiting} waiting to be sent")
} else {
"No data server yet: nothing is sent".into()
"Sending is turned off here (HORIZON_TELEMETRY_URL=off)".into()
};
let confirm = self.collection.confirm_delete;
let actions = div()
+5 -3
View File
@@ -54,7 +54,7 @@ pub fn playing_now() -> Option<u64> {
}
/// Sends [`playing_now`] to the window as `Msg::Playing` now and every minute, on its own
/// thread. Nothing at all when there is no server.
/// thread. Nothing at all when sending is turned off.
pub fn watch_playing(tx: std::sync::mpsc::Sender<backend::Msg>) {
if horizon_telemetry::endpoint().is_none() {
return;
@@ -151,7 +151,9 @@ pub fn delete_my_data() -> Result<String, String> {
outbox::clear(&home).map_err(|e| e.to_string())?;
let remote = match horizon_telemetry::endpoint() {
_ if consent.install_id.is_empty() => "Nothing was ever sent from here.",
None => "Nothing was sent: there is no data server yet.",
None => {
"Sending is turned off here (HORIZON_TELEMETRY_URL=off), so the server was not asked."
}
Some(url) => {
upload::delete_remote(&url, &consent.install_id)
.map_err(|e| format!("The server could not be reached ({e}). Try again later."))?;
@@ -230,7 +232,7 @@ pub fn submit(item: &Item) -> Result<String, String> {
Ok(match send() {
Flush::Sent { .. } => "Sent. Thank you.".into(),
Flush::Nothing if horizon_telemetry::endpoint().is_none() => {
"Kept to be sent once the data server is up.".into()
"Kept; sending is turned off here (HORIZON_TELEMETRY_URL=off).".into()
}
_ => "Kept; it will be sent the next time the launcher starts.".into(),
})
+2 -1
View File
@@ -64,7 +64,7 @@ class Failed(Exception):
def game_env(screen):
if sys.platform == 'darwin':
return dict(os.environ, HORIZON_NO_AUDIO='1')
return dict(os.environ, HORIZON_NO_AUDIO='1', HORIZON_TELEMETRY_URL='off')
env = dict(os.environ, VSCREEN=screen)
subprocess.run(['vscreen', 'up'], env=env, check=False, capture_output=True)
text = subprocess.run(['vscreen', 'env'], env=env, capture_output=True, text=True, check=True).stdout
@@ -72,6 +72,7 @@ def game_env(screen):
for match in re.finditer(r'(\w+)=(\S+)', text.split('unset')[0]):
env[match.group(1)] = match.group(2)
env['HORIZON_NO_AUDIO'] = '1'
env['HORIZON_TELEMETRY_URL'] = 'off' # no live-count ping from test games
if LAVAPIPE.exists():
env['VK_ICD_FILENAMES'] = str(LAVAPIPE)
return env
+2
View File
@@ -61,6 +61,8 @@ def vscreen_env():
env.pop("DISPLAY", None)
# Benchmark games never play sound on the machine's speakers.
env["HORIZON_NO_AUDIO"] = "1"
# Nor reach the telemetry server (docs/telemetry.md).
env["HORIZON_TELEMETRY_URL"] = "off"
return env
+131 -2
View File
@@ -123,6 +123,9 @@ address. The script then checks, from both sides, what a guest's game used to ge
it (#1222).
- frames: the host and the guest each put a diamond in an item frame and turn it, and put a
helmet on an armor stand and take it back (#1222).
- riding: the host and the guest each saddle and ride a horse (walk, jump), a pig and a strider
(with their sticks), a camel and a donkey, sit on a llama and fly a happy ghast, and
get off by sneaking; the other side sees the animal move.
- lightning: a bolt summoned beside the host, then the guest: both sides get the bolt and flash the
sky (on its server thread the host's window is a client of it too).
- flight: a player in creative double-taps jump and flies, stays up, and stops flying in survival:
@@ -166,7 +169,7 @@ ROOT = Path(__file__).resolve().parents[1]
GUEST_NAME = 'Guest'
# The host plays single player on its server thread (--server-thread).
SERVER_THREAD = False
CHECKS = ['tab', 'self', 'armour', 'nametags', 'walls', 'chest', 'crafting', 'sign', 'damage', 'mobs', 'hazards', 'pvp', 'arrows', 'kills', 'hurt', 'respawn', 'containers', 'feedback', 'titles', 'chat', 'commands', 'recipes', 'machines', 'brewing', 'loom', 'stonecutter', 'grindstone', 'anvil', 'smithing', 'enchanting', 'beacon', 'crafter', 'lectern', 'cartography', 'trials', 'clicks', 'sleep', 'predict', 'push', 'eat', 'eating', 'xp', 'objects', 'projectiles', 'worn', 'blast', 'barter', 'deflect', 'fireball', 'light', 'time', 'swings', 'cracks', 'plates', 'effects', 'portals', 'distance', 'growth', 'flight', 'ladder', 'boats', 'minecarts', 'frames', 'lightning']
CHECKS = ['tab', 'self', 'armour', 'nametags', 'walls', 'chest', 'crafting', 'sign', 'damage', 'mobs', 'hazards', 'pvp', 'arrows', 'kills', 'hurt', 'respawn', 'containers', 'feedback', 'titles', 'chat', 'commands', 'recipes', 'machines', 'brewing', 'loom', 'stonecutter', 'grindstone', 'anvil', 'smithing', 'enchanting', 'beacon', 'crafter', 'lectern', 'cartography', 'trials', 'clicks', 'sleep', 'predict', 'push', 'eat', 'eating', 'xp', 'objects', 'projectiles', 'worn', 'blast', 'barter', 'deflect', 'fireball', 'light', 'time', 'swings', 'cracks', 'plates', 'effects', 'portals', 'distance', 'growth', 'flight', 'ladder', 'boats', 'minecarts', 'frames', 'lightning', 'riding']
class Game:
@@ -2509,6 +2512,132 @@ def check_frames(host, guest, out):
return result
# Animals a player rides: (kind, summon NBT, what readies it, what is held to ride, the test
# while riding). `move` walks forward, `jump` charges the horse's jump bar, `rise` holds jump on
# a happy ghast, `sit` only rides (a llama goes where it likes).
RIDES = [
('horse', '{Tame:1b}', 'minecraft:saddle', None, 'move jump'),
('pig', '', 'minecraft:saddle', 'minecraft:carrot_on_a_stick', 'move'),
('strider', '', 'minecraft:saddle', 'minecraft:warped_fungus_on_a_stick', 'move'),
('camel', '', 'minecraft:saddle', None, 'move'),
('donkey', '{Tame:1b}', 'minecraft:saddle', None, 'move'),
('llama', '{Tame:1b}', None, None, 'sit'),
('happy_ghast', '', 'minecraft:white_harness', None, 'rise'),
]
HEIGHTS = {'horse': 1.6, 'donkey': 1.5, 'pig': 0.9, 'strider': 1.7, 'camel': 2.375, 'llama': 1.87,
'happy_ghast': 4.0}
def mob_seen(game, mob_id):
found = [m for m in game.raw('mobs', 96).get('near', []) if m['id'] == mob_id]
return found[0] if found else None
def hold(game, key, ticks):
game.raw('key', key, 'down')
game.wait(ticks)
game.raw('key', key, 'up')
def ride(player, other, label, spot, kind, nbt, ready, stick, test):
"""Summon `kind` in front of `player`, ready it (saddle, harness), get on with a right click,
run `test`, and get off by sneaking. The other side sees the animal move."""
x, y, z = spot
# In reach (3 blocks), clear of the player: a happy ghast is 4 blocks wide.
at = (x + 0.5, z + {'happy_ghast': 3.2, 'camel': 3.0}.get(kind, 2.5))
# The first item in hand before it appears: a happy ghast drifts out of reach quickly.
player('command', command=f'item replace entity @s weapon.mainhand with {ready or stick or "minecraft:air"}')
player('command', command=f'summon minecraft:{kind} {at[0]} {y} {at[1]} {nbt}')
player.wait(3)
found = [m for m in player.raw('mobs', 16).get('near', []) if m['kind'].endswith(kind) and m['health'] > 0]
assert found, f'the {label} sees no {kind}'
mob = found[0]
def click(item):
player('command', command=f'item replace entity @s weapon.mainhand with {item or "minecraft:air"}')
player.wait(2)
m = mob_seen(player, mob['id'])
assert m, f'the {label} lost its {kind}'
p = m['pos']
# Back in front of it if it wandered off (a happy ghast drifts away fast).
if abs(p[0] - (x + 0.5)) > 0.5 or abs(p[2] - at[1]) > 0.5:
player('command', command=f'tp @s {p[0]:.2f} {y} {p[2] - (at[1] - z - 0.5):.2f} 0 0')
player.wait(1)
player.raw('look-at', f'{p[0]:.2f}', f'{p[1] + HEIGHTS[kind] / 2:.2f}', f'{p[2]:.2f}')
player.raw('mouse', 'right', 'click')
player.wait(5)
try:
if ready:
click(ready)
click(stick)
riding = player('status').get('riding')
assert riding == mob['id'], f'the {label} right-clicked the {kind} {mob["id"]}: riding {riding}'
result = {'rode': True}
# South, along the cleared floor.
player.raw('look-at', f'{x + 0.5:.2f}', f'{y + 1.6:.2f}', f'{z + 40.5:.2f}')
player.wait(5)
start = mob_seen(player, mob['id'])['pos']
if 'move' in test:
hold(player, 'w', 60)
player.wait(5)
mine = mob_seen(player, mob['id'])['pos']
theirs = mob_seen(other, mob['id'])
moved = math.dist(start, mine)
assert moved > 1.0, f"the {label}'s {kind} moved {moved:.2f} blocks in 3 s of forward"
assert theirs and math.dist(theirs['pos'], mine) < 1.5, \
f"the other side sees the {label}'s {kind} at {theirs and theirs['pos']}, not {mine}"
seated = pos_of(player)
assert math.dist(seated[::2], mine[::2]) < 1.5, f'the {label} sits at {seated}, its {kind} at {mine}'
result['moved'] = round(moved, 2)
if 'jump' in test:
base = mob_seen(player, mob['id'])['pos'][1]
player.raw('key', 'space', 'down')
player.wait(10)
player.raw('key', 'space', 'up')
top = base
for _ in range(10):
player.wait(2)
top = max(top, mob_seen(player, mob['id'])['pos'][1])
assert top - base > 0.4, f"the {label}'s {kind} jumped {top - base:.2f} blocks"
result['jumped'] = round(top - base, 2)
if 'rise' in test:
base = mob_seen(player, mob['id'])['pos'][1]
hold(player, 'space', 40)
player.wait(5)
rose = mob_seen(player, mob['id'])['pos'][1] - base
assert rose > 0.5, f"the {label}'s {kind} rose {rose:.2f} blocks while it held jump"
result['rose'] = round(rose, 2)
hold(player, 'shift', 10)
player.wait(10)
riding = player('status').get('riding')
assert riding is None, f'sneaking off the {kind}: the {label} still rides {riding}'
return result
finally:
player('command', command=f'kill @e[type=minecraft:{kind},x={x},y={y},z={z},distance=..48]')
player('command', command=f'tp @s {x + 0.5} {y} {z + 0.5} 0 0')
player.wait(5)
def check_riding(host, guest, out):
"""The host (single player, on its server thread or not) and the guest each saddle and ride a
horse (walk and jump), a pig and a strider (with their sticks), a camel and a donkey, sit on a
llama, and harness and fly a happy ghast; they get off by sneaking."""
spots = apart(host, guest)
result = {}
for label, player, other in (('host', host, guest), ('guest', guest, host)):
x, y, z = spots[label]
player('command', command='gamemode survival')
player('command', command=f'fill {x - 3} {y - 1} {z - 3} {x + 4} {y - 1} {z + 40} minecraft:stone')
player('command', command=f'fill {x - 3} {y} {z - 3} {x + 4} {y + 12} {z + 40} minecraft:air')
player.wait(10)
result[label] = {}
# LAN_E2E_RIDES=pig,horse picks some of them.
only = [k for k in os.environ.get('LAN_E2E_RIDES', '').split(',') if k]
for kind, nbt, ready, stick, test in (r for r in RIDES if not only or r[0] in only):
result[label][kind] = ride(player, other, label, (x, y, z), kind, nbt, ready, stick, test)
player('command', command='item replace entity @s weapon.mainhand with minecraft:air')
return result
def check_lightning(host, guest, out):
"""A bolt summoned beside each player: both sides get the bolt entity and flash the sky (the
host's window too on its server thread, FEATURES 4z(f))."""
@@ -2848,7 +2977,7 @@ CHECK_FNS = {'tab': check_tab, 'self': check_self, 'armour': check_armour, 'name
'xp': check_xp, 'objects': check_objects, 'projectiles': check_projectiles, 'blast': check_blast,
'light': check_light, 'plates': check_plates,
'swings': check_swings, 'cracks': check_cracks,
'time': check_time, 'growth': check_growth, 'flight': check_flight, 'fireball': check_fireball, 'deflect': check_deflect, 'barter': check_barter, 'worn': check_worn, 'kills': check_kills, 'arrows': check_arrows, 'predict': check_predict, 'ladder': check_ladder, 'boats': check_boats, 'minecarts': check_minecarts, 'frames': check_frames, 'lightning': check_lightning}
'time': check_time, 'growth': check_growth, 'flight': check_flight, 'fireball': check_fireball, 'deflect': check_deflect, 'barter': check_barter, 'worn': check_worn, 'kills': check_kills, 'arrows': check_arrows, 'predict': check_predict, 'ladder': check_ladder, 'boats': check_boats, 'minecarts': check_minecarts, 'frames': check_frames, 'lightning': check_lightning, 'riding': check_riding}
def run(ctl, out, resources, checks):
+1 -1
View File
@@ -116,7 +116,7 @@ def main():
os.symlink(resources, version / '.local/horizon-client' / lab.VERSION)
(version / '.installed').write_text('')
env = dict(os.environ, HORIZON_LAUNCHER_HOME=str(work / 'launcher'), HORIZON_HOME=str(work / 'home'),
HORIZON_NO_AUDIO='1')
HORIZON_NO_AUDIO='1', HORIZON_TELEMETRY_URL='off')
m = Mcp(Path(args.launcher).resolve(), env)
try:
summary = scenario(m, out)
+2 -1
View File
@@ -364,7 +364,8 @@ def run_horizon(args, distance):
command.append("--offscreen")
for carry in dev_mods(args):
command += ["--dev-mod", str(carry)]
env = dict(os.environ, HORIZON_NO_AUDIO="1")
# Benchmark runs stay out of the live count and send nothing (docs/telemetry.md).
env = dict(os.environ, HORIZON_NO_AUDIO="1", HORIZON_TELEMETRY_URL="off")
if args.warm:
# A first start to the title screen builds what later starts reuse (the content-mod
# root, the block behaviour snapshot). It is not measured: players see it once.
+4 -2
View File
@@ -20,7 +20,7 @@
Referrer-Policy strict-origin-when-cross-origin
X-Frame-Options DENY
Permissions-Policy "interest-cohort=(), browsing-topics=(), camera=(), microphone=(), geolocation=()"
Content-Security-Policy "default-src 'self'; script-src 'self' {$CSP_SCRIPT}; style-src 'self' {$CSP_STYLE}; img-src 'self' data: https://avatars.githubusercontent.com; font-src 'self'; connect-src 'self' https://api.github.com https://raw.githubusercontent.com; frame-ancestors 'none'; base-uri 'self'; form-action 'self'"
Content-Security-Policy "default-src 'self'; script-src 'self' {$CSP_SCRIPT}; style-src 'self' {$CSP_STYLE}; img-src 'self' data: https://avatars.githubusercontent.com; font-src 'self'; connect-src 'self' https://api.github.com https://raw.githubusercontent.com https://telemetry.playhorizon.dev; frame-ancestors 'none'; base-uri 'self'; form-action 'self'"
-Server
}
@assets path /assets/*
@@ -31,9 +31,11 @@
redir /server /docs/hosting permanent
redir /server.html /docs/hosting permanent
rewrite /privacy /privacy.html
rewrite /releases /releases.html
rewrite /benchmarks /benchmarks.html
@doc path_regexp doc ^/docs/([a-z-]+)$
rewrite @doc /docs/{re.doc.1}.html
@pages path / /index.html /404.html /privacy.html /docs /docs/* /sitemap.xml
@pages path / /index.html /404.html /privacy.html /releases /releases.html /benchmarks /benchmarks.html /benchmarks.json /docs /docs/* /sitemap.xml
header @pages Cache-Control "no-cache"
@legal path /LEGAL.md /fonts/*.txt
header @legal Content-Type "text/plain; charset=utf-8"
+10 -4
View File
@@ -21,6 +21,7 @@ cookies. The only requests to other hosts are the browser's calls to `api.github
| File | Source | Licence |
| --- | --- | --- |
| `public/fonts/Geist-Regular.woff2`, `Geist-Medium.woff2`, `Geist-SemiBold.woff2`, `GeistMono-Regular.woff2` | Geist and Geist Mono, from `crates/horizon-theme/fonts` (converted from TTF to WOFF2) | SIL Open Font License 1.1, shipped as `public/fonts/OFL-Geist.txt` |
| `public/fonts/PixelifySans-Medium.woff2`, `PixelifySans-SemiBold.woff2`, `PixelifySans-Bold.woff2` | Pixelify Sans by The Pixelify Sans Project Authors (github.com/eifetx/Pixelify-Sans), from `crates/horizon-theme/fonts` (converted from TTF to WOFF2) | SIL Open Font License 1.1, shipped as `public/fonts/OFL-PixelifySans.txt` |
The fonts are self-hosted; nothing is fetched from a font service.
@@ -34,11 +35,16 @@ The fonts are self-hosted; nothing is fetched from a font service.
No Minecraft logo or wordmark appears anywhere on the site, in images or as text styling.
GitHub and Discord appear only as plain text links, without their logos.
## No hero image
## The pixel art
The page opens on type, not a photograph. The launcher's old background
(`launcher/assets/background.jpg`, from backgrounds.supply, licence never confirmed) is gone from
the repository, so the launcher's screenshots no longer show it.
| Files in `public/media/` | Source | Licence |
| --- | --- | --- |
| `stone-light.png`, `stone-dark.png` | The page's stone texture, drawn in code by `scripts/art.mjs` from the page colours of `crates/horizon-theme` | MIT, Horizon's original work |
| `scene-light.png`, `scene-dark.png` | The hero's landscape (a dawn and a sunset with Horizon's sliced sun), drawn in code by `scripts/art.mjs`, the same drawing as the launcher's Home banner (`launcher/src/art.rs`) | MIT, Horizon's original work |
No Minecraft texture is used: the stone is not Minecraft's stone, only shades of the page colour.
The launcher's old background (`launcher/assets/background.jpg`, from backgrounds.supply, licence
never confirmed) is gone from the repository, so the launcher's screenshots no longer show it.
## Screenshots
+38 -11
View File
@@ -2,12 +2,12 @@
Live at **https://playhorizon.dev**.
A landing page and a documentation section in Horizon's design language (`docs/design-system.md`), with the tokens of
A landing page, a Releases page, a Benchmarks page and a documentation section in Horizon's design language (`docs/design-system.md`), with the tokens of
`crates/horizon-theme` (generated into `src/tokens.css` by `cargo run -p xtask -- tokens`):
Geist and Geist Mono, cool neutrals in a light and a dark appearance (the system's, or the
toggle's) and one violet accent, numbered index lists with one-pixel rules, and short, eased
motion. A headline and the download, then a scroll through what it is, the screenshots, the parity grid, the launcher, the patch
notes, the community links and the contributors. Plain HTML, CSS and JavaScript; no framework and
the Blocks look: Pixelify Sans headings over Geist text, Horizon's purple in a light and a dark
appearance (the system's, or the toggle's), square panels with an outline, a bevel and a lip, a
stone texture and a pixel landscape drawn in code (`scripts/art.mjs`), and short, eased motion. A headline and the download, then a scroll through what it is, the screenshots, the parity grid, the launcher, the newest
releases, the community links and the contributors. Plain HTML, CSS and JavaScript; no framework and
no runtime dependencies.
## Layout
@@ -20,15 +20,26 @@ serve.mjs a tiny static server for local checks
src/index.html the page, with {{placeholders}} build.mjs fills
src/404.html the not-found page
src/privacy.html what the launcher can send when players allow it, retention, deletion (/privacy)
src/releases.html every release, newest first, with what it adds and fixes, its notes and downloads (/releases)
src/benchmarks.html Horizon against vanilla 26.3 on our machines, the hardware picker, players' results (/benchmarks)
src/docs.html the template of every documentation page (/docs/...), with its left navigation
src/tokens.css the design tokens, generated from crates/horizon-theme (do not edit)
src/style.css every style, on top of the tokens
src/main.js download buttons, patch notes, links, contributors, nav and menu, tabs, lightbox, motion
src/main.js the home page: download buttons, recent releases, links, contributors, nav, tabs, lightbox, motion
src/chrome.js the light/dark switch, the phone menu and GitHub fetching, shared by the pages
src/releases-page.js the Releases page: the channel filter and the refresh from GitHub
src/benchmarks-page.js the Benchmarks page: players' results from the telemetry server, the picker
src/bench.js the Benchmarks tables, shared by build and page
src/hardware.js the spec table estimates use (GPU TFLOPS and bandwidth, CPU single-thread score)
src/estimate.js estimates for unmeasured hardware from the nearest measured machine
src/markdown.js a small Markdown renderer (escapes everything), shared by build and page
src/releases.js the patch notes' markup, shared by build and page
src/releases.js the home page's "Recently added" and the Releases page's markup, shared by build and page
src/contributors.js the contributors' filtering and markup, shared by build and page
public/ fonts, screenshots, icons, og.png, robots.txt: copied as is (sitemap.xml is written by the build)
scripts/assets.mjs rebuilds public/ from the repo (fonts to WOFF2, images to WebP)
public/ fonts, screenshots, icons, og.png, robots.txt, benchmarks.json: copied as is (sitemap.xml is written by the build)
data/benchmarks/ our raw benchmark reports (tools/perf_bench.py) and fleet.json, the list scripts/benchmarks.mjs reads
scripts/benchmarks.mjs benchmark reports -> public/benchmarks.json (ours, and players' groups of 3+ installs)
scripts/assets.mjs rebuilds public/ from the repo (fonts to WOFF2, images to WebP, the pixel art)
scripts/art.mjs draws the stone tile and the hero's landscape (PNG, one pixel per texel)
scripts/shots.mjs Playwright screenshots at every width, and og.png
Dockerfile, Caddyfile, railway.json the Railway service
LEGAL.md every asset, its source and licence
@@ -45,8 +56,9 @@ shots/ (gitignored) full-page screenshots at 360–1920 px, a 1250×
the checkout; on Railway, which builds only this folder, from `main` on GitHub. The build
fails if the README has no parity table, so a broken README never deploys.
- **Fetched by the page**: the releases (the download button picks the newest
`launcher-v*` release's asset for the visitor's OS, and the three latest game releases'
notes are rendered), the contributors (avatars come from `avatars.githubusercontent.com`),
`launcher-v*` release's asset for the visitor's OS, the home page lists the newest game releases, and
the Releases page reloads its list when GitHub has a newer release), players' benchmark results
(`GET https://telemetry.playhorizon.dev/v1/benchmarks/summary`, 3-second timeout), the contributors (avatars come from `avatars.githubusercontent.com`),
and `links.json` from `main`. Each
falls back to what was built in, and the download button to the releases page.
@@ -106,3 +118,18 @@ GitHub's anonymous rate limit is hit.
- Parity is worded as the README words it: 100% of what the harnesses compare.
- No cookies, analytics, trackers or third-party fonts and scripts.
- Motion stops under `prefers-reduced-motion`; nothing hijacks the scroll.
## Benchmarks
`public/benchmarks.json` is what the Benchmarks page shows: `{ format: "horizon-benchmark-summary", version: 1,
generated, min_installs, groups }`, one group per GPU, CPU, render distance and game (`horizon`, `vanilla`) with
`medians` (`avg_fps`, `low_1pct_fps`, `p95_ms`, `world_ms`, `chunk_load_ms`, `rss_peak_mb`, `rss_steady_mb`).
Groups `"source": "us"` are our runs (with the machine, date, version and the four scenes); groups `"source":
"players"` come from players' `benchmark` uploads (docs/telemetry.md) and need at least `min_installs` (3)
different installs. The telemetry server's `GET /v1/benchmarks/summary` answers in the same shape; the page asks it
for players' groups and keeps the baked ones when it doesn't answer. The rules are in `scripts/benchmarks.mjs`, with
a fixture set (`scripts/fixtures/benchmarks/`) the server's test shares.
To publish new measurements: run `tools/perf_bench.py` for Horizon and vanilla on a machine (docs/benchmark.md), copy
the reports into `data/benchmarks/`, list them in `data/benchmarks/fleet.json`, then
`node scripts/benchmarks.mjs --ours data/benchmarks/fleet.json`.
+96 -18
View File
@@ -11,7 +11,9 @@ import { createHash } from "node:crypto";
import { join, dirname } from "node:path";
import { fileURLToPath } from "node:url";
import { markdown, inline, section, escape } from "./src/markdown.js";
import { releasesHtml } from "./src/releases.js";
import { recentHtml, releasesPageHtml } from "./src/releases.js";
import { machinesHtml, playersHtml } from "./src/bench.js";
import { CPUS, GPUS, singleThread } from "./src/hardware.js";
import { isGame, isLauncher, launcherVersion, newestFirst } from "./src/versions.js";
import { contributorsFrom, contributorsHtml } from "./src/contributors.js";
@@ -41,11 +43,18 @@ try {
// An optional token (a Railway variable, or `gh auth token` locally) lifts the rate limit.
const githubHeaders = { Accept: "application/vnd.github+json", ...(process.env.GITHUB_TOKEN ? { Authorization: `Bearer ${process.env.GITHUB_TOKEN}` } : {}) };
// Every release (the Releases page lists them all), a page of 100 at a time.
let releases = [];
try {
const res = await fetch(`https://api.github.com/repos/${REPO}/releases?per_page=100`, { headers: githubHeaders, signal: AbortSignal.timeout(15000) });
if (res.ok) releases = (await res.json()).filter((r) => !r.draft);
else console.warn(`releases: ${res.status} from GitHub; the page will load them itself`);
let res;
for (let page = 1; page <= 5; page++) {
res = await fetch(`https://api.github.com/repos/${REPO}/releases?per_page=100&page=${page}`, { headers: githubHeaders, signal: AbortSignal.timeout(15000) });
if (!res.ok) break;
const batch = await res.json();
releases.push(...batch.filter((r) => !r.draft));
if (batch.length < 100) break;
}
if (!res.ok) console.warn(`releases: ${res.status} from GitHub; the pages will load them themselves`);
// A day of betas can push the stable release out of the newest 100: it is GitHub's "latest" (betas never are).
if (res.ok && !releases.some((r) => isGame(r.tag_name) && !r.prerelease)) {
const latest = await fetch(`https://api.github.com/repos/${REPO}/releases/latest`, { headers: githubHeaders, signal: AbortSignal.timeout(15000) });
@@ -110,14 +119,21 @@ const parityCells = body
const matching = body.filter(([, score]) => Number(score) === 1).length;
const parityHeadline = matching === body.length ? "Every subsystem matches vanilla." : `${matching} of ${body.length} subsystems match vanilla.`;
// --- The latest notes -------------------------------------------------
// --- The releases ----------------------------------------------------------------------
// Stable releases only: betas become stable 6 hours later (docs/release-flow.md, "Channels"). Newest first by
// tag: every 0.2 tag is newer than the dated ones (src/versions.js).
// Newest first by tag: every 0.2 tag is newer than the dated ones (src/versions.js). Alpha builds are GitHub
// pre-releases, Stable the others (docs/release-flow.md, "Channels").
const byTag = (a, b) => newestFirst(a.tag_name, b.tag_name);
const game = releases.filter((r) => isGame(r.tag_name) && !r.prerelease).sort(byTag).slice(0, 3);
const ours = releases.filter((r) => isGame(r.tag_name) || isLauncher(r.tag_name)).sort(byTag);
const game = ours.filter((r) => isGame(r.tag_name));
const launcher = releases.filter((r) => isLauncher(r.tag_name) && !r.prerelease).sort(byTag)[0];
// --- The benchmarks ----------------------------------------------------------------------
// public/benchmarks.json: our measurements (scripts/benchmarks.mjs from data/benchmarks/fleet.json) and, once the
// telemetry server has some, players' groups. The page shows it baked and asks the server for newer player results.
const benchSummary = JSON.parse(await readFile(join(site, "public", "benchmarks.json"), "utf8"));
// --- The page --------------------------------------------------------------------------
const fingerprint = (text) => createHash("sha256").update(text).digest("hex").slice(0, 10);
@@ -152,7 +168,9 @@ await writeFile(join(dist, "favicon.ico"), Buffer.concat([ico, png32]));
// The page's modules, fingerprinted; each import of a shared module is rewritten to its name.
const names = {};
const rewrite = (code) => code.replace(/"\.\/(\w+\.js)"/g, (all, file) => (names[file] ? `"./${names[file]}"` : all));
for (const file of ["markdown.js", "releases.js", "contributors.js", "versions.js", "main.js"]) {
// Dependencies before what imports them.
const modules = ["markdown.js", "versions.js", "chrome.js", "hardware.js", "estimate.js", "releases.js", "contributors.js", "bench.js", "main.js", "releases-page.js", "benchmarks-page.js"];
for (const file of modules) {
const code = rewrite(await readFile(join(site, "src", file), "utf8"));
names[file] = `${file.replace(".js", "")}.${fingerprint(code)}.js`;
await writeFile(join(dist, "assets", names[file]), code);
@@ -180,9 +198,53 @@ const baked = {
})),
};
const notesHtml =
releasesHtml(game) ||
`<p class="lede">The release notes could not be loaded here.</p><a class="button secondary" href="https://github.com/${REPO}/releases">Read them on GitHub</a>`;
const unavailable = `<p class="lede">The release notes could not be loaded here.</p><a class="button secondary" href="https://github.com/${REPO}/releases">Read them on GitHub</a>`;
// The top bar and the footer of the pages beside the home page (Releases, Benchmarks).
const navLinks = [["/#about", "About"], ["/releases", "Releases"], ["/benchmarks", "Benchmarks"], ["/docs/", "Docs"]];
const siteNav = (current) => ` <header class="nav is-scrolled" id="top">
<div class="nav-inner">
<a class="nav-mark" href="/" aria-label="Horizon, home"><svg class="mark" viewBox="0 0 16 16" aria-hidden="true"><path class="mark-stem" d="M4 3h2v4H4zM10 3h2v4h-2z"/><path class="mark-low" d="M4 8h2v4H4zM10 8h2v4h-2z"/><path class="mark-line" d="M1 7h14v1H1z"/></svg>Horizon</a>
<nav class="nav-links" aria-label="Pages">
${navLinks.map(([href, label]) => ` <a href="${href}"${href === current ? ' aria-current="page"' : ""}>${label}</a>`).join("\n")}
</nav>
<div class="nav-end">
<button class="theme-toggle" type="button" aria-label="Switch between light and dark"><span data-theme-label>Dark</span></button>
<a class="nav-github" href="https://github.com/${REPO}">GitHub</a>
<a class="button primary small" href="/docs/install">Download</a>
<button class="menu-button" type="button" aria-expanded="false" aria-controls="menu"><span class="menu-label">Menu</span><span class="menu-icon" aria-hidden="true"></span></button>
</div>
</div>
</header>
<div class="menu" id="menu" hidden>
<nav aria-label="Pages">
<a href="/">Home</a>
${navLinks.map(([href, label]) => ` <a href="${href}">${label}</a>`).join("\n")}
</nav>
<div class="menu-foot">
<a class="button secondary large" href="https://github.com/${REPO}">GitHub</a>
<p>Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.</p>
</div>
</div>`;
const siteFooter = ` <footer class="footer">
<div class="container">
<div class="footer-bar">
<span class="footer-mark">Made in the open, in Rust.</span>
<nav class="footer-links" aria-label="Elsewhere"><a href="/">Home</a><a href="/releases">Releases</a><a href="/benchmarks">Benchmarks</a><a href="/docs/">Docs</a><a href="https://github.com/${REPO}">GitHub</a><a href="/privacy">Privacy</a><a href="/LEGAL.md">Assets</a></nav>
</div>
</div>
<p class="footer-word" aria-hidden="true">horizon</p>
</footer>`;
const fixed = (x, n) => Number(x).toFixed(n);
const specTable =
`<table class="bench-table spec"><thead><tr><th scope="col">Graphics card</th><th scope="col">FP32 TFLOPS</th><th scope="col">Bandwidth, GB/s</th></tr></thead><tbody>` +
GPUS.map((g) => `<tr><th scope="row">${escape(g.name)}</th><td class="num">${fixed(g.tflops, 1)}</td><td class="num">${g.gbps}</td></tr>`).join("") +
`</tbody></table><table class="bench-table spec"><thead><tr><th scope="col">Processor</th><th scope="col">Boost, GHz</th><th scope="col">Generation factor</th><th scope="col">Single-thread score</th></tr></thead><tbody>` +
CPUS.map((c) => `<tr><th scope="row">${escape(c.name)}</th><td class="num">${fixed(c.ghz, 2)}</td><td class="num">${fixed(c.ipc, 2)}</td><td class="num">${fixed(singleThread(c), 2)}</td></tr>`).join("") +
`</tbody></table>`;
const options = (list, selected) => list.map((x) => `<option${x.name === selected ? " selected" : ""}>${escape(x.name)}</option>`).join("");
const playersGroups = benchSummary.groups.filter((g) => g.source === "players");
const values = {
CSS: `/assets/${cssName}`,
@@ -195,7 +257,21 @@ const values = {
PARITY_CELLS: parityCells,
PARITY_HEADLINE: parityHeadline,
SUBSYSTEMS: String(body.length),
NOTES: notesHtml,
RECENT: recentHtml(game) || unavailable,
SITE_NAV: "",
SITE_FOOTER: siteFooter,
RELEASES_JS: `/assets/${names["releases-page.js"]}`,
RELEASE_LIST: releasesPageHtml(ours) || unavailable,
RELEASE_COUNT: ours.length ? `${ours.length} releases` : "",
NEWEST_TAG: escape(ours[0]?.tag_name || ""),
BENCH_JS: `/assets/${names["benchmarks-page.js"]}`,
MACHINES: machinesHtml(benchSummary),
PLAYERS: playersHtml(benchSummary),
PLAYERS_SOURCE: `${playersGroups.length ? `${playersGroups.length} groups` : "No groups yet"}, as of ${benchSummary.generated.slice(0, 10)}. The page asks the telemetry server for newer ones.`,
GPU_OPTIONS: options(GPUS, "NVIDIA GeForce RTX 4060"),
CPU_OPTIONS: options(CPUS, "AMD Ryzen 5 5600X"),
SPEC_TABLE: specTable,
BENCH_DATA: JSON.stringify(benchSummary).replace(/</g, "\\u003c"),
LAUNCHER_META: `${launcher ? `Launcher ${escape(launcherVersion(launcher.tag_name))} for` : "For"} Linux x86-64, macOS on Apple Silicon and Windows x64.`,
DISCORD: escape(links.discord || DEFAULT_LINKS.discord),
SPONSOR: escape(links.sponsor || DEFAULT_LINKS.sponsor),
@@ -277,12 +353,14 @@ const docPages = renderedDocs.map((d, i) => {
};
});
const pages = ["index.html", "404.html", "privacy.html"];
const pages = ["index.html", "404.html", "privacy.html", "releases.html", "benchmarks.html"];
const currentPath = { "releases.html": "/releases", "benchmarks.html": "/benchmarks" };
for (const page of pages) {
let html = await readFile(join(site, "src", page), "utf8");
const own = { ...values, SITE_NAV: siteNav(currentPath[page]) };
html = html.replace(/\{\{(\w+)\}\}/g, (all, key) => {
if (!(key in values)) throw new Error(`${page}: unknown placeholder ${all}`);
return values[key];
if (!(key in own)) throw new Error(`${page}: unknown placeholder ${all}`);
return own[key];
});
html = html.replace(/href="\/(favicon\.svg|favicon-32\.png|apple-touch-icon\.png)"/g, (all, icon) => `href="/${icon}?v=${iconVersions[icon]}"`);
await writeFile(join(dist, page), html);
@@ -306,7 +384,7 @@ const hashes = (re) => [...new Set([...allHtml.matchAll(re)].map((m) => `'sha256
await writeFile(join(dist, ".csp-script"), hashes(/<script>([\s\S]*?)<\/script>/g));
await writeFile(join(dist, ".csp-style"), hashes(/<style>([\s\S]*?)<\/style>/g));
const urls = ["/", ...docs.map((d) => d.path), "/privacy"];
const urls = ["/", "/releases", "/benchmarks", ...docs.map((d) => d.path), "/privacy"];
await writeFile(
join(dist, "sitemap.xml"),
`<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n${urls.map((u) => ` <url><loc>https://playhorizon.dev${u}</loc></url>`).join("\n")}\n</urlset>\n`,
@@ -314,5 +392,5 @@ await writeFile(
console.log(
`built dist/ from ${readmeFrom}: ${body.length} subsystems, ${percent}, ${harnesses} harnesses, ` +
`${game.length} game releases baked${launcher ? `, launcher ${launcher.tag_name}` : ""}, ${contributors.length} contributors, ${docs.length} docs pages`,
`${ours.length} releases (${game.length} game)${launcher ? `, launcher ${launcher.tag_name}` : ""}, ${benchSummary.groups.length} benchmark rows, ${contributors.length} contributors, ${docs.length} docs pages`,
);
+46
View File
@@ -0,0 +1,46 @@
[
{
"machine": "Mac mini (M4 Pro)",
"reports": [
"macmini/horizon-macmini-rd12.json"
],
"version": "v2026.10.22.04",
"capped_fps": 144,
"note": "On macOS this Horizon build presents its frames in step with the 144 Hz display even with VSync off, so its average frame rate here is capped at 144: compare the 1% lows and frame times instead. The Mac mini was also running other jobs during the runs (CI, simulators; 1-minute load average 20 to 56 on 14 threads), which costs both games, vanilla more at render distance 32."
},
{
"machine": "Mac mini (M4 Pro)",
"reports": [
"macmini/horizon-macmini-rd32.json"
],
"version": "v2026.10.22.04",
"capped_fps": 144
},
{
"machine": "Mac mini (M4 Pro)",
"reports": [
"macmini/vanilla-macmini-rd12.json"
]
},
{
"machine": "Mac mini (M4 Pro)",
"reports": [
"macmini/vanilla-macmini-rd32.json"
]
},
{
"machine": "ThinkPad (i7-7500U, HD Graphics 620)",
"reports": [
"thinkpad/horizon-thinkpad-rd12.json"
],
"version": "v2026.10.22.04",
"note": "A 2016 laptop: 2 cores / 4 threads and Intel integrated graphics, Linux with Mesa 26.1.8 (Horizon on Vulkan, vanilla on OpenGL). It has no screen attached, so both games drew to a GPU compositor (sway on the Intel GPU) in a 1280x720 window. Horizon ran two flights per scene, vanilla two separate games of one. Render distance 32 is not shown: in 5 minutes neither game finished loading the spawn, and given 25, Horizon kept only about 900 to 1,400 chunk columns resident on this machine instead of the 3,200 a full view holds, so the two games would not have drawn the same world."
},
{
"machine": "ThinkPad (i7-7500U, HD Graphics 620)",
"reports": [
"thinkpad/vanilla-thinkpad-r1-rd12.json",
"thinkpad/vanilla-thinkpad-r2-rd12.json"
]
}
]
@@ -0,0 +1,758 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-10-22T18:57:41Z",
"app": {
"name": "horizon-client",
"version": "0.1.0",
"commit": "02260048"
},
"hardware": {
"os": "macos",
"arch": "aarch64",
"cpu_threads": 14,
"os_version": "27.0.1",
"cpu": "Apple M4 Pro",
"ram_mb": 65536,
"gpu": {
"name": "Apple M4 Pro",
"vendor": "",
"driver": "",
"backend": "metal",
"kind": "integrated"
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 12,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 55.691,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 2345.372,
"stdev": 439.947,
"min": 2086.467,
"max": 2853.347,
"ci95": 1092.977
},
"startup.world_ms": {
"n": 3,
"mean": 11074.92,
"stdev": 1749.229,
"min": 9853.098,
"max": 13078.729,
"ci95": 4345.676
},
"chunks.village.load_ms": {
"n": 3,
"mean": 6990.177,
"stdev": 715.08,
"min": 6305.128,
"max": 7731.914,
"ci95": 1776.501
},
"chunks.village.meshed_count": {
"n": 3,
"mean": 15984.667,
"stdev": 344.848,
"min": 15711.0,
"max": 16372.0,
"ci95": 856.72
},
"fps.village.avg_fps": {
"n": 3,
"mean": 143.667,
"stdev": 0.332,
"min": 143.283,
"max": 143.863,
"ci95": 0.826
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 97.283,
"stdev": 17.85,
"min": 77.659,
"max": 112.553,
"ci95": 44.345
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 86.892,
"stdev": 10.682,
"min": 74.96,
"max": 95.564,
"ci95": 26.537
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 10500.388,
"stdev": 2322.043,
"min": 8609.286,
"max": 13092.051,
"ci95": 5768.741
},
"chunks.forest.meshed_count": {
"n": 3,
"mean": 18418.333,
"stdev": 765.36,
"min": 17536.0,
"max": 18903.0,
"ci95": 1901.414
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 143.813,
"stdev": 0.113,
"min": 143.684,
"max": 143.893,
"ci95": 0.28
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 100.192,
"stdev": 11.893,
"min": 87.358,
"max": 110.84,
"ci95": 29.546
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 83.715,
"stdev": 6.798,
"min": 75.936,
"max": 88.513,
"ci95": 16.888
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 10672.488,
"stdev": 6950.689,
"min": 6083.379,
"max": 18669.422,
"ci95": 17267.862
},
"chunks.ocean.meshed_count": {
"n": 3,
"mean": 15184.667,
"stdev": 108.039,
"min": 15096.0,
"max": 15305.0,
"ci95": 268.404
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 143.702,
"stdev": 0.224,
"min": 143.449,
"max": 143.877,
"ci95": 0.558
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 97.956,
"stdev": 16.083,
"min": 82.809,
"max": 114.835,
"ci95": 39.956
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 83.818,
"stdev": 14.218,
"min": 74.969,
"max": 100.219,
"ci95": 35.324
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 9587.759,
"stdev": 2756.675,
"min": 7452.155,
"max": 12699.737,
"ci95": 6848.513
},
"chunks.mountain.meshed_count": {
"n": 3,
"mean": 16126.0,
"stdev": 665.232,
"min": 15575.0,
"max": 16865.0,
"ci95": 1652.66
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 143.829,
"stdev": 0.126,
"min": 143.691,
"max": 143.938,
"ci95": 0.313
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 93.631,
"stdev": 9.702,
"min": 83.285,
"max": 102.526,
"ci95": 24.104
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 76.626,
"stdev": 0.844,
"min": 75.806,
"max": 77.493,
"ci95": 2.098
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 1332.448,
"stdev": 38.71,
"min": 1289.484,
"max": 1364.609,
"ci95": 96.168
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 1201.484,
"stdev": 14.839,
"min": 1184.859,
"max": 1213.391,
"ci95": 36.866
},
"memory.footprint_peak_mb": {
"n": 3,
"mean": 1967.601,
"stdev": 14.451,
"min": 1958.158,
"max": 1984.236,
"ci95": 35.9
},
"memory.footprint_steady_mb": {
"n": 3,
"mean": 1678.093,
"stdev": 11.285,
"min": 1666.799,
"max": 1689.369,
"ci95": 28.036
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 1727,
"seconds": 12.005,
"avg_fps": 143.854,
"low_1pct_fps": 101.638,
"low_01pct_fps": 90.151,
"p50_ms": 6.95,
"p95_ms": 7.788,
"p99_ms": 9.014,
"p999_ms": 10.416,
"max_ms": 11.769,
"cpu_p50_ms": 0.685,
"gpu_p50_ms": 0.0,
"histogram": [
0,
1,
0,
6,
12,
38,
1003,
635,
26,
6,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 1,
"frames": 1727,
"seconds": 12.004,
"avg_fps": 143.863,
"low_1pct_fps": 112.553,
"low_01pct_fps": 95.564,
"p50_ms": 6.952,
"p95_ms": 7.703,
"p99_ms": 8.321,
"p999_ms": 9.559,
"max_ms": 11.369,
"cpu_p50_ms": 0.658,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
1,
0,
7,
43,
990,
669,
16,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 1720,
"seconds": 12.004,
"avg_fps": 143.283,
"low_1pct_fps": 77.659,
"low_01pct_fps": 74.96,
"p50_ms": 6.95,
"p95_ms": 7.725,
"p99_ms": 12.282,
"p999_ms": 13.317,
"max_ms": 13.364,
"cpu_p50_ms": 0.675,
"gpu_p50_ms": 0.0,
"histogram": [
4,
8,
0,
13,
3,
20,
1011,
624,
10,
9,
18,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 1727,
"seconds": 12.002,
"avg_fps": 143.893,
"low_1pct_fps": 102.379,
"low_01pct_fps": 88.513,
"p50_ms": 6.951,
"p95_ms": 7.722,
"p99_ms": 8.837,
"p999_ms": 11.08,
"max_ms": 11.516,
"cpu_p50_ms": 0.636,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
2,
7,
10,
27,
1025,
632,
20,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 1727,
"seconds": 12.005,
"avg_fps": 143.861,
"low_1pct_fps": 110.84,
"low_01pct_fps": 86.696,
"p50_ms": 6.95,
"p95_ms": 7.699,
"p99_ms": 8.258,
"p999_ms": 10.764,
"max_ms": 12.305,
"cpu_p50_ms": 0.628,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
1,
2,
3,
33,
1036,
637,
12,
2,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 1725,
"seconds": 12.006,
"avg_fps": 143.684,
"low_1pct_fps": 87.358,
"low_01pct_fps": 75.936,
"p50_ms": 6.947,
"p95_ms": 7.69,
"p99_ms": 9.094,
"p999_ms": 13.064,
"max_ms": 13.274,
"cpu_p50_ms": 0.617,
"gpu_p50_ms": 0.0,
"histogram": [
0,
4,
1,
10,
6,
9,
1044,
628,
10,
4,
9,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 1727,
"seconds": 12.003,
"avg_fps": 143.877,
"low_1pct_fps": 114.835,
"low_01pct_fps": 100.219,
"p50_ms": 6.948,
"p95_ms": 7.663,
"p99_ms": 8.021,
"p999_ms": 9.584,
"max_ms": 10.372,
"cpu_p50_ms": 0.631,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
0,
1,
4,
19,
1058,
632,
12,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 1726,
"seconds": 12.004,
"avg_fps": 143.78,
"low_1pct_fps": 96.223,
"low_01pct_fps": 76.266,
"p50_ms": 6.95,
"p95_ms": 7.675,
"p99_ms": 8.561,
"p999_ms": 12.865,
"max_ms": 13.359,
"cpu_p50_ms": 0.65,
"gpu_p50_ms": 0.0,
"histogram": [
2,
0,
0,
9,
5,
15,
1062,
615,
9,
5,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 1723,
"seconds": 12.011,
"avg_fps": 143.449,
"low_1pct_fps": 82.809,
"low_01pct_fps": 74.969,
"p50_ms": 6.949,
"p95_ms": 7.7,
"p99_ms": 9.785,
"p999_ms": 12.978,
"max_ms": 13.699,
"cpu_p50_ms": 0.636,
"gpu_p50_ms": 0.0,
"histogram": [
2,
6,
1,
5,
5,
17,
1071,
585,
14,
5,
12,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 1727,
"seconds": 12.005,
"avg_fps": 143.858,
"low_1pct_fps": 102.526,
"low_01pct_fps": 76.579,
"p50_ms": 6.947,
"p95_ms": 7.68,
"p99_ms": 8.234,
"p999_ms": 12.879,
"max_ms": 13.238,
"cpu_p50_ms": 0.688,
"gpu_p50_ms": 0.0,
"histogram": [
0,
1,
1,
4,
7,
16,
1066,
616,
12,
2,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 1728,
"seconds": 12.005,
"avg_fps": 143.938,
"low_1pct_fps": 95.083,
"low_01pct_fps": 75.806,
"p50_ms": 6.944,
"p95_ms": 7.709,
"p99_ms": 8.959,
"p999_ms": 13.175,
"max_ms": 13.208,
"cpu_p50_ms": 0.706,
"gpu_p50_ms": 0.0,
"histogram": [
0,
1,
5,
10,
4,
22,
1019,
640,
17,
7,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 1725,
"seconds": 12.005,
"avg_fps": 143.691,
"low_1pct_fps": 83.285,
"low_01pct_fps": 77.493,
"p50_ms": 6.943,
"p95_ms": 7.714,
"p99_ms": 10.345,
"p999_ms": 12.837,
"max_ms": 12.972,
"cpu_p50_ms": 0.69,
"gpu_p50_ms": 0.0,
"histogram": [
0,
11,
0,
7,
5,
24,
1035,
612,
13,
7,
11,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
}
],
"label": "horizon-macmini"
}
@@ -0,0 +1,758 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-10-22T19:04:50Z",
"app": {
"name": "horizon-client",
"version": "0.1.0",
"commit": "02260048"
},
"hardware": {
"os": "macos",
"arch": "aarch64",
"cpu_threads": 14,
"os_version": "27.0.1",
"cpu": "Apple M4 Pro",
"ram_mb": 65536,
"gpu": {
"name": "Apple M4 Pro",
"vendor": "",
"driver": "",
"backend": "metal",
"kind": "integrated"
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 32,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 34.828,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 1790.674,
"stdev": 56.914,
"min": 1752.696,
"max": 1856.111,
"ci95": 141.393
},
"startup.world_ms": {
"n": 3,
"mean": 16377.0,
"stdev": 336.835,
"min": 16104.909,
"max": 16753.738,
"ci95": 836.813
},
"chunks.village.load_ms": {
"n": 3,
"mean": 12453.023,
"stdev": 604.693,
"min": 11803.423,
"max": 12999.563,
"ci95": 1502.262
},
"chunks.village.meshed_count": {
"n": 3,
"mean": 51719.0,
"stdev": 122.491,
"min": 51587.0,
"max": 51829.0,
"ci95": 304.309
},
"fps.village.avg_fps": {
"n": 3,
"mean": 143.847,
"stdev": 0.057,
"min": 143.783,
"max": 143.892,
"ci95": 0.141
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 101.488,
"stdev": 2.262,
"min": 99.902,
"max": 104.078,
"ci95": 5.619
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 84.797,
"stdev": 3.7,
"min": 80.571,
"max": 87.457,
"ci95": 9.193
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 16309.457,
"stdev": 928.209,
"min": 15257.604,
"max": 17013.641,
"ci95": 2305.986
},
"chunks.forest.meshed_count": {
"n": 3,
"mean": 87279.0,
"stdev": 407.052,
"min": 86853.0,
"max": 87664.0,
"ci95": 1011.254
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 143.86,
"stdev": 0.001,
"min": 143.859,
"max": 143.86,
"ci95": 0.001
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 113.796,
"stdev": 13.168,
"min": 98.591,
"max": 121.412,
"ci95": 32.713
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 94.786,
"stdev": 14.752,
"min": 80.86,
"max": 110.244,
"ci95": 36.649
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 14321.991,
"stdev": 573.379,
"min": 13755.732,
"max": 14902.235,
"ci95": 1424.468
},
"chunks.ocean.meshed_count": {
"n": 3,
"mean": 77599.667,
"stdev": 139.429,
"min": 77500.0,
"max": 77759.0,
"ci95": 346.388
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 143.832,
"stdev": 0.049,
"min": 143.777,
"max": 143.872,
"ci95": 0.122
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 118.94,
"stdev": 3.668,
"min": 114.708,
"max": 121.215,
"ci95": 9.113
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 93.392,
"stdev": 2.385,
"min": 90.66,
"max": 95.059,
"ci95": 5.925
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 22432.475,
"stdev": 553.334,
"min": 22065.669,
"max": 23068.944,
"ci95": 1374.669
},
"chunks.mountain.meshed_count": {
"n": 3,
"mean": 92974.333,
"stdev": 374.559,
"min": 92542.0,
"max": 93201.0,
"ci95": 930.531
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 143.783,
"stdev": 0.013,
"min": 143.772,
"max": 143.797,
"ci95": 0.032
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 100.357,
"stdev": 3.901,
"min": 97.468,
"max": 104.795,
"ci95": 9.692
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 74.988,
"stdev": 1.321,
"min": 74.05,
"max": 76.499,
"ci95": 3.282
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 2267.208,
"stdev": 19.513,
"min": 2245.516,
"max": 2283.328,
"ci95": 48.476
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 1892.026,
"stdev": 34.165,
"min": 1854.414,
"max": 1921.141,
"ci95": 84.878
},
"memory.footprint_peak_mb": {
"n": 3,
"mean": 4916.789,
"stdev": 86.517,
"min": 4817.112,
"max": 4972.425,
"ci95": 214.938
},
"memory.footprint_steady_mb": {
"n": 3,
"mean": 3822.76,
"stdev": 13.305,
"min": 3807.417,
"max": 3831.096,
"ci95": 33.053
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 1726,
"seconds": 12.004,
"avg_fps": 143.783,
"low_1pct_fps": 104.078,
"low_01pct_fps": 87.457,
"p50_ms": 6.947,
"p95_ms": 7.68,
"p99_ms": 8.338,
"p999_ms": 11.28,
"max_ms": 11.588,
"cpu_p50_ms": 1.378,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
2,
4,
4,
15,
1036,
647,
12,
6,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 1,
"frames": 1727,
"seconds": 12.002,
"avg_fps": 143.892,
"low_1pct_fps": 99.902,
"low_01pct_fps": 86.362,
"p50_ms": 6.954,
"p95_ms": 7.654,
"p99_ms": 8.863,
"p999_ms": 11.513,
"max_ms": 11.645,
"cpu_p50_ms": 1.4,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
4,
7,
7,
20,
994,
669,
17,
9,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 1727,
"seconds": 12.004,
"avg_fps": 143.865,
"low_1pct_fps": 100.485,
"low_01pct_fps": 80.571,
"p50_ms": 6.952,
"p95_ms": 7.729,
"p99_ms": 8.604,
"p999_ms": 12.182,
"max_ms": 12.64,
"cpu_p50_ms": 1.407,
"gpu_p50_ms": 0.0,
"histogram": [
0,
2,
1,
3,
7,
29,
977,
687,
14,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 1727,
"seconds": 12.005,
"avg_fps": 143.86,
"low_1pct_fps": 98.591,
"low_01pct_fps": 80.86,
"p50_ms": 6.953,
"p95_ms": 7.732,
"p99_ms": 8.83,
"p999_ms": 12.092,
"max_ms": 12.642,
"cpu_p50_ms": 1.432,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
4,
5,
7,
27,
978,
681,
17,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 1727,
"seconds": 12.005,
"avg_fps": 143.86,
"low_1pct_fps": 121.384,
"low_01pct_fps": 93.253,
"p50_ms": 6.954,
"p95_ms": 7.634,
"p99_ms": 7.827,
"p999_ms": 8.154,
"max_ms": 13.293,
"cpu_p50_ms": 1.35,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
0,
1,
1,
14,
1027,
683,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 1727,
"seconds": 12.005,
"avg_fps": 143.859,
"low_1pct_fps": 121.412,
"low_01pct_fps": 110.244,
"p50_ms": 6.952,
"p95_ms": 7.707,
"p99_ms": 7.941,
"p999_ms": 9.001,
"max_ms": 9.141,
"cpu_p50_ms": 1.415,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
0,
0,
3,
24,
1006,
689,
5,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 1727,
"seconds": 12.004,
"avg_fps": 143.872,
"low_1pct_fps": 114.708,
"low_01pct_fps": 90.66,
"p50_ms": 6.95,
"p95_ms": 7.685,
"p99_ms": 7.957,
"p999_ms": 10.313,
"max_ms": 11.747,
"cpu_p50_ms": 1.316,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
1,
0,
5,
15,
1046,
650,
8,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 1727,
"seconds": 12.006,
"avg_fps": 143.847,
"low_1pct_fps": 120.896,
"low_01pct_fps": 94.456,
"p50_ms": 6.948,
"p95_ms": 7.635,
"p99_ms": 7.829,
"p999_ms": 9.702,
"max_ms": 11.472,
"cpu_p50_ms": 1.16,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
1,
1,
0,
10,
1024,
688,
2,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 1726,
"seconds": 12.005,
"avg_fps": 143.777,
"low_1pct_fps": 121.215,
"low_01pct_fps": 95.059,
"p50_ms": 6.953,
"p95_ms": 7.66,
"p99_ms": 7.856,
"p999_ms": 8.69,
"max_ms": 12.35,
"cpu_p50_ms": 1.248,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
0,
0,
0,
14,
1039,
671,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 1726,
"seconds": 12.003,
"avg_fps": 143.797,
"low_1pct_fps": 98.809,
"low_01pct_fps": 74.415,
"p50_ms": 6.95,
"p95_ms": 7.847,
"p99_ms": 9.041,
"p999_ms": 12.965,
"max_ms": 13.911,
"cpu_p50_ms": 1.988,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
2,
3,
13,
54,
946,
669,
33,
4,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 1726,
"seconds": 12.005,
"avg_fps": 143.772,
"low_1pct_fps": 104.795,
"low_01pct_fps": 76.499,
"p50_ms": 6.952,
"p95_ms": 7.647,
"p99_ms": 8.489,
"p999_ms": 12.811,
"max_ms": 13.333,
"cpu_p50_ms": 1.758,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
0,
2,
5,
21,
975,
703,
16,
2,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 1726,
"seconds": 12.005,
"avg_fps": 143.779,
"low_1pct_fps": 97.468,
"low_01pct_fps": 74.05,
"p50_ms": 6.949,
"p95_ms": 7.808,
"p99_ms": 8.836,
"p999_ms": 13.384,
"max_ms": 13.624,
"cpu_p50_ms": 1.93,
"gpu_p50_ms": 0.0,
"histogram": [
0,
0,
3,
3,
9,
36,
975,
671,
23,
2,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
}
],
"label": "horizon-macmini"
}
@@ -0,0 +1,707 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-10-22T19:11:15Z",
"app": {
"name": "minecraft",
"version": "26.3",
"mods": [
{
"name": "fabric-loader",
"version": "0.19.5"
}
]
},
"hardware": {
"os": "macos",
"arch": "aarch64",
"cpu_threads": 14,
"os_version": "27.0.1",
"cpu": "Apple M4 Pro",
"ram_mb": 65536,
"gpu": {
"name": "Apple M4 Pro",
"vendor": "Apple",
"driver": "4.1 Metal - 91.7",
"backend": "opengl",
"kind": ""
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 12,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 19.995,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 9255.174,
"stdev": 1377.709,
"min": 8291.517,
"max": 10833.18,
"ci95": 3422.694
},
"startup.world_ms": {
"n": 3,
"mean": 22267.841,
"stdev": 2359.592,
"min": 19676.825,
"max": 24293.18,
"ci95": 5862.025
},
"chunks.village.load_ms": {
"n": 3,
"mean": 8373.541,
"stdev": 1607.431,
"min": 6736.307,
"max": 9949.411,
"ci95": 3993.401
},
"fps.village.avg_fps": {
"n": 3,
"mean": 136.491,
"stdev": 49.607,
"min": 80.587,
"max": 175.255,
"ci95": 123.241
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 40.05,
"stdev": 20.951,
"min": 17.531,
"max": 58.964,
"ci95": 52.048
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 27.562,
"stdev": 16.348,
"min": 9.896,
"max": 42.155,
"ci95": 40.613
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 10975.903,
"stdev": 2773.208,
"min": 7859.955,
"max": 13173.278,
"ci95": 6889.586
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 114.749,
"stdev": 25.895,
"min": 88.614,
"max": 140.397,
"ci95": 64.332
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 22.337,
"stdev": 2.265,
"min": 20.316,
"max": 24.786,
"ci95": 5.628
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 13.925,
"stdev": 1.313,
"min": 12.44,
"max": 14.934,
"ci95": 3.263
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 7219.032,
"stdev": 512.777,
"min": 6863.314,
"max": 7806.817,
"ci95": 1273.913
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 127.344,
"stdev": 39.331,
"min": 87.832,
"max": 166.491,
"ci95": 97.711
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 28.658,
"stdev": 13.052,
"min": 19.943,
"max": 43.664,
"ci95": 32.426
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 17.368,
"stdev": 3.553,
"min": 14.965,
"max": 21.449,
"ci95": 8.826
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 14487.3,
"stdev": 1978.448,
"min": 12307.989,
"max": 16170.426,
"ci95": 4915.133
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 112.429,
"stdev": 10.054,
"min": 101.699,
"max": 121.631,
"ci95": 24.976
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 23.328,
"stdev": 4.326,
"min": 18.537,
"max": 26.948,
"ci95": 10.748
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 15.99,
"stdev": 3.13,
"min": 13.061,
"max": 19.289,
"ci95": 7.777
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 2444.542,
"stdev": 59.065,
"min": 2402.813,
"max": 2512.125,
"ci95": 146.737
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 2283.372,
"stdev": 54.05,
"min": 2223.469,
"max": 2328.492,
"ci95": 134.278
},
"memory.footprint_peak_mb": {
"n": 3,
"mean": 3142.514,
"stdev": 65.681,
"min": 3092.55,
"max": 3216.91,
"ci95": 163.174
},
"memory.footprint_steady_mb": {
"n": 3,
"mean": 2963.105,
"stdev": 109.382,
"min": 2845.722,
"max": 3062.175,
"ci95": 271.743
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 2104,
"seconds": 12.005,
"avg_fps": 175.255,
"low_1pct_fps": 58.964,
"low_01pct_fps": 42.155,
"p50_ms": 5.974,
"p95_ms": 7.928,
"p99_ms": 11.472,
"p999_ms": 21.981,
"max_ms": 25.823,
"histogram": [
0,
0,
31,
626,
131,
268,
600,
374,
41,
14,
4,
5,
4,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 1,
"frames": 968,
"seconds": 12.012,
"avg_fps": 80.587,
"low_1pct_fps": 17.531,
"low_01pct_fps": 9.896,
"p50_ms": 10.008,
"p95_ms": 27.353,
"p99_ms": 40.768,
"p999_ms": 101.056,
"max_ms": 101.056,
"histogram": [
0,
0,
0,
10,
6,
40,
121,
163,
143,
133,
103,
72,
62,
51,
40,
12,
7,
3,
1,
1,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 1844,
"seconds": 12.003,
"avg_fps": 153.632,
"low_1pct_fps": 43.656,
"low_01pct_fps": 30.635,
"p50_ms": 6.497,
"p95_ms": 10.85,
"p99_ms": 18.965,
"p999_ms": 31.548,
"max_ms": 33.737,
"histogram": [
0,
0,
32,
343,
146,
267,
472,
344,
121,
51,
18,
24,
12,
11,
2,
1,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 1064,
"seconds": 12.007,
"avg_fps": 88.614,
"low_1pct_fps": 20.316,
"low_01pct_fps": 14.401,
"p50_ms": 9.718,
"p95_ms": 23.959,
"p99_ms": 38.344,
"p999_ms": 66.283,
"max_ms": 72.6,
"histogram": [
0,
0,
0,
28,
17,
52,
151,
169,
157,
165,
103,
82,
50,
47,
26,
7,
7,
2,
1,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 1383,
"seconds": 12.001,
"avg_fps": 115.237,
"low_1pct_fps": 24.786,
"low_01pct_fps": 14.934,
"p50_ms": 7.377,
"p95_ms": 15.575,
"p99_ms": 23.447,
"p999_ms": 59.361,
"max_ms": 74.564,
"histogram": [
0,
0,
0,
31,
57,
146,
307,
316,
203,
150,
75,
41,
34,
11,
4,
1,
4,
2,
1,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 1687,
"seconds": 12.016,
"avg_fps": 140.397,
"low_1pct_fps": 21.91,
"low_01pct_fps": 12.44,
"p50_ms": 6.331,
"p95_ms": 15.139,
"p99_ms": 31.057,
"p999_ms": 75.339,
"max_ms": 85.428,
"histogram": [
0,
0,
21,
337,
165,
245,
396,
251,
104,
47,
26,
28,
16,
23,
15,
4,
5,
2,
2,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 1999,
"seconds": 12.007,
"avg_fps": 166.491,
"low_1pct_fps": 43.664,
"low_01pct_fps": 21.449,
"p50_ms": 5.909,
"p95_ms": 9.406,
"p99_ms": 16.205,
"p999_ms": 45.922,
"max_ms": 47.324,
"histogram": [
0,
0,
30,
481,
178,
349,
520,
277,
84,
34,
16,
12,
8,
7,
1,
0,
2,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 1054,
"seconds": 12.0,
"avg_fps": 87.832,
"low_1pct_fps": 19.943,
"low_01pct_fps": 15.69,
"p50_ms": 9.863,
"p95_ms": 21.668,
"p99_ms": 39.308,
"p999_ms": 62.346,
"max_ms": 65.125,
"histogram": [
0,
0,
0,
5,
15,
93,
121,
162,
147,
176,
100,
87,
70,
40,
22,
6,
6,
4,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 1533,
"seconds": 12.004,
"avg_fps": 127.709,
"low_1pct_fps": 22.367,
"low_01pct_fps": 14.965,
"p50_ms": 6.703,
"p95_ms": 17.53,
"p99_ms": 35.256,
"p999_ms": 63.191,
"max_ms": 70.458,
"histogram": [
0,
0,
13,
222,
109,
208,
366,
275,
122,
69,
37,
28,
20,
29,
18,
8,
6,
2,
1,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 1368,
"seconds": 12.004,
"avg_fps": 113.958,
"low_1pct_fps": 26.948,
"low_01pct_fps": 19.289,
"p50_ms": 7.238,
"p95_ms": 18.057,
"p99_ms": 29.957,
"p999_ms": 49.049,
"max_ms": 54.639,
"histogram": [
0,
0,
0,
88,
46,
128,
327,
284,
165,
133,
75,
41,
37,
22,
15,
3,
3,
1,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 1221,
"seconds": 12.006,
"avg_fps": 101.699,
"low_1pct_fps": 18.537,
"low_01pct_fps": 13.061,
"p50_ms": 7.5,
"p95_ms": 21.53,
"p99_ms": 39.922,
"p999_ms": 70.942,
"max_ms": 82.181,
"histogram": [
0,
0,
2,
62,
36,
105,
288,
232,
146,
109,
64,
47,
45,
48,
18,
7,
5,
5,
2,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 1460,
"seconds": 12.004,
"avg_fps": 121.631,
"low_1pct_fps": 24.5,
"low_01pct_fps": 15.62,
"p50_ms": 6.975,
"p95_ms": 17.318,
"p99_ms": 31.34,
"p999_ms": 59.755,
"max_ms": 68.287,
"histogram": [
0,
0,
8,
144,
75,
131,
381,
321,
129,
107,
51,
36,
24,
30,
11,
6,
4,
1,
1,
0,
0,
0,
0,
0
]
}
],
"label": "vanilla-macmini"
}
@@ -0,0 +1,707 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-10-22T19:28:11Z",
"app": {
"name": "minecraft",
"version": "26.3",
"mods": [
{
"name": "fabric-loader",
"version": "0.19.5"
}
]
},
"hardware": {
"os": "macos",
"arch": "aarch64",
"cpu_threads": 14,
"os_version": "27.0.1",
"cpu": "Apple M4 Pro",
"ram_mb": 65536,
"gpu": {
"name": "Apple M4 Pro",
"vendor": "Apple",
"driver": "4.1 Metal - 91.7",
"backend": "opengl",
"kind": ""
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 32,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 3,
"warmup_s": 2.0,
"load_avg_1m": 24.818,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 3,
"mean": 11381.196,
"stdev": 3370.766,
"min": 8420.137,
"max": 15049.455,
"ci95": 8374.123
},
"startup.world_ms": {
"n": 3,
"mean": 65830.529,
"stdev": 11011.236,
"min": 56970.455,
"max": 78158.137,
"ci95": 27355.633
},
"chunks.village.load_ms": {
"n": 3,
"mean": 23987.198,
"stdev": 11152.991,
"min": 17293.537,
"max": 36862.165,
"ci95": 27707.801
},
"fps.village.avg_fps": {
"n": 3,
"mean": 47.737,
"stdev": 31.496,
"min": 27.991,
"max": 84.059,
"ci95": 78.247
},
"fps.village.low_1pct_fps": {
"n": 3,
"mean": 6.2,
"stdev": 2.609,
"min": 4.528,
"max": 9.206,
"ci95": 6.481
},
"fps.village.low_01pct_fps": {
"n": 3,
"mean": 4.617,
"stdev": 1.026,
"min": 3.768,
"max": 5.758,
"ci95": 2.55
},
"chunks.forest.load_ms": {
"n": 3,
"mean": 36378.52,
"stdev": 15983.433,
"min": 24065.993,
"max": 54441.562,
"ci95": 39708.252
},
"fps.forest.avg_fps": {
"n": 3,
"mean": 53.928,
"stdev": 33.496,
"min": 28.564,
"max": 91.898,
"ci95": 83.215
},
"fps.forest.low_1pct_fps": {
"n": 3,
"mean": 12.927,
"stdev": 13.712,
"min": 4.023,
"max": 28.717,
"ci95": 34.065
},
"fps.forest.low_01pct_fps": {
"n": 3,
"mean": 9.842,
"stdev": 11.775,
"min": 2.927,
"max": 23.438,
"ci95": 29.254
},
"chunks.ocean.load_ms": {
"n": 3,
"mean": 18553.145,
"stdev": 3789.708,
"min": 14921.886,
"max": 22483.568,
"ci95": 9414.916
},
"fps.ocean.avg_fps": {
"n": 3,
"mean": 48.22,
"stdev": 8.307,
"min": 38.643,
"max": 53.477,
"ci95": 20.638
},
"fps.ocean.low_1pct_fps": {
"n": 3,
"mean": 7.916,
"stdev": 2.369,
"min": 6.195,
"max": 10.617,
"ci95": 5.884
},
"fps.ocean.low_01pct_fps": {
"n": 3,
"mean": 5.755,
"stdev": 2.962,
"min": 3.274,
"max": 9.034,
"ci95": 7.358
},
"chunks.mountain.load_ms": {
"n": 3,
"mean": 123216.543,
"stdev": 45006.944,
"min": 74469.433,
"max": 163191.844,
"ci95": 111812.471
},
"fps.mountain.avg_fps": {
"n": 3,
"mean": 23.396,
"stdev": 13.96,
"min": 12.505,
"max": 39.134,
"ci95": 34.682
},
"fps.mountain.low_1pct_fps": {
"n": 3,
"mean": 3.144,
"stdev": 2.263,
"min": 1.469,
"max": 5.719,
"ci95": 5.623
},
"fps.mountain.low_01pct_fps": {
"n": 3,
"mean": 1.601,
"stdev": 0.663,
"min": 1.033,
"max": 2.329,
"ci95": 1.646
},
"memory.rss_peak_mb": {
"n": 3,
"mean": 2946.771,
"stdev": 9.561,
"min": 2940.781,
"max": 2957.797,
"ci95": 23.752
},
"memory.rss_steady_mb": {
"n": 3,
"mean": 2931.729,
"stdev": 4.529,
"min": 2927.547,
"max": 2936.539,
"ci95": 11.251
},
"memory.footprint_peak_mb": {
"n": 3,
"mean": 4416.488,
"stdev": 139.323,
"min": 4302.254,
"max": 4571.707,
"ci95": 346.127
},
"memory.footprint_steady_mb": {
"n": 3,
"mean": 4208.842,
"stdev": 45.014,
"min": 4162.535,
"max": 4252.441,
"ci95": 111.831
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 1009,
"seconds": 12.003,
"avg_fps": 84.059,
"low_1pct_fps": 9.206,
"low_01pct_fps": 5.758,
"p50_ms": 8.462,
"p95_ms": 25.665,
"p99_ms": 79.305,
"p999_ms": 162.932,
"max_ms": 184.432,
"histogram": [
0,
0,
0,
0,
0,
15,
184,
285,
186,
111,
65,
46,
36,
28,
21,
5,
8,
6,
8,
3,
2,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 1,
"frames": 375,
"seconds": 12.035,
"avg_fps": 31.16,
"low_1pct_fps": 4.866,
"low_01pct_fps": 4.326,
"p50_ms": 14.505,
"p95_ms": 116.616,
"p99_ms": 195.71,
"p999_ms": 231.163,
"max_ms": 231.163,
"histogram": [
0,
0,
0,
0,
0,
0,
1,
22,
47,
62,
48,
27,
24,
18,
28,
11,
13,
18,
30,
18,
8,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 2,
"frames": 336,
"seconds": 12.004,
"avg_fps": 27.991,
"low_1pct_fps": 4.528,
"low_01pct_fps": 3.768,
"p50_ms": 15.612,
"p95_ms": 140.292,
"p99_ms": 200.831,
"p999_ms": 265.4,
"max_ms": 265.4,
"histogram": [
0,
0,
0,
0,
0,
0,
1,
14,
36,
51,
42,
34,
29,
20,
19,
5,
21,
14,
14,
21,
14,
1,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 1103,
"seconds": 12.002,
"avg_fps": 91.898,
"low_1pct_fps": 28.717,
"low_01pct_fps": 23.438,
"p50_ms": 9.702,
"p95_ms": 19.437,
"p99_ms": 29.906,
"p999_ms": 40.578,
"max_ms": 44.753,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
175,
470,
261,
64,
43,
39,
31,
14,
4,
2,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 496,
"seconds": 12.003,
"avg_fps": 41.322,
"low_1pct_fps": 6.041,
"low_01pct_fps": 3.16,
"p50_ms": 13.948,
"p95_ms": 73.747,
"p99_ms": 106.208,
"p999_ms": 316.463,
"max_ms": 316.463,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
24,
97,
73,
56,
52,
23,
31,
34,
18,
34,
20,
27,
5,
1,
1,
0,
0
]
},
{
"phase": "forest",
"repeat": 2,
"frames": 343,
"seconds": 12.008,
"avg_fps": 28.564,
"low_1pct_fps": 4.023,
"low_01pct_fps": 2.927,
"p50_ms": 22.196,
"p95_ms": 99.833,
"p99_ms": 195.141,
"p999_ms": 341.688,
"max_ms": 341.688,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
0,
17,
39,
30,
28,
32,
45,
46,
24,
22,
18,
25,
9,
6,
2,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 631,
"seconds": 12.01,
"avg_fps": 52.54,
"low_1pct_fps": 10.617,
"low_01pct_fps": 9.034,
"p50_ms": 13.716,
"p95_ms": 49.488,
"p99_ms": 87.282,
"p999_ms": 110.687,
"max_ms": 110.687,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
20,
99,
130,
77,
92,
40,
43,
52,
26,
22,
17,
12,
1,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 646,
"seconds": 12.08,
"avg_fps": 53.477,
"low_1pct_fps": 6.935,
"low_01pct_fps": 3.274,
"p50_ms": 12.88,
"p95_ms": 51.476,
"p99_ms": 95.547,
"p999_ms": 305.469,
"max_ms": 305.469,
"histogram": [
0,
0,
0,
0,
0,
0,
1,
29,
112,
135,
98,
80,
47,
45,
34,
14,
16,
20,
9,
4,
1,
1,
0,
0
]
},
{
"phase": "ocean",
"repeat": 2,
"frames": 464,
"seconds": 12.007,
"avg_fps": 38.643,
"low_1pct_fps": 6.195,
"low_01pct_fps": 4.956,
"p50_ms": 13.978,
"p95_ms": 88.331,
"p99_ms": 146.049,
"p999_ms": 201.767,
"max_ms": 201.767,
"histogram": [
0,
0,
0,
0,
0,
0,
1,
29,
64,
86,
54,
44,
34,
26,
28,
14,
20,
23,
27,
12,
2,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 223,
"seconds": 12.021,
"avg_fps": 18.55,
"low_1pct_fps": 2.245,
"low_01pct_fps": 1.441,
"p50_ms": 33.819,
"p95_ms": 148.781,
"p99_ms": 257.941,
"p999_ms": 693.793,
"max_ms": 693.793,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
0,
2,
6,
14,
20,
23,
26,
19,
9,
21,
26,
30,
16,
8,
2,
1,
0
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 470,
"seconds": 12.01,
"avg_fps": 39.134,
"low_1pct_fps": 5.719,
"low_01pct_fps": 2.329,
"p50_ms": 19.327,
"p95_ms": 55.82,
"p99_ms": 103.388,
"p999_ms": 429.314,
"max_ms": 429.314,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
0,
6,
63,
55,
63,
58,
65,
67,
25,
33,
18,
11,
5,
0,
1,
0,
0
]
},
{
"phase": "mountain",
"repeat": 2,
"frames": 151,
"seconds": 12.075,
"avg_fps": 12.505,
"low_1pct_fps": 1.469,
"low_01pct_fps": 1.033,
"p50_ms": 38.238,
"p95_ms": 192.226,
"p99_ms": 393.788,
"p999_ms": 967.961,
"max_ms": 967.961,
"histogram": [
0,
0,
0,
0,
0,
0,
0,
0,
2,
7,
8,
13,
14,
18,
8,
6,
3,
12,
8,
26,
22,
3,
1,
0
]
}
],
"label": "vanilla-macmini"
}
@@ -0,0 +1,606 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-10-22T19:03:59Z",
"app": {
"name": "horizon-client",
"version": "0.1.0",
"commit": "02260048"
},
"hardware": {
"os": "linux",
"arch": "x86_64",
"cpu_threads": 4,
"os_version": "NixOS 26.05 (Yarara) (kernel 6.18.55)",
"cpu": "Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz",
"ram_mb": 31984,
"gpu": {
"name": "Intel(R) HD Graphics 620 (KBL GT2)",
"vendor": "intel",
"driver": "Intel open-source Mesa driver Mesa 26.1.8",
"backend": "vulkan",
"kind": "integrated"
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 12,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 2,
"warmup_s": 2.0,
"load_avg_1m": 0.988,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 2,
"mean": 3359.833,
"stdev": 71.241,
"min": 3309.458,
"max": 3410.208,
"ci95": 640.068
},
"startup.world_ms": {
"n": 2,
"mean": 50794.052,
"stdev": 11192.703,
"min": 42879.616,
"max": 58708.488,
"ci95": 100560.827
},
"chunks.village.load_ms": {
"n": 2,
"mean": 44860.072,
"stdev": 4027.103,
"min": 42012.48,
"max": 47707.664,
"ci95": 36181.501
},
"chunks.village.meshed_count": {
"n": 2,
"mean": 18412.5,
"stdev": 723.37,
"min": 17901.0,
"max": 18924.0,
"ci95": 6499.119
},
"fps.village.avg_fps": {
"n": 2,
"mean": 272.998,
"stdev": 15.604,
"min": 261.964,
"max": 284.031,
"ci95": 140.192
},
"fps.village.low_1pct_fps": {
"n": 2,
"mean": 45.939,
"stdev": 2.832,
"min": 43.936,
"max": 47.941,
"ci95": 25.444
},
"fps.village.low_01pct_fps": {
"n": 2,
"mean": 29.722,
"stdev": 2.801,
"min": 27.741,
"max": 31.702,
"ci95": 25.164
},
"memory.village.gpu_mb": {
"n": 2,
"mean": 402.965,
"stdev": 2.093,
"min": 401.486,
"max": 404.445,
"ci95": 18.804
},
"chunks.forest.load_ms": {
"n": 2,
"mean": 67527.123,
"stdev": 1738.341,
"min": 66297.93,
"max": 68756.315,
"ci95": 15618.12
},
"chunks.forest.meshed_count": {
"n": 2,
"mean": 23490.0,
"stdev": 992.778,
"min": 22788.0,
"max": 24192.0,
"ci95": 8919.612
},
"fps.forest.avg_fps": {
"n": 2,
"mean": 246.342,
"stdev": 2.258,
"min": 244.745,
"max": 247.939,
"ci95": 20.291
},
"fps.forest.low_1pct_fps": {
"n": 2,
"mean": 48.098,
"stdev": 2.354,
"min": 46.433,
"max": 49.762,
"ci95": 21.149
},
"fps.forest.low_01pct_fps": {
"n": 2,
"mean": 31.405,
"stdev": 2.788,
"min": 29.433,
"max": 33.376,
"ci95": 25.05
},
"memory.forest.gpu_mb": {
"n": 2,
"mean": 458.26,
"stdev": 2.943,
"min": 456.179,
"max": 460.341,
"ci95": 26.443
},
"chunks.ocean.load_ms": {
"n": 2,
"mean": 51484.922,
"stdev": 3499.487,
"min": 49010.411,
"max": 53959.434,
"ci95": 31441.14
},
"chunks.ocean.meshed_count": {
"n": 2,
"mean": 17323.5,
"stdev": 75.66,
"min": 17270.0,
"max": 17377.0,
"ci95": 679.771
},
"fps.ocean.avg_fps": {
"n": 2,
"mean": 204.022,
"stdev": 2.495,
"min": 202.258,
"max": 205.786,
"ci95": 22.413
},
"fps.ocean.low_1pct_fps": {
"n": 2,
"mean": 36.306,
"stdev": 0.351,
"min": 36.058,
"max": 36.554,
"ci95": 3.151
},
"fps.ocean.low_01pct_fps": {
"n": 2,
"mean": 25.509,
"stdev": 0.501,
"min": 25.155,
"max": 25.863,
"ci95": 4.498
},
"memory.ocean.gpu_mb": {
"n": 2,
"mean": 421.627,
"stdev": 3.887,
"min": 418.878,
"max": 424.376,
"ci95": 34.926
},
"chunks.mountain.load_ms": {
"n": 2,
"mean": 75031.799,
"stdev": 8886.455,
"min": 68748.127,
"max": 81315.471,
"ci95": 79840.341
},
"chunks.mountain.meshed_count": {
"n": 2,
"mean": 17961.5,
"stdev": 225.567,
"min": 17802.0,
"max": 18121.0,
"ci95": 2026.607
},
"fps.mountain.avg_fps": {
"n": 2,
"mean": 111.151,
"stdev": 5.637,
"min": 107.165,
"max": 115.137,
"ci95": 50.646
},
"fps.mountain.low_1pct_fps": {
"n": 2,
"mean": 25.851,
"stdev": 13.871,
"min": 16.043,
"max": 35.659,
"ci95": 124.62
},
"fps.mountain.low_01pct_fps": {
"n": 2,
"mean": 17.065,
"stdev": 8.985,
"min": 10.711,
"max": 23.418,
"ci95": 80.728
},
"memory.mountain.gpu_mb": {
"n": 2,
"mean": 602.19,
"stdev": 3.887,
"min": 599.441,
"max": 604.938,
"ci95": 34.926
},
"memory.rss_peak_mb": {
"n": 2,
"mean": 986.4,
"stdev": 4.593,
"min": 983.152,
"max": 989.648,
"ci95": 41.27
},
"memory.rss_steady_mb": {
"n": 2,
"mean": 797.12,
"stdev": 11.351,
"min": 789.094,
"max": 805.146,
"ci95": 101.983
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 3409,
"seconds": 12.002,
"avg_fps": 284.031,
"low_1pct_fps": 43.936,
"low_01pct_fps": 27.741,
"p50_ms": 2.557,
"p95_ms": 10.879,
"p99_ms": 16.323,
"p999_ms": 34.079,
"max_ms": 39.182,
"cpu_p50_ms": 2.08,
"gpu_p50_ms": 2.486,
"histogram": [
0,
549,
1776,
607,
95,
66,
35,
17,
41,
117,
46,
27,
16,
7,
5,
5,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "village",
"repeat": 1,
"frames": 3144,
"seconds": 12.002,
"avg_fps": 261.964,
"low_1pct_fps": 47.941,
"low_01pct_fps": 31.702,
"p50_ms": 2.82,
"p95_ms": 11.328,
"p99_ms": 15.64,
"p999_ms": 25.788,
"max_ms": 46.032,
"cpu_p50_ms": 2.305,
"gpu_p50_ms": 3.02,
"histogram": [
0,
109,
1797,
717,
128,
67,
34,
20,
53,
102,
59,
32,
10,
10,
5,
0,
1,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 2937,
"seconds": 12.0,
"avg_fps": 244.745,
"low_1pct_fps": 49.762,
"low_01pct_fps": 33.376,
"p50_ms": 2.77,
"p95_ms": 11.641,
"p99_ms": 16.127,
"p999_ms": 28.686,
"max_ms": 31.833,
"cpu_p50_ms": 2.211,
"gpu_p50_ms": 3.023,
"histogram": [
0,
65,
1619,
360,
323,
233,
55,
31,
57,
61,
73,
41,
9,
4,
6,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 1,
"frames": 2976,
"seconds": 12.003,
"avg_fps": 247.939,
"low_1pct_fps": 46.433,
"low_01pct_fps": 29.433,
"p50_ms": 2.712,
"p95_ms": 11.957,
"p99_ms": 16.649,
"p999_ms": 33.203,
"max_ms": 34.667,
"cpu_p50_ms": 2.118,
"gpu_p50_ms": 2.977,
"histogram": [
0,
107,
1608,
453,
236,
226,
58,
45,
48,
49,
74,
43,
16,
7,
4,
2,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 2428,
"seconds": 12.004,
"avg_fps": 202.258,
"low_1pct_fps": 36.058,
"low_01pct_fps": 25.863,
"p50_ms": 3.921,
"p95_ms": 13.515,
"p99_ms": 20.018,
"p999_ms": 37.372,
"max_ms": 39.911,
"cpu_p50_ms": 2.261,
"gpu_p50_ms": 4.35,
"histogram": [
0,
25,
850,
514,
460,
214,
51,
33,
27,
42,
115,
47,
25,
8,
13,
4,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 1,
"frames": 2467,
"seconds": 11.988,
"avg_fps": 205.786,
"low_1pct_fps": 36.554,
"low_01pct_fps": 25.155,
"p50_ms": 3.432,
"p95_ms": 13.9,
"p99_ms": 21.587,
"p999_ms": 36.46,
"max_ms": 41.679,
"cpu_p50_ms": 2.325,
"gpu_p50_ms": 3.908,
"histogram": [
0,
13,
1018,
563,
304,
166,
66,
35,
36,
66,
81,
58,
31,
19,
7,
2,
2,
0,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 1383,
"seconds": 12.012,
"avg_fps": 115.137,
"low_1pct_fps": 35.659,
"low_01pct_fps": 23.418,
"p50_ms": 8.232,
"p95_ms": 16.336,
"p99_ms": 21.375,
"p999_ms": 35.291,
"max_ms": 50.114,
"cpu_p50_ms": 3.875,
"gpu_p50_ms": 8.272,
"histogram": [
0,
0,
30,
150,
102,
95,
114,
220,
297,
135,
86,
92,
40,
15,
4,
2,
0,
1,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 1,
"frames": 1286,
"seconds": 12.0,
"avg_fps": 107.165,
"low_1pct_fps": 16.043,
"low_01pct_fps": 10.711,
"p50_ms": 7.582,
"p95_ms": 20.742,
"p99_ms": 46.27,
"p999_ms": 82.86,
"max_ms": 103.861,
"cpu_p50_ms": 3.753,
"gpu_p50_ms": 7.922,
"histogram": [
0,
0,
62,
156,
96,
86,
110,
259,
188,
73,
61,
88,
42,
23,
21,
4,
6,
7,
3,
1,
0,
0,
0,
0
]
}
],
"label": "horizon-thinkpad"
}
@@ -0,0 +1,371 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-10-22T19:14:38Z",
"app": {
"name": "minecraft",
"version": "26.3",
"mods": [
{
"name": "fabric-loader",
"version": "0.19.5"
}
]
},
"hardware": {
"os": "linux",
"arch": "x86_64",
"cpu_threads": 4,
"os_version": "NixOS 26.05 (Yarara) (kernel 6.18.55)",
"cpu": "Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz",
"ram_mb": 31984,
"gpu": {
"name": "Mesa Intel(R) HD Graphics 620 (KBL GT2)",
"vendor": "Intel",
"driver": "4.6 (Core Profile) Mesa 26.1.8",
"backend": "opengl",
"kind": ""
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 12,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 1,
"warmup_s": 2.0,
"load_avg_1m": 5.749,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 1,
"mean": 16138.646,
"stdev": null,
"min": 16138.646,
"max": 16138.646,
"ci95": null
},
"startup.world_ms": {
"n": 1,
"mean": 68774.646,
"stdev": null,
"min": 68774.646,
"max": 68774.646,
"ci95": null
},
"chunks.village.load_ms": {
"n": 1,
"mean": 53635.946,
"stdev": null,
"min": 53635.946,
"max": 53635.946,
"ci95": null
},
"fps.village.avg_fps": {
"n": 1,
"mean": 89.712,
"stdev": null,
"min": 89.712,
"max": 89.712,
"ci95": null
},
"fps.village.low_1pct_fps": {
"n": 1,
"mean": 23.313,
"stdev": null,
"min": 23.313,
"max": 23.313,
"ci95": null
},
"fps.village.low_01pct_fps": {
"n": 1,
"mean": 17.52,
"stdev": null,
"min": 17.52,
"max": 17.52,
"ci95": null
},
"chunks.forest.load_ms": {
"n": 1,
"mean": 45938.493,
"stdev": null,
"min": 45938.493,
"max": 45938.493,
"ci95": null
},
"fps.forest.avg_fps": {
"n": 1,
"mean": 104.223,
"stdev": null,
"min": 104.223,
"max": 104.223,
"ci95": null
},
"fps.forest.low_1pct_fps": {
"n": 1,
"mean": 29.079,
"stdev": null,
"min": 29.079,
"max": 29.079,
"ci95": null
},
"fps.forest.low_01pct_fps": {
"n": 1,
"mean": 19.181,
"stdev": null,
"min": 19.181,
"max": 19.181,
"ci95": null
},
"chunks.ocean.load_ms": {
"n": 1,
"mean": 32096.642,
"stdev": null,
"min": 32096.642,
"max": 32096.642,
"ci95": null
},
"fps.ocean.avg_fps": {
"n": 1,
"mean": 103.183,
"stdev": null,
"min": 103.183,
"max": 103.183,
"ci95": null
},
"fps.ocean.low_1pct_fps": {
"n": 1,
"mean": 22.0,
"stdev": null,
"min": 22.0,
"max": 22.0,
"ci95": null
},
"fps.ocean.low_01pct_fps": {
"n": 1,
"mean": 12.275,
"stdev": null,
"min": 12.275,
"max": 12.275,
"ci95": null
},
"chunks.mountain.load_ms": {
"n": 1,
"mean": 56418.74,
"stdev": null,
"min": 56418.74,
"max": 56418.74,
"ci95": null
},
"fps.mountain.avg_fps": {
"n": 1,
"mean": 205.996,
"stdev": null,
"min": 205.996,
"max": 205.996,
"ci95": null
},
"fps.mountain.low_1pct_fps": {
"n": 1,
"mean": 41.77,
"stdev": null,
"min": 41.77,
"max": 41.77,
"ci95": null
},
"fps.mountain.low_01pct_fps": {
"n": 1,
"mean": 23.358,
"stdev": null,
"min": 23.358,
"max": 23.358,
"ci95": null
},
"memory.rss_peak_mb": {
"n": 1,
"mean": 2200.957,
"stdev": null,
"min": 2200.957,
"max": 2200.957,
"ci95": null
},
"memory.rss_steady_mb": {
"n": 1,
"mean": 2126.844,
"stdev": null,
"min": 2126.844,
"max": 2126.844,
"ci95": null
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 1077,
"seconds": 12.005,
"avg_fps": 89.712,
"low_1pct_fps": 23.313,
"low_01pct_fps": 17.52,
"p50_ms": 9.15,
"p95_ms": 23.582,
"p99_ms": 34.847,
"p999_ms": 56.312,
"max_ms": 57.842,
"histogram": [
0,
0,
0,
2,
36,
106,
149,
175,
132,
138,
92,
88,
71,
47,
28,
8,
2,
3,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 1251,
"seconds": 12.003,
"avg_fps": 104.223,
"low_1pct_fps": 29.079,
"low_01pct_fps": 19.181,
"p50_ms": 8.002,
"p95_ms": 18.85,
"p99_ms": 26.464,
"p999_ms": 50.754,
"max_ms": 53.518,
"histogram": [
0,
0,
0,
4,
20,
136,
223,
302,
197,
124,
70,
75,
53,
31,
12,
1,
1,
2,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 1239,
"seconds": 12.008,
"avg_fps": 103.183,
"low_1pct_fps": 22.0,
"low_01pct_fps": 12.275,
"p50_ms": 7.959,
"p95_ms": 18.934,
"p99_ms": 24.948,
"p999_ms": 74.736,
"max_ms": 88.202,
"histogram": [
0,
0,
0,
1,
8,
126,
335,
189,
192,
144,
73,
56,
71,
32,
6,
0,
0,
3,
3,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 2473,
"seconds": 12.005,
"avg_fps": 205.996,
"low_1pct_fps": 41.77,
"low_01pct_fps": 23.358,
"p50_ms": 3.996,
"p95_ms": 10.11,
"p99_ms": 17.299,
"p999_ms": 37.643,
"max_ms": 46.668,
"histogram": [
0,
1,
756,
577,
279,
317,
222,
107,
82,
60,
26,
18,
16,
5,
3,
2,
2,
0,
0,
0,
0,
0,
0,
0
]
}
],
"label": "vanilla-thinkpad-r1"
}
@@ -0,0 +1,371 @@
{
"format": "horizon-benchmark-report",
"version": 1,
"kind": "game",
"created": "2026-10-22T19:20:01Z",
"app": {
"name": "minecraft",
"version": "26.3",
"mods": [
{
"name": "fabric-loader",
"version": "0.19.5"
}
]
},
"hardware": {
"os": "linux",
"arch": "x86_64",
"cpu_threads": 4,
"os_version": "NixOS 26.05 (Yarara) (kernel 6.18.55)",
"cpu": "Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz",
"ram_mb": 31984,
"gpu": {
"name": "Mesa Intel(R) HD Graphics 620 (KBL GT2)",
"vendor": "Intel",
"driver": "4.6 (Core Profile) Mesa 26.1.8",
"backend": "opengl",
"kind": ""
}
},
"conditions": {
"scenario": "perf_bench:village,forest,ocean,mountain",
"seed": "1234",
"render_distance": 12,
"simulation_distance": 12,
"vsync": false,
"offscreen": false,
"repeats": 1,
"warmup_s": 2.0,
"load_avg_1m": 5.332,
"window": [
1280,
720
]
},
"metrics": {
"startup.title_ms": {
"n": 1,
"mean": 17463.142,
"stdev": null,
"min": 17463.142,
"max": 17463.142,
"ci95": null
},
"startup.world_ms": {
"n": 1,
"mean": 67480.142,
"stdev": null,
"min": 67480.142,
"max": 67480.142,
"ci95": null
},
"chunks.village.load_ms": {
"n": 1,
"mean": 50565.877,
"stdev": null,
"min": 50565.877,
"max": 50565.877,
"ci95": null
},
"fps.village.avg_fps": {
"n": 1,
"mean": 93.221,
"stdev": null,
"min": 93.221,
"max": 93.221,
"ci95": null
},
"fps.village.low_1pct_fps": {
"n": 1,
"mean": 20.719,
"stdev": null,
"min": 20.719,
"max": 20.719,
"ci95": null
},
"fps.village.low_01pct_fps": {
"n": 1,
"mean": 12.956,
"stdev": null,
"min": 12.956,
"max": 12.956,
"ci95": null
},
"chunks.forest.load_ms": {
"n": 1,
"mean": 48496.598,
"stdev": null,
"min": 48496.598,
"max": 48496.598,
"ci95": null
},
"fps.forest.avg_fps": {
"n": 1,
"mean": 103.859,
"stdev": null,
"min": 103.859,
"max": 103.859,
"ci95": null
},
"fps.forest.low_1pct_fps": {
"n": 1,
"mean": 26.111,
"stdev": null,
"min": 26.111,
"max": 26.111,
"ci95": null
},
"fps.forest.low_01pct_fps": {
"n": 1,
"mean": 17.943,
"stdev": null,
"min": 17.943,
"max": 17.943,
"ci95": null
},
"chunks.ocean.load_ms": {
"n": 1,
"mean": 34745.051,
"stdev": null,
"min": 34745.051,
"max": 34745.051,
"ci95": null
},
"fps.ocean.avg_fps": {
"n": 1,
"mean": 103.828,
"stdev": null,
"min": 103.828,
"max": 103.828,
"ci95": null
},
"fps.ocean.low_1pct_fps": {
"n": 1,
"mean": 28.222,
"stdev": null,
"min": 28.222,
"max": 28.222,
"ci95": null
},
"fps.ocean.low_01pct_fps": {
"n": 1,
"mean": 16.856,
"stdev": null,
"min": 16.856,
"max": 16.856,
"ci95": null
},
"chunks.mountain.load_ms": {
"n": 1,
"mean": 53136.991,
"stdev": null,
"min": 53136.991,
"max": 53136.991,
"ci95": null
},
"fps.mountain.avg_fps": {
"n": 1,
"mean": 204.734,
"stdev": null,
"min": 204.734,
"max": 204.734,
"ci95": null
},
"fps.mountain.low_1pct_fps": {
"n": 1,
"mean": 43.014,
"stdev": null,
"min": 43.014,
"max": 43.014,
"ci95": null
},
"fps.mountain.low_01pct_fps": {
"n": 1,
"mean": 20.945,
"stdev": null,
"min": 20.945,
"max": 20.945,
"ci95": null
},
"memory.rss_peak_mb": {
"n": 1,
"mean": 2086.688,
"stdev": null,
"min": 2086.688,
"max": 2086.688,
"ci95": null
},
"memory.rss_steady_mb": {
"n": 1,
"mean": 2020.902,
"stdev": null,
"min": 2020.902,
"max": 2020.902,
"ci95": null
}
},
"frames": [
{
"phase": "village",
"repeat": 0,
"frames": 1119,
"seconds": 12.004,
"avg_fps": 93.221,
"low_1pct_fps": 20.719,
"low_01pct_fps": 12.956,
"p50_ms": 8.87,
"p95_ms": 20.999,
"p99_ms": 32.814,
"p999_ms": 69.794,
"max_ms": 84.579,
"histogram": [
0,
0,
0,
1,
19,
130,
125,
211,
187,
140,
89,
85,
63,
40,
18,
4,
2,
3,
2,
0,
0,
0,
0,
0
]
},
{
"phase": "forest",
"repeat": 0,
"frames": 1247,
"seconds": 12.007,
"avg_fps": 103.859,
"low_1pct_fps": 26.111,
"low_01pct_fps": 17.943,
"p50_ms": 8.071,
"p95_ms": 20.077,
"p99_ms": 27.606,
"p999_ms": 48.322,
"max_ms": 63.142,
"histogram": [
0,
0,
0,
2,
36,
171,
170,
296,
231,
125,
52,
43,
57,
41,
14,
5,
3,
1,
0,
0,
0,
0,
0,
0
]
},
{
"phase": "ocean",
"repeat": 0,
"frames": 1246,
"seconds": 12.001,
"avg_fps": 103.828,
"low_1pct_fps": 28.222,
"low_01pct_fps": 16.856,
"p50_ms": 7.949,
"p95_ms": 17.653,
"p99_ms": 24.326,
"p999_ms": 50.371,
"max_ms": 68.283,
"histogram": [
0,
0,
0,
0,
3,
72,
329,
263,
142,
179,
116,
60,
52,
20,
4,
2,
2,
1,
1,
0,
0,
0,
0,
0
]
},
{
"phase": "mountain",
"repeat": 0,
"frames": 2457,
"seconds": 12.001,
"avg_fps": 204.734,
"low_1pct_fps": 43.014,
"low_01pct_fps": 20.945,
"p50_ms": 4.356,
"p95_ms": 9.472,
"p99_ms": 14.185,
"p999_ms": 34.466,
"max_ms": 57.719,
"histogram": [
0,
2,
633,
520,
318,
417,
268,
128,
68,
60,
17,
11,
4,
4,
3,
2,
0,
2,
0,
0,
0,
0,
0,
0
]
}
],
"label": "vanilla-thinkpad-r2"
}
+1 -1
View File
@@ -56,7 +56,7 @@ In part. Horizon runs the full-screen effects of Java shader packs, not their ge
## Does Horizon collect data?
Only if you say yes, and each kind has its own switch. Everything is off by default. The game has an anonymous "I'm playing" ping for a live player count, but it is off today: no server receives it yet, so the game sends nothing. See [Privacy](/privacy).
Only if you say yes, and each kind has its own switch. Everything is off by default. The one thing sent without asking is an anonymous "I'm playing" ping, for the count of how many play right now: it holds a random number made each time the game starts, the version, your OS and whether a world is open to LAN, and nothing about you. See [Privacy](/privacy).
## How often does it update?
+1 -1
View File
@@ -21,7 +21,7 @@ The numbers below are Horizon before and after a round of performance work, on a
The full tables, with the method and the Linux software-rendering run, are in [docs/graphics.md](https://github.com/ludovic111/horizon/blob/main/docs/graphics.md#results).
**Horizon against vanilla.** The benchmark exists: `tools/perf_bench.py` starts Horizon, vanilla 26.3 and vanilla with Sodium, Lithium, FerriteCore and ImmediatelyFast on the same machine, world, camera path and settings, and computes every number the same way. [docs/benchmark.md](https://github.com/ludovic111/horizon/blob/main/docs/benchmark.md) says how it keeps the comparison fair. **We have not published its results for the client yet**, so this site does not claim a number.
**Horizon against vanilla.** The benchmark exists: `tools/perf_bench.py` starts Horizon, vanilla 26.3 and vanilla with Sodium, Lithium, FerriteCore and ImmediatelyFast on the same machine, world, camera path and settings, and computes every number the same way. [docs/benchmark.md](https://github.com/ludovic111/horizon/blob/main/docs/benchmark.md) says how it keeps the comparison fair. Its results for the client, measured on the project's own machines, are on the [Benchmarks page](/benchmarks), with the places where Java is faster. It also estimates other hardware from them, as a range, and shows players' uploaded results once at least three installs share a graphics card and processor.
**Measure your own computer.** Horizon's half of that benchmark runs on its own:
+1 -1
View File
@@ -9,7 +9,7 @@
"dev": "node build.mjs && node serve.mjs",
"assets": "node scripts/assets.mjs",
"shots": "node scripts/shots.mjs",
"test": "node --test src/"
"test": "node --test src/ scripts/"
},
"devDependencies": {
"sharp": "^0.34.4",
+318
View File
@@ -0,0 +1,318 @@
{
"format": "horizon-benchmark-summary",
"version": 1,
"generated": "2026-10-22T20:35:03Z",
"min_installs": 3,
"groups": [
{
"gpu": "Apple M4 Pro",
"cpu": "Apple M4 Pro",
"render_distance": 12,
"game": "horizon",
"source": "us",
"machine": "Mac mini (M4 Pro)",
"measured": "2026-10-22",
"version": "v2026.10.22.04",
"backend": "metal",
"os": "macos",
"window": [
1280,
720
],
"repeats": 3,
"load_avg_1m": 55.691,
"note": "On macOS this Horizon build presents its frames in step with the 144 Hz display even with VSync off, so its average frame rate here is capped at 144: compare the 1% lows and frame times instead. The Mac mini was also running other jobs during the runs (CI, simulators; 1-minute load average 20 to 56 on 14 threads), which costs both games, vanilla more at render distance 32.",
"capped_fps": 144,
"medians": {
"avg_fps": 144,
"low_1pct_fps": 97,
"p95_ms": 7.7,
"world_ms": 11075,
"chunk_load_ms": 9438,
"rss_peak_mb": 1332,
"rss_steady_mb": 1201,
"cpu_p50_ms": 0.7,
"gpu_p50_ms": null
},
"scenes": {
"village": {
"avg_fps": 144,
"low_1pct_fps": 97,
"chunk_load_ms": 6990
},
"forest": {
"avg_fps": 144,
"low_1pct_fps": 100,
"chunk_load_ms": 10500
},
"ocean": {
"avg_fps": 144,
"low_1pct_fps": 98,
"chunk_load_ms": 10672
},
"mountain": {
"avg_fps": 144,
"low_1pct_fps": 94,
"chunk_load_ms": 9588
}
}
},
{
"gpu": "Apple M4 Pro",
"cpu": "Apple M4 Pro",
"render_distance": 32,
"game": "horizon",
"source": "us",
"machine": "Mac mini (M4 Pro)",
"measured": "2026-10-22",
"version": "v2026.10.22.04",
"backend": "metal",
"os": "macos",
"window": [
1280,
720
],
"repeats": 3,
"load_avg_1m": 34.828,
"capped_fps": 144,
"medians": {
"avg_fps": 144,
"low_1pct_fps": 109,
"p95_ms": 7.7,
"world_ms": 16377,
"chunk_load_ms": 16379,
"rss_peak_mb": 2267,
"rss_steady_mb": 1892,
"cpu_p50_ms": 1.5,
"gpu_p50_ms": null
},
"scenes": {
"village": {
"avg_fps": 144,
"low_1pct_fps": 101,
"chunk_load_ms": 12453
},
"forest": {
"avg_fps": 144,
"low_1pct_fps": 114,
"chunk_load_ms": 16309
},
"ocean": {
"avg_fps": 144,
"low_1pct_fps": 119,
"chunk_load_ms": 14322
},
"mountain": {
"avg_fps": 144,
"low_1pct_fps": 100,
"chunk_load_ms": 22432
}
}
},
{
"gpu": "Apple M4 Pro",
"cpu": "Apple M4 Pro",
"render_distance": 12,
"game": "vanilla",
"source": "us",
"machine": "Mac mini (M4 Pro)",
"measured": "2026-10-22",
"version": "26.3",
"backend": "opengl",
"os": "macos",
"window": [
1280,
720
],
"repeats": 3,
"load_avg_1m": 19.995,
"medians": {
"avg_fps": 123,
"low_1pct_fps": 29,
"p95_ms": 17,
"world_ms": 22268,
"chunk_load_ms": 10264,
"rss_peak_mb": 2445,
"rss_steady_mb": 2283,
"cpu_p50_ms": null,
"gpu_p50_ms": null
},
"scenes": {
"village": {
"avg_fps": 136,
"low_1pct_fps": 40,
"chunk_load_ms": 8374
},
"forest": {
"avg_fps": 115,
"low_1pct_fps": 22,
"chunk_load_ms": 10976
},
"ocean": {
"avg_fps": 127,
"low_1pct_fps": 29,
"chunk_load_ms": 7219
},
"mountain": {
"avg_fps": 112,
"low_1pct_fps": 23,
"chunk_load_ms": 14487
}
}
},
{
"gpu": "Apple M4 Pro",
"cpu": "Apple M4 Pro",
"render_distance": 32,
"game": "vanilla",
"source": "us",
"machine": "Mac mini (M4 Pro)",
"measured": "2026-10-22",
"version": "26.3",
"backend": "opengl",
"os": "macos",
"window": [
1280,
720
],
"repeats": 3,
"load_avg_1m": 24.818,
"medians": {
"avg_fps": 43,
"low_1pct_fps": 8,
"p95_ms": 88,
"world_ms": 65831,
"chunk_load_ms": 50534,
"rss_peak_mb": 2947,
"rss_steady_mb": 2932,
"cpu_p50_ms": null,
"gpu_p50_ms": null
},
"scenes": {
"village": {
"avg_fps": 48,
"low_1pct_fps": 6,
"chunk_load_ms": 23987
},
"forest": {
"avg_fps": 54,
"low_1pct_fps": 13,
"chunk_load_ms": 36379
},
"ocean": {
"avg_fps": 48,
"low_1pct_fps": 8,
"chunk_load_ms": 18553
},
"mountain": {
"avg_fps": 23,
"low_1pct_fps": 3,
"chunk_load_ms": 123217
}
}
},
{
"gpu": "Intel HD Graphics 620 (KBL GT2)",
"cpu": "Intel Core i7-7500U CPU @ 2.70GHz",
"render_distance": 12,
"game": "horizon",
"source": "us",
"machine": "ThinkPad (i7-7500U, HD Graphics 620)",
"measured": "2026-10-22",
"version": "v2026.10.22.04",
"backend": "vulkan",
"os": "linux",
"window": [
1280,
720
],
"repeats": 2,
"load_avg_1m": 0.988,
"note": "A 2016 laptop: 2 cores / 4 threads and Intel integrated graphics, Linux with Mesa 26.1.8 (Horizon on Vulkan, vanilla on OpenGL). It has no screen attached, so both games drew to a GPU compositor (sway on the Intel GPU) in a 1280x720 window. Horizon ran two flights per scene, vanilla two separate games of one. Render distance 32 is not shown: in 5 minutes neither game finished loading the spawn, and given 25, Horizon kept only about 900 to 1,400 chunk columns resident on this machine instead of the 3,200 a full view holds, so the two games would not have drawn the same world.",
"medians": {
"avg_fps": 209,
"low_1pct_fps": 39,
"p95_ms": 14,
"world_ms": 50794,
"chunk_load_ms": 59726,
"rss_peak_mb": 986,
"rss_steady_mb": 797,
"cpu_p50_ms": 2.6,
"gpu_p50_ms": 4.5
},
"scenes": {
"village": {
"avg_fps": 273,
"low_1pct_fps": 46,
"chunk_load_ms": 44860
},
"forest": {
"avg_fps": 246,
"low_1pct_fps": 48,
"chunk_load_ms": 67527
},
"ocean": {
"avg_fps": 204,
"low_1pct_fps": 36,
"chunk_load_ms": 51485
},
"mountain": {
"avg_fps": 111,
"low_1pct_fps": 26,
"chunk_load_ms": 75032
}
}
},
{
"gpu": "Mesa Intel HD Graphics 620 (KBL GT2)",
"cpu": "Intel Core i7-7500U CPU @ 2.70GHz",
"render_distance": 12,
"game": "vanilla",
"source": "us",
"machine": "ThinkPad (i7-7500U, HD Graphics 620)",
"measured": "2026-10-22",
"version": "26.3",
"backend": "opengl",
"os": "linux",
"window": [
1280,
720
],
"repeats": 2,
"load_avg_1m": 5.749,
"medians": {
"avg_fps": 126,
"low_1pct_fps": 29,
"p95_ms": 17,
"world_ms": 68127,
"chunk_load_ms": 46879,
"rss_peak_mb": 2144,
"rss_steady_mb": 2074,
"cpu_p50_ms": null,
"gpu_p50_ms": null
},
"scenes": {
"village": {
"avg_fps": 91,
"low_1pct_fps": 22,
"chunk_load_ms": 52101
},
"forest": {
"avg_fps": 104,
"low_1pct_fps": 28,
"chunk_load_ms": 47218
},
"ocean": {
"avg_fps": 104,
"low_1pct_fps": 25,
"chunk_load_ms": 33421
},
"mountain": {
"avg_fps": 205,
"low_1pct_fps": 42,
"chunk_load_ms": 54778
}
}
}
]
}
+93
View File
@@ -0,0 +1,93 @@
Copyright 2021 The Pixelify Sans Project Authors (https://github.com/eifetx/Pixelify-Sans)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

+151
View File
@@ -0,0 +1,151 @@
// Horizon's pixel art for the website, drawn in code like the launcher's (launcher/src/art.rs):
// the stone tile behind the pages and the landscape behind the hero, in both appearances.
// Each texel is one pixel of the PNG; the CSS scales them up with `image-rendering: pixelated`.
// Written by `npm run assets` (or `node scripts/art.mjs`) into public/media/.
import { readFile } from "node:fs/promises";
import { join, dirname } from "node:path";
import { fileURLToPath } from "node:url";
import sharp from "sharp";
const site = join(dirname(fileURLToPath(import.meta.url)), "..");
const repo = join(site, "..");
// The same small fixed random sequence as art.rs (xorshift), so the art is the same every time.
function rng(seed) {
let x = seed >>> 0;
return () => {
x = (x ^ (x << 13)) >>> 0;
x = (x ^ (x >>> 17)) >>> 0;
x = (x ^ (x << 5)) >>> 0;
return Math.fround((x >>> 8) / (1 << 24));
};
}
const channels = (c) => [(c >> 16) & 255, (c >> 8) & 255, c & 255];
const shade = (c, by) => channels(c).reduce((out, v) => (out << 8) | Math.min(255, Math.max(0, v + by)), 0);
const mix = (a, b, t) => {
const [x, y] = [channels(a), channels(b)];
return x.reduce((out, v, i) => (out << 8) | Math.round(v + (y[i] - v) * t), 0);
};
// `n` by `n` texels of stone: the page colour in a few close shades, with darker flecks.
export function stone(page, shades, n) {
const s = shades.map((by) => shade(page, by));
const next = rng(0x9e3779b9);
const out = Array.from({ length: n * n }, () => {
const v = next();
return s[v < 0.5 ? 0 : v < 0.78 ? 1 : v < 0.93 ? 2 : 3];
});
for (let k = 0; k < Math.floor((n * n) / 50); k++) {
const x = Math.floor(next() * n);
const y = Math.floor(next() * n);
const len = 1 + Math.floor(next() * 3);
for (let i = 0; i < len; i++) {
out[y * n + ((x + i) % n)] = s[4];
out[((y + 1) % n) * n + ((x + i + 1) % n)] = s[4];
}
}
return out;
}
export const SUNSET = {
sky: [0x0a0f2c, 0x26206a, 0x4b2a7e, 0x7c3a88, 0xc4527a, 0xee6e5a, 0xffb25e],
sun: [0xfff6cf, 0xffd272, 0xff9a44],
far: 0x4a2f7e, mid: 0x2b1f5e, near: 0x151a45, top: 0x3d2f80, trees: 0x0e1236,
};
export const DAWN = {
sky: [0x8d7fd8, 0xa596e2, 0xbcaeea, 0xd2c4f0, 0xe7d2ee, 0xf6dce4, 0xffe6d6],
sun: [0xffffff, 0xfff1d0, 0xffd9a8],
far: 0xa898dc, mid: 0x8676c8, near: 0x6a5ab4, top: 0x9a8ae0, trees: 0x4c3e94,
};
// A blocky landscape, `w` by `h` texels: banded sky, a sun half set behind the far hills and cut
// into slices like Horizon's mark, flat clouds, three ridges of hills and a few square trees.
export function scene(p, seed, w, h) {
const next = rng((Math.imul(seed, 0x2545f491) | 1) >>> 0);
const out = new Array(w * h).fill(0);
const horizon = Math.floor((h * 62) / 100);
const band = horizon / p.sky.length;
for (let y = 0; y < h; y++) {
const f = y / band;
const i = Math.min(Math.floor(f), p.sky.length - 1);
const dither = f - i > 0.88 && i + 1 < p.sky.length;
for (let x = 0; x < w; x++) out[y * w + x] = dither && (x + y) % 2 === 1 ? p.sky[i + 1] : p.sky[i];
}
const rect = (x, y, rw, rh, c) => {
for (let yy = Math.max(y, 0); yy < Math.min(y + rh, h); yy++)
for (let xx = Math.max(x, 0); xx < Math.min(x + rw, w); xx++) out[yy * w + xx] = c;
};
for (let k = 0; k < 4; k++) {
const cx = Math.floor(next() * w);
const cy = Math.floor(horizon * (0.12 + next() * 0.4));
const cw = 10 + Math.floor(next() * 14);
const under = p.sky[Math.min(Math.floor(cy / band) + 1, p.sky.length - 1)];
const c = mix(under, 0xffffff, 0.12);
rect(cx, cy, cw, 2, c);
rect(cx + 3, cy - 2, Math.max(cw - 6, 0), 2, c);
}
const r = Math.floor(h * 0.2);
const [cx, cy] = [Math.floor(w * 0.68), horizon - Math.floor(h * 0.11)];
for (let dy = -r; dy <= 0; dy++) {
const half = Math.round(Math.sqrt(r * r - dy * dy));
const t = (dy + r) / r;
const c = p.sun[t < 0.4 ? 0 : t < 0.75 ? 1 : 2];
if ((cy + dy) % 5 !== 0 || dy < -r * 0.6) rect(cx - half, cy + dy, half * 2, 1, c);
}
const ridge = (base, amp, rough) => {
let [y, v] = [base, 0];
return Array.from({ length: w }, (_, x) => {
if (x % 2 === 0) {
v = (v + (next() - 0.5) * rough) * 0.86;
y += v + (base - y) * 0.06;
}
return Math.max(Math.round(Math.min(Math.max(y, base - amp), base + amp)), 0);
});
};
const layers = [
[p.far, horizon - h * 0.1, h * 0.12, 3.2, null],
[p.mid, horizon + h * 0.02, h * 0.09, 2.6, null],
[p.near, horizon + h * 0.18, h * 0.07, 2.2, p.top],
];
let near = [];
for (const [c, base, amp, rough, top] of layers) {
const hs = ridge(base, amp, rough);
hs.forEach((y, x) => {
for (let yy = Math.min(y, h); yy < h; yy++) out[yy * w + x] = c;
if (top !== null && y < h) out[y * w + x] = top;
});
near = hs;
}
for (let k = 0; k < Math.floor(w / 26); k++) {
const tx = 4 + Math.floor(next() * (w - 10));
const ty = near[tx];
rect(tx - 2, ty - 8, 5, 5, p.trees);
rect(tx - 1, ty - 10, 3, 2, p.trees);
rect(tx, ty - 3, 1, 3, p.trees);
}
return out;
}
const png = (texels, w, h, file) =>
sharp(Buffer.from(texels.flatMap(channels)), { raw: { width: w, height: h, channels: 3 } })
.png({ compressionLevel: 9, palette: true })
.toFile(file);
// The page colours and the stone's shades come from crates/horizon-theme, like tokens.css.
export async function writeArt(media) {
const theme = await readFile(join(repo, "crates/horizon-theme/src/lib.rs"), "utf8");
const page = (name) => parseInt(theme.match(new RegExp(`pub const ${name}: Blocks = Blocks \\{\\s*page: 0x([0-9a-f]{6})`))[1], 16);
const shades = JSON.parse(`[${theme.match(/TILE_SHADES: \[i16; 5\] = \[([^\]]*)\]/)[1]}]`);
const texels = Number(theme.match(/TILE_TEXELS: usize = (\d+)/)[1]) * 4;
await png(stone(page("BLOCKS_DARK"), shades, texels), texels, texels, join(media, "stone-dark.png"));
await png(stone(page("BLOCKS_LIGHT"), shades, texels), texels, texels, join(media, "stone-light.png"));
const [w, h] = [240, 72];
await png(scene(SUNSET, 3, w, h), w, h, join(media, "scene-dark.png"));
await png(scene(DAWN, 3, w, h), w, h, join(media, "scene-light.png"));
}
if (process.argv[1] === fileURLToPath(import.meta.url)) {
await writeArt(join(site, "public", "media"));
console.log("pixel art written to public/media/");
}
+9 -2
View File
@@ -1,4 +1,4 @@
// Copies the launcher's fonts and the repo's screenshots into public/,
// Copies the launcher's fonts and the repo's screenshots into public/, draws the pixel art,
// converted for the web (woff2, webp in two widths). Run it after any of them change:
// `npm run assets`. Its output is committed, because Railway builds only website/.
import { mkdir, readFile, writeFile, copyFile } from "node:fs/promises";
@@ -6,6 +6,7 @@ import { join, dirname } from "node:path";
import { fileURLToPath } from "node:url";
import sharp from "sharp";
import wawoff2 from "wawoff2";
import { writeArt } from "./art.mjs";
const site = join(dirname(fileURLToPath(import.meta.url)), "..");
const repo = join(site, "..");
@@ -16,6 +17,9 @@ const fonts = [
"Geist-Medium.ttf",
"Geist-SemiBold.ttf",
"GeistMono-Regular.ttf",
"PixelifySans-Medium.ttf",
"PixelifySans-SemiBold.ttf",
"PixelifySans-Bold.ttf",
];
// [source, name]; every image becomes media/<name>.webp and media/<name>-800.webp.
@@ -37,7 +41,7 @@ for (const font of fonts) {
const ttf = await readFile(join(repo, "crates/horizon-theme/fonts", font));
await writeFile(join(pub, "fonts", font.replace(".ttf", ".woff2")), await wawoff2.compress(ttf));
}
for (const licence of ["OFL-Geist.txt"]) {
for (const licence of ["OFL-Geist.txt", "OFL-PixelifySans.txt"]) {
await copyFile(join(repo, "crates/horizon-theme/fonts", licence), join(pub, "fonts", licence));
}
@@ -47,6 +51,9 @@ for (const [source, name] of images) {
await sharp(input).resize({ width: 800 }).webp({ quality: 78 }).toFile(join(pub, "media", `${name}-800.webp`));
}
// The stone tile and the hero's landscape, drawn in code (scripts/art.mjs).
await writeArt(join(pub, "media"));
// The icons (favicon.svg, favicon-32.png, apple-touch-icon.png) come from Horizon's mark:
// `cargo run -p xtask -- icons` writes them with the rest of the brand (docs/media/brand).
+196
View File
@@ -0,0 +1,196 @@
// Benchmark results for the site: benchmark reports (docs/benchmark-report.md) in, the summary the Benchmarks page
// reads out (public/benchmarks.json, and the telemetry server's GET /v1/benchmarks/summary in the same shape).
//
// node scripts/benchmarks.mjs --ours fleet.json [--telemetry items.jsonl] [-o public/benchmarks.json]
//
// --ours lists our own runs (tools/perf_bench.py reports, Horizon and vanilla, one machine each); --telemetry holds
// players' `benchmark` items as the server stores them ({ install_id, day, version, data: <report> } per line).
// Players' results are grouped by GPU, CPU, render distance and game, and a group is published only with at least
// MIN_INSTALLS installs, so nobody can be picked out. install_id is used to count installs and to weigh each install
// once, and never leaves this script; neither do the day, OS version, driver, RAM or screen.
import { readFile, writeFile } from "node:fs/promises";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
export const FORMAT = "horizon-benchmark-summary";
export const MIN_INSTALLS = 3;
export const SCENES = ["village", "forest", "ocean", "mountain"];
export const FIELDS = ["avg_fps", "low_1pct_fps", "p95_ms", "world_ms", "chunk_load_ms", "rss_peak_mb", "rss_steady_mb"];
const mean = (xs) => (xs.length ? xs.reduce((a, b) => a + b, 0) / xs.length : null);
const finite = (x) => typeof x === "number" && Number.isFinite(x);
export function median(xs) {
const v = xs.filter(finite).sort((a, b) => a - b);
if (!v.length) return null;
const m = v.length >> 1;
return v.length % 2 ? v[m] : (v[m - 1] + v[m]) / 2;
}
// fps to integers, milliseconds to a tenth under 10 and to integers above, megabytes to integers.
export function round(field, x) {
if (!finite(x)) return null;
if (field.endsWith("_ms")) return x < 10 ? Math.round(x * 10) / 10 : Math.round(x);
return Math.round(x);
}
const trim = (s) => (typeof s === "string" ? s.replace(/\(R\)|\(TM\)|\(tm\)/g, "").replace(/\s+/g, " ").trim() : "");
const gameOf = (app) => (app?.name === "horizon-client" ? "horizon" : app?.name === "minecraft" && !(app.mods || []).some((m) => m.name !== "fabric-loader") ? "vanilla" : null);
// Why a report can't be compared with the others, or null when it can: the standard flight over the four scenes,
// VSync off, no frame cap, drawn on a screen.
export function rejection(report) {
if (!report || report.format !== "horizon-benchmark-report" || report.version !== 1) return "not a version 1 benchmark report";
if (report.kind !== "game") return "not a game run";
if (!gameOf(report.app)) return "not Horizon or plain vanilla";
const c = report.conditions || {};
if (!(c.scenario === "standard" || c.scenario === "flight" || String(c.scenario || "").startsWith("perf_bench:"))) return "not the standard flight";
if (c.vsync !== false) return "VSync on or unknown";
if (c.fps_cap != null) return "frame rate capped";
if (c.offscreen === true) return "offscreen";
if (!finite(c.render_distance)) return "no render distance";
const phases = new Set((report.frames || []).map((f) => f.phase));
if (!SCENES.every((s) => phases.has(s))) return "not every scene";
if (!trim(report.hardware?.gpu?.name) || !trim(report.hardware?.cpu)) return "no GPU or CPU name";
return null;
}
// One report's figures: frame figures averaged over every flight (scene and repeat), the rest from its metrics.
export function figures(report) {
const frames = report.frames || [];
const m = report.metrics || {};
const metric = (name) => (finite(m[name]?.mean) ? m[name].mean : null);
const loads = Object.keys(m).filter((k) => /^chunks\.[^.]+\.load_ms$/.test(k)).map(metric).filter(finite);
const avg = (key) => mean(frames.map((f) => f[key]).filter(finite));
return {
avg_fps: avg("avg_fps"),
low_1pct_fps: avg("low_1pct_fps"),
p95_ms: avg("p95_ms"),
world_ms: metric("startup.world_ms"),
chunk_load_ms: mean(loads),
rss_peak_mb: metric("memory.rss_peak_mb"),
rss_steady_mb: metric("memory.rss_steady_mb"),
cpu_p50_ms: avg("cpu_p50_ms"),
gpu_p50_ms: avg("gpu_p50_ms"),
};
}
const roundAll = (fig, fields) => Object.fromEntries(fields.map((f) => [f, round(f, fig[f])]));
// Players' items -> groups of at least minInstalls installs. Each install counts once: its median first, then the
// median across installs.
export function aggregatePlayers(items, { minInstalls = MIN_INSTALLS } = {}) {
const groups = new Map();
for (const item of items) {
const report = item?.data;
if (!item?.install_id || rejection(report)) continue;
const key = JSON.stringify([trim(report.hardware.gpu.name), trim(report.hardware.cpu), report.conditions.render_distance, gameOf(report.app)]);
if (!groups.has(key)) groups.set(key, { installs: new Map(), reports: 0, versions: new Set() });
const g = groups.get(key);
g.reports++;
if (item.version) g.versions.add(item.version);
if (!g.installs.has(item.install_id)) g.installs.set(item.install_id, []);
g.installs.get(item.install_id).push(figures(report));
}
const out = [];
for (const [key, g] of groups) {
if (g.installs.size < minInstalls) continue;
const [gpu, cpu, render_distance, game] = JSON.parse(key);
const perInstall = [...g.installs.values()].map((runs) => Object.fromEntries(FIELDS.map((f) => [f, median(runs.map((r) => r[f]))])));
const medians = Object.fromEntries(FIELDS.map((f) => [f, round(f, median(perInstall.map((r) => r[f])))]));
out.push({ gpu, cpu, render_distance, game, source: "players", installs: g.installs.size, reports: g.reports, versions: [...g.versions].sort(byVersionDesc).slice(0, 3), medians });
}
// Most installs first, then by GPU, CPU, render distance and game, compared as plain strings (as the server does).
const cmp = (x, y) => (x < y ? -1 : x > y ? 1 : 0);
return out.sort((a, b) => b.installs - a.installs || cmp(a.gpu, b.gpu) || cmp(a.cpu, b.cpu) || a.render_distance - b.render_distance || cmp(a.game, b.game));
}
// "v0.2.10" after "v0.2.9", dated tags by their numbers; good enough to list the newest three.
function byVersionDesc(a, b) {
const n = (v) => (v.match(/\d+/g) || []).map(Number);
const [x, y] = [n(a), n(b)];
for (let i = 0; i < Math.max(x.length, y.length); i++) if ((x[i] ?? -1) !== (y[i] ?? -1)) return (y[i] ?? -1) - (x[i] ?? -1);
return 0;
}
// Our own runs: one row per machine, game and render distance, with what was measured and how. An entry holds one
// report (its runs are the report's repeats) or several (one game each); figures are medians over the reports.
export function ourRows(runs) {
const rows = [];
for (const { report, reports, machine, note, version, capped_fps } of runs) {
const list = reports || [report];
for (const r of list) {
const why = rejection(r);
if (why) throw new Error(`${machine}: ${r?.label || "report"} can't be published: ${why}`);
}
const [first] = list;
const c = first.conditions;
if (list.some((r) => r.conditions.render_distance !== c.render_distance || gameOf(r.app) !== gameOf(first.app) || r.app.version !== first.app.version))
throw new Error(`${machine}: reports of different games, versions or render distances in one entry`);
const figs = list.map(figures);
const fig = Object.fromEntries(Object.keys(figs[0]).map((k) => [k, median(figs.map((f) => f[k]))]));
const scenes = Object.fromEntries(
SCENES.map((s) => {
const fs = list.flatMap((r) => r.frames.filter((f) => f.phase === s));
const loads = list.map((r) => r.metrics?.[`chunks.${s}.load_ms`]?.mean);
return [s, { avg_fps: round("avg_fps", mean(fs.map((f) => f.avg_fps))), low_1pct_fps: round("low_1pct_fps", mean(fs.map((f) => f.low_1pct_fps))), chunk_load_ms: round("chunk_load_ms", median(loads)) }];
}),
);
rows.push({
gpu: trim(first.hardware.gpu.name),
cpu: trim(first.hardware.cpu),
render_distance: c.render_distance,
game: gameOf(first.app),
source: "us",
machine,
measured: list.map((r) => (r.created || "").slice(0, 10)).sort().at(-1),
// A release build reports its crate version; the entry can name the release it was.
version: version || first.app.version,
backend: first.hardware.gpu.backend || null,
os: first.hardware.os || null,
window: c.window || null,
repeats: list.reduce((n, r) => n + (r.conditions.repeats || 1), 0),
load_avg_1m: Math.max(...list.map((r) => r.conditions.load_avg_1m ?? 0)),
...(note ? { note } : {}),
// The frame rate the display held this game to (a present mode VSync off doesn't lift): its average is a floor.
...(capped_fps ? { capped_fps } : {}),
// A split of 0 means the backend gave no timing (Metal has no GPU timer here): unknown, not free.
medians: { ...roundAll(fig, FIELDS), cpu_p50_ms: fig.cpu_p50_ms > 0 ? round("cpu_p50_ms", fig.cpu_p50_ms) : null, gpu_p50_ms: fig.gpu_p50_ms > 0 ? round("gpu_p50_ms", fig.gpu_p50_ms) : null },
scenes,
});
}
return rows;
}
export function summary({ ours = [], players = [], generated = new Date() } = {}) {
return { format: FORMAT, version: 1, generated: generated.toISOString().replace(/\.\d+Z$/, "Z"), min_installs: MIN_INSTALLS, groups: [...ours, ...players] };
}
// --- The command line ----------------------------------------------------------------------
async function main(argv) {
const arg = (name) => {
const i = argv.indexOf(name);
return i >= 0 ? argv[i + 1] : null;
};
const site = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const out = arg("-o") || resolve(site, "public/benchmarks.json");
let ours = [];
if (arg("--ours")) {
// [{ "machine": "Mac mini", "reports": ["path/to/report.json", ...], "version": "v…", "note": "..." }], paths
// relative to the list; "version" names the release when the report only has the crate version.
const listPath = resolve(arg("--ours"));
const list = JSON.parse(await readFile(listPath, "utf8"));
const load = async (path) => JSON.parse(await readFile(resolve(dirname(listPath), path), "utf8"));
const runs = [];
for (const entry of list) runs.push({ ...entry, reports: await Promise.all((entry.reports || [entry.report]).map(load)), report: undefined });
ours = ourRows(runs);
}
let players = [];
if (arg("--telemetry")) {
const text = await readFile(resolve(arg("--telemetry")), "utf8");
players = aggregatePlayers(text.split("\n").filter((l) => l.trim()).map((l) => JSON.parse(l)));
}
const result = summary({ ours, players });
await writeFile(out, JSON.stringify(result, null, 1) + "\n");
console.log(`${out}: ${ours.length} rows measured by us, ${players.length} player groups`);
}
if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) await main(process.argv.slice(2));
+67
View File
@@ -0,0 +1,67 @@
// node --test (npm test in website/). The fixtures are shared with the telemetry server's summary test.
import { test } from "node:test";
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { aggregatePlayers, median, ourRows, rejection, round, summary } from "./benchmarks.mjs";
const fixture = (name) => new URL(`./fixtures/benchmarks/${name}`, import.meta.url);
const items = readFileSync(fixture("items.jsonl"), "utf8").split("\n").filter(Boolean).map((l) => JSON.parse(l));
const expected = JSON.parse(readFileSync(fixture("expected.json"), "utf8"));
test("players' items give the expected groups", () => {
const s = summary({ players: aggregatePlayers(items) });
assert.equal(s.format, "horizon-benchmark-summary");
assert.equal(s.min_installs, expected.min_installs);
assert.deepEqual(s.groups, expected.groups);
});
test("nothing that identifies an install is published", () => {
const text = JSON.stringify(aggregatePlayers(items, { minInstalls: 1 }));
for (const secret of ["a1", "a2", "install_id", "secret-os-version", "secret-driver", "20394", "ram_mb", "2560"]) assert.ok(!text.includes(secret), secret);
});
test("a group needs three installs, not three runs", () => {
const one = items.filter((i) => i.install_id === "a1");
assert.equal(aggregatePlayers([...one, ...one, ...one]).length, 0);
assert.equal(aggregatePlayers(items, { minInstalls: 2 }).length, 2);
});
test("only comparable runs count", () => {
const reasons = items.map((i) => rejection(i.data));
assert.deepEqual(reasons.filter(Boolean), ["VSync on or unknown", "offscreen", "frame rate capped", "not every scene", "not the standard flight", "not a version 1 benchmark report"]);
});
test("medians and rounding", () => {
assert.equal(median([3, 1, 2]), 2);
assert.equal(median([4, 1, 2, 3]), 2.5);
assert.equal(median([null, NaN]), null);
assert.equal(round("p95_ms", 3.46), 3.5);
assert.equal(round("world_ms", 4512.4), 4512);
assert.equal(round("avg_fps", 99.5), 100);
});
test("our runs keep the machine and how it was measured", () => {
const [row] = ourRows([{ machine: "Desktop", report: items[0].data }]);
assert.equal(row.source, "us");
assert.equal(row.machine, "Desktop");
assert.equal(row.game, "horizon");
assert.equal(row.medians.avg_fps, 415);
assert.equal(row.scenes.ocean.avg_fps, 420);
assert.throws(() => ourRows([{ machine: "x", report: items[4].data }]), /VSync/);
// Several one-game reports: medians over them.
const [both] = ourRows([{ machine: "Desktop", reports: [items[0].data, items[1].data] }]);
assert.equal(both.medians.avg_fps, 515);
assert.equal(both.repeats, 2);
assert.throws(() => ourRows([{ machine: "x", reports: [items[0].data, items[9].data] }]), /different/);
});
test("a display cap on our run is kept, and the comparison says at least", async () => {
const [row] = ourRows([{ machine: "Mac", report: items[0].data, capped_fps: 144, version: "v1" }]);
assert.equal(row.capped_fps, 144);
assert.equal(row.version, "v1");
const { compareRows, METRICS } = await import("../src/bench.js");
const fps = METRICS[0];
const h = { capped_fps: 144, medians: { avg_fps: 144 } };
assert.equal(compareRows(fps, h, { medians: { avg_fps: 120 } }).text, "at least 1.2x faster");
assert.equal(compareRows(fps, h, { medians: { avg_fps: 200 } }).wins, "none");
});
@@ -0,0 +1,10 @@
# Benchmark summary fixtures
Shared by the website's aggregator test (`website/scripts/benchmarks.test.mjs`) and the telemetry server's
`GET /v1/benchmarks/summary` test: the same `benchmark` items in, the same groups out.
- `items.jsonl`: one stored item per line (`install_id`, `day`, `version`, `data`: a benchmark report). Group
RTX 4080 + i7-13700KF at render distance 12 has three installs (one with two runs); the same install at 32,
and the RTX 3060 group, have fewer than three and are left out. The other runs are rejected: VSync on,
offscreen, a frame cap, a missing scene, a one-scene scenario, a report of another version, no install ID.
- `expected.json`: `min_installs` and `groups` of the summary (`generated` varies).
@@ -0,0 +1,16 @@
{
"min_installs": 3,
"groups": [
{
"gpu": "NVIDIA GeForce RTX 4080",
"cpu": "13th Gen Intel Core i7-13700KF",
"render_distance": 12,
"game": "horizon",
"source": "players",
"installs": 3,
"reports": 4,
"versions": ["v0.2.1", "v0.2.0"],
"medians": { "avg_fps": 515, "low_1pct_fps": 120, "p95_ms": 3.5, "world_ms": 4500, "chunk_load_ms": 1400, "rss_peak_mb": 1450, "rss_steady_mb": 1250 }
}
]
}
@@ -0,0 +1,14 @@
{"install_id":"a1","day":20394,"version":"v0.2.0","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"13th Gen Intel(R) Core(TM) i7-13700KF","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 4080","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":5000,"stdev":null,"min":5000,"max":5000,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1400},"memory.rss_steady_mb":{"n":1,"mean":1200},"chunks.village.load_ms":{"n":1,"mean":1500},"chunks.forest.load_ms":{"n":1,"mean":1500},"chunks.ocean.load_ms":{"n":1,"mean":1500},"chunks.mountain.load_ms":{"n":1,"mean":1500}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":400,"low_1pct_fps":100,"low_01pct_fps":50,"p50_ms":2,"p95_ms":4,"p99_ms":8,"p999_ms":12,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":410,"low_1pct_fps":100,"low_01pct_fps":50,"p50_ms":2,"p95_ms":4,"p99_ms":8,"p999_ms":12,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":420,"low_1pct_fps":100,"low_01pct_fps":50,"p50_ms":2,"p95_ms":4,"p99_ms":8,"p999_ms":12,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":430,"low_1pct_fps":100,"low_01pct_fps":50,"p50_ms":2,"p95_ms":4,"p99_ms":8,"p999_ms":12,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"a1","day":20395,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"13th Gen Intel(R) Core(TM) i7-13700KF","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 4080","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":4000,"stdev":null,"min":4000,"max":4000,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1500},"memory.rss_steady_mb":{"n":1,"mean":1300},"chunks.village.load_ms":{"n":1,"mean":1300},"chunks.forest.load_ms":{"n":1,"mean":1300},"chunks.ocean.load_ms":{"n":1,"mean":1300},"chunks.mountain.load_ms":{"n":1,"mean":1300}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":600,"low_1pct_fps":140,"low_01pct_fps":70,"p50_ms":2,"p95_ms":3,"p99_ms":6,"p999_ms":9,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":610,"low_1pct_fps":140,"low_01pct_fps":70,"p50_ms":2,"p95_ms":3,"p99_ms":6,"p999_ms":9,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":620,"low_1pct_fps":140,"low_01pct_fps":70,"p50_ms":2,"p95_ms":3,"p99_ms":6,"p999_ms":9,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":630,"low_1pct_fps":140,"low_01pct_fps":70,"p50_ms":2,"p95_ms":3,"p99_ms":6,"p999_ms":9,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"a2","day":20395,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"13th Gen Intel(R) Core(TM) i7-13700KF","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 4080","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":6000,"stdev":null,"min":6000,"max":6000,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1300},"memory.rss_steady_mb":{"n":1,"mean":1100},"chunks.village.load_ms":{"n":1,"mean":1700},"chunks.forest.load_ms":{"n":1,"mean":1700},"chunks.ocean.load_ms":{"n":1,"mean":1700},"chunks.mountain.load_ms":{"n":1,"mean":1700}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":300,"low_1pct_fps":80,"low_01pct_fps":40,"p50_ms":2,"p95_ms":5,"p99_ms":10,"p999_ms":15,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":310,"low_1pct_fps":80,"low_01pct_fps":40,"p50_ms":2,"p95_ms":5,"p99_ms":10,"p999_ms":15,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":320,"low_1pct_fps":80,"low_01pct_fps":40,"p50_ms":2,"p95_ms":5,"p99_ms":10,"p999_ms":15,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":330,"low_1pct_fps":80,"low_01pct_fps":40,"p50_ms":2,"p95_ms":5,"p99_ms":10,"p999_ms":15,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"a3","day":20396,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"13th Gen Intel(R) Core(TM) i7-13700KF","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 4080","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":3000,"stdev":null,"min":3000,"max":3000,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1600},"memory.rss_steady_mb":{"n":1,"mean":1400},"chunks.village.load_ms":{"n":1,"mean":1100},"chunks.forest.load_ms":{"n":1,"mean":1100},"chunks.ocean.load_ms":{"n":1,"mean":1100},"chunks.mountain.load_ms":{"n":1,"mean":1100}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":700,"low_1pct_fps":160,"low_01pct_fps":80,"p50_ms":2,"p95_ms":2.5,"p99_ms":5,"p999_ms":7.5,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":710,"low_1pct_fps":160,"low_01pct_fps":80,"p50_ms":2,"p95_ms":2.5,"p99_ms":5,"p999_ms":7.5,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":720,"low_1pct_fps":160,"low_01pct_fps":80,"p50_ms":2,"p95_ms":2.5,"p99_ms":5,"p999_ms":7.5,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":730,"low_1pct_fps":160,"low_01pct_fps":80,"p50_ms":2,"p95_ms":2.5,"p99_ms":5,"p999_ms":7.5,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"a4","day":20396,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"13th Gen Intel(R) Core(TM) i7-13700KF","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 4080","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":true,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":2000,"stdev":null,"min":2000,"max":2000,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1700},"memory.rss_steady_mb":{"n":1,"mean":1500},"chunks.village.load_ms":{"n":1,"mean":900},"chunks.forest.load_ms":{"n":1,"mean":900},"chunks.ocean.load_ms":{"n":1,"mean":900},"chunks.mountain.load_ms":{"n":1,"mean":900}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":900,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":910,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":920,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":930,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"a5","day":20396,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"13th Gen Intel(R) Core(TM) i7-13700KF","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 4080","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"offscreen":true,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":2000,"stdev":null,"min":2000,"max":2000,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1700},"memory.rss_steady_mb":{"n":1,"mean":1500},"chunks.village.load_ms":{"n":1,"mean":900},"chunks.forest.load_ms":{"n":1,"mean":900},"chunks.ocean.load_ms":{"n":1,"mean":900},"chunks.mountain.load_ms":{"n":1,"mean":900}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":900,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":910,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":920,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":930,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"a6","day":20396,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"13th Gen Intel(R) Core(TM) i7-13700KF","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 4080","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"fps_cap":60,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":2000,"stdev":null,"min":2000,"max":2000,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1700},"memory.rss_steady_mb":{"n":1,"mean":1500},"chunks.village.load_ms":{"n":1,"mean":900},"chunks.forest.load_ms":{"n":1,"mean":900},"chunks.ocean.load_ms":{"n":1,"mean":900},"chunks.mountain.load_ms":{"n":1,"mean":900}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":900,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":910,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":920,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":930,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"a7","day":20396,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"13th Gen Intel(R) Core(TM) i7-13700KF","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 4080","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":2000,"stdev":null,"min":2000,"max":2000,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1700},"memory.rss_steady_mb":{"n":1,"mean":1500},"chunks.village.load_ms":{"n":1,"mean":900},"chunks.forest.load_ms":{"n":1,"mean":900},"chunks.mountain.load_ms":{"n":1,"mean":900}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":900,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":910,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":920,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"a8","day":20396,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"13th Gen Intel(R) Core(TM) i7-13700KF","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 4080","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"village","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":2000,"stdev":null,"min":2000,"max":2000,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1700},"memory.rss_steady_mb":{"n":1,"mean":1500},"chunks.village.load_ms":{"n":1,"mean":900},"chunks.forest.load_ms":{"n":1,"mean":900},"chunks.ocean.load_ms":{"n":1,"mean":900},"chunks.mountain.load_ms":{"n":1,"mean":900}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":900,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":910,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":920,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":930,"low_1pct_fps":200,"low_01pct_fps":100,"p50_ms":2,"p95_ms":2,"p99_ms":4,"p999_ms":6,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"a1","day":20396,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"13th Gen Intel(R) Core(TM) i7-13700KF","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 4080","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":32,"simulation_distance":12,"window":[1280,720],"vsync":false,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":9000,"stdev":null,"min":9000,"max":9000,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":2600},"memory.rss_steady_mb":{"n":1,"mean":2300},"chunks.village.load_ms":{"n":1,"mean":6000},"chunks.forest.load_ms":{"n":1,"mean":6000},"chunks.ocean.load_ms":{"n":1,"mean":6000},"chunks.mountain.load_ms":{"n":1,"mean":6000}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":120,"low_1pct_fps":30,"low_01pct_fps":15,"p50_ms":2,"p95_ms":12,"p99_ms":24,"p999_ms":36,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":130,"low_1pct_fps":30,"low_01pct_fps":15,"p50_ms":2,"p95_ms":12,"p99_ms":24,"p999_ms":36,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":140,"low_1pct_fps":30,"low_01pct_fps":15,"p50_ms":2,"p95_ms":12,"p99_ms":24,"p999_ms":36,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":150,"low_1pct_fps":30,"low_01pct_fps":15,"p50_ms":2,"p95_ms":12,"p99_ms":24,"p999_ms":36,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"b1","day":20396,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 3060","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":7000,"stdev":null,"min":7000,"max":7000,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1300},"memory.rss_steady_mb":{"n":1,"mean":1100},"chunks.village.load_ms":{"n":1,"mean":2500},"chunks.forest.load_ms":{"n":1,"mean":2500},"chunks.ocean.load_ms":{"n":1,"mean":2500},"chunks.mountain.load_ms":{"n":1,"mean":2500}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":250,"low_1pct_fps":60,"low_01pct_fps":30,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":260,"low_1pct_fps":60,"low_01pct_fps":30,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":270,"low_1pct_fps":60,"low_01pct_fps":30,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":280,"low_1pct_fps":60,"low_01pct_fps":30,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"b2","day":20396,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 3060","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":7100,"stdev":null,"min":7100,"max":7100,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1300},"memory.rss_steady_mb":{"n":1,"mean":1100},"chunks.village.load_ms":{"n":1,"mean":2400},"chunks.forest.load_ms":{"n":1,"mean":2400},"chunks.ocean.load_ms":{"n":1,"mean":2400},"chunks.mountain.load_ms":{"n":1,"mean":2400}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":260,"low_1pct_fps":70,"low_01pct_fps":35,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":270,"low_1pct_fps":70,"low_01pct_fps":35,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":280,"low_1pct_fps":70,"low_01pct_fps":35,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":290,"low_1pct_fps":70,"low_01pct_fps":35,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"install_id":"b3","day":20396,"version":"v0.2.1","source":"game","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":2,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 3060","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":7100,"stdev":null,"min":7100,"max":7100,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1300},"memory.rss_steady_mb":{"n":1,"mean":1100},"chunks.village.load_ms":{"n":1,"mean":2400},"chunks.forest.load_ms":{"n":1,"mean":2400},"chunks.ocean.load_ms":{"n":1,"mean":2400},"chunks.mountain.load_ms":{"n":1,"mean":2400}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":260,"low_1pct_fps":70,"low_01pct_fps":35,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":270,"low_1pct_fps":70,"low_01pct_fps":35,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":280,"low_1pct_fps":70,"low_01pct_fps":35,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":290,"low_1pct_fps":70,"low_01pct_fps":35,"p50_ms":2,"p95_ms":6,"p99_ms":12,"p999_ms":18,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
{"day":20396,"version":"v0.2.1","kind":"benchmark","data":{"format":"horizon-benchmark-report","version":1,"kind":"game","created":"2026-11-02","app":{"name":"horizon-client","version":"0.2.0"},"hardware":{"os":"linux","os_version":"secret-os-version","arch":"x86_64","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":24,"ram_mb":32768,"gpu":{"name":"NVIDIA GeForce RTX 3060","vendor":"nvidia","driver":"secret-driver","backend":"vulkan","kind":"discrete"},"display":{"width":2560,"height":1440,"scale":1,"refresh_hz":165}},"conditions":{"scenario":"standard","seed":"1234","render_distance":12,"simulation_distance":12,"window":[1280,720],"vsync":false,"repeats":1,"warmup_s":2},"metrics":{"startup.title_ms":{"n":1,"mean":900,"stdev":null,"min":900,"max":900,"ci95":null},"startup.world_ms":{"n":1,"mean":1,"stdev":null,"min":1,"max":1,"ci95":null},"memory.rss_peak_mb":{"n":1,"mean":1},"memory.rss_steady_mb":{"n":1,"mean":1},"chunks.village.load_ms":{"n":1,"mean":1},"chunks.forest.load_ms":{"n":1,"mean":1},"chunks.ocean.load_ms":{"n":1,"mean":1},"chunks.mountain.load_ms":{"n":1,"mean":1}},"frames":[{"phase":"village","repeat":0,"frames":1000,"seconds":12,"avg_fps":1,"low_1pct_fps":1,"low_01pct_fps":0.5,"p50_ms":2,"p95_ms":1,"p99_ms":2,"p999_ms":3,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"forest","repeat":0,"frames":1000,"seconds":12,"avg_fps":11,"low_1pct_fps":1,"low_01pct_fps":0.5,"p50_ms":2,"p95_ms":1,"p99_ms":2,"p999_ms":3,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"ocean","repeat":0,"frames":1000,"seconds":12,"avg_fps":21,"low_1pct_fps":1,"low_01pct_fps":0.5,"p50_ms":2,"p95_ms":1,"p99_ms":2,"p999_ms":3,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"phase":"mountain","repeat":0,"frames":1000,"seconds":12,"avg_fps":31,"low_1pct_fps":1,"low_01pct_fps":0.5,"p50_ms":2,"p95_ms":1,"p99_ms":2,"p999_ms":3,"max_ms":50,"histogram":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]}}
+2 -2
View File
@@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Not found · Horizon</title>
<meta name="robots" content="noindex">
<meta name="theme-color" content="#fafafc" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0d0e13" media="(prefers-color-scheme: dark)">
<meta name="theme-color" content="#ece7f7" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0f0d17" media="(prefers-color-scheme: dark)">
<meta name="color-scheme" content="light dark">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="{{CSS}}">
+134
View File
@@ -0,0 +1,134 @@
// The Benchmarks page's tables, from the summary (public/benchmarks.json, or the telemetry server's
// GET /v1/benchmarks/summary in the same shape). Shared by build.mjs (baked) and benchmarks-page.js (live).
import { escape } from "./markdown.js";
export const METRICS = [
{ key: "avg_fps", label: "Average FPS", kind: "fps", better: "high" },
{ key: "low_1pct_fps", label: "1% low FPS", kind: "fps", better: "high", hint: "the slowest 1% of frames, as FPS" },
{ key: "p95_ms", label: "Frame time, 95th percentile", kind: "ms", better: "low" },
{ key: "world_ms", label: "Start to in-world", kind: "ms", better: "low", hint: "process start to the spawn area loaded and drawn" },
{ key: "chunk_load_ms", label: "Chunk load after a teleport", kind: "ms", better: "low", hint: "the four scenes' average" },
{ key: "rss_steady_mb", label: "Memory while playing", kind: "mb", better: "low" },
{ key: "rss_peak_mb", label: "Memory, peak", kind: "mb", better: "low" },
];
export function format(kind, x) {
if (x == null || !Number.isFinite(x)) return "–";
if (kind === "fps") return x >= 100 ? Math.round(x).toLocaleString("en") : x.toFixed(x >= 10 ? 0 : 1);
if (kind === "ms") return x >= 1000 ? `${(x / 1000).toFixed(x >= 10000 ? 0 : 1)} s` : `${x < 10 ? x.toFixed(1) : Math.round(x)} ms`;
if (kind === "mb") return x >= 1000 ? `${(x / 1024).toFixed(1)} GB` : `${Math.round(x)} MB`;
return String(x);
}
// "2.4x faster", "1.3x slower", "2.0x less" (memory), from Horizon's side.
export function compare(metric, horizon, java) {
if (horizon == null || java == null || !horizon || !java) return null;
const ratio = metric.better === "high" ? horizon / java : java / horizon;
if (Math.abs(ratio - 1) < 0.05) return { text: "about the same", wins: "tie" };
const word = metric.kind === "mb" ? (ratio > 1 ? "less" : "more") : ratio > 1 ? "faster" : "slower";
const r = ratio > 1 ? ratio : 1 / ratio;
return { text: `${r.toFixed(r >= 10 ? 0 : 1)}x ${word}`, wins: ratio > 1 ? "horizon" : "java" };
}
// The game's average frame rate sat at a display cap (`capped_fps`): the real one is at least that.
export const capped = (row) => Boolean(row?.capped_fps && row.medians?.avg_fps >= row.capped_fps * 0.97);
// compare() between two rows, saying "at least" where Horizon's average sat at a cap.
export function compareRows(metric, h, j) {
const c = compare(metric, h?.medians?.[metric.key], j?.medians?.[metric.key]);
if (!c || metric.key !== "avg_fps" || !capped(h)) return c;
return c.wins === "horizon" ? { ...c, text: `at least ${c.text}` } : { text: "capped, can't tell", wins: "none" };
}
export const cell = (metric, row) => {
const v = format(metric.kind, row?.medians?.[metric.key]);
return metric.key === "avg_fps" && capped(row) ? `${v} <span class="capped" title="Held to the display's ${row.capped_fps} Hz: the real figure is at least this">(cap)</span>` : v;
};
const machines = (groups) => {
const by = new Map();
for (const g of groups.filter((g) => g.source === "us")) {
if (!by.has(g.machine)) by.set(g.machine, []);
by.get(g.machine).push(g);
}
return by;
};
const pick = (rows, game, rd) => rows.find((r) => r.game === game && r.render_distance === rd);
// One machine we measured: Horizon and Java side by side at each render distance.
export function machineHtml(name, rows) {
const first = rows[0];
const distances = [...new Set(rows.map((r) => r.render_distance))].sort((a, b) => a - b);
const horizon = rows.find((r) => r.game === "horizon");
const java = rows.find((r) => r.game === "vanilla");
const head = distances.map((rd) => `<th scope="colgroup" colspan="3">Render distance ${rd}</th>`).join("");
const sub = distances.map(() => `<th scope="col">Horizon</th><th scope="col">Java</th><th scope="col"><span class="sr-only">Horizon against Java</span></th>`).join("");
const body = METRICS.map((m) => {
const cells = distances
.map((rd) => {
const h = pick(rows, "horizon", rd);
const j = pick(rows, "vanilla", rd);
const c = compareRows(m, h, j);
return `<td class="num${c?.wins === "horizon" ? " wins" : ""}">${cell(m, h)}</td><td class="num${c?.wins === "java" ? " wins" : ""}">${cell(m, j)}</td><td class="vs vs-${c?.wins || "none"}">${c ? escape(c.text) : ""}</td>`;
})
.join("");
return `<tr><th scope="row">${escape(m.label)}${m.hint ? `<span class="metric-hint">${escape(m.hint)}</span>` : ""}</th>${cells}</tr>`;
}).join("");
const javaWins = METRICS.flatMap((m) =>
distances.filter((rd) => compareRows(m, pick(rows, "horizon", rd), pick(rows, "vanilla", rd))?.wins === "java").map((rd) => `${m.label.toLowerCase()} at ${rd}`),
);
// Per scene too: an average that Horizon wins can hide a scene where Java is faster.
const sceneName = { village: "the village", forest: "the forest", ocean: "the ocean", mountain: "the mountain" };
for (const rd of distances) {
const h = pick(rows, "horizon", rd);
const j = pick(rows, "vanilla", rd);
for (const [scene, js] of Object.entries(j?.scenes || {})) {
const hs = h?.scenes?.[scene];
if (!hs?.avg_fps || !js?.avg_fps || (h.capped_fps && hs.avg_fps >= h.capped_fps * 0.97)) continue;
if (js.avg_fps > hs.avg_fps * 1.05) javaWins.push(`average FPS over ${sceneName[scene] || scene} at ${rd} (${format("fps", js.avg_fps)} against ${format("fps", hs.avg_fps)})`);
}
}
const facts = [
["CPU", first.cpu],
["GPU", first.gpu],
["Horizon", horizon ? `${horizon.version} · ${horizon.backend || "?"}` : "not measured"],
["Java", java ? `${java.version} (vanilla) · ${java.backend || "?"}` : "not measured"],
["Measured", `${first.measured}${first.repeats ? ` · ${first.repeats} runs of each` : ""}${first.window ? ` · ${first.window.join("x")} window` : ""}`],
];
return `<article class="machine" id="machine-${escape(name.toLowerCase().replace(/[^a-z0-9]+/g, "-"))}">
<header class="machine-head">
<p class="eyebrow"><span class="badge badge-us">Measured by us</span></p>
<h3 class="machine-name">${escape(name)}</h3>
<dl class="machine-facts">${facts.map(([k, v]) => `<div><dt>${k}</dt><dd>${escape(String(v))}</dd></div>`).join("")}</dl>
${rows.find((r) => r.note) ? `<p class="machine-note">${escape(rows.find((r) => r.note).note)}</p>` : ""}
</header>
<div class="table-wrap"><table class="bench-table">
<thead><tr><td></td>${head}</tr><tr><td></td>${sub}</tr></thead>
<tbody>${body}</tbody>
</table></div>
${javaWins.length ? `<p class="java-wins"><strong>Where Java is ahead:</strong> ${escape(javaWins.join("; "))}.</p>` : `<p class="java-wins">Horizon is ahead on every figure here.</p>`}
</article>`;
}
export function machinesHtml(summary) {
const by = machines(summary?.groups || []);
if (!by.size) return `<p class="lede">No measurements are published yet.</p>`;
return [...by].map(([name, rows]) => machineHtml(name, rows)).join("\n");
}
// Players' groups: one row each, at least `min_installs` installs.
export function playersHtml(summary) {
const groups = (summary?.groups || []).filter((g) => g.source === "players");
if (!groups.length)
return `<p class="empty">No player results yet. A GPU and CPU pair shows here once at least ${summary?.min_installs || 3} different installs have shared a benchmark with it.</p>`;
const rows = groups
.map(
(g) => `<tr><th scope="row">${escape(g.gpu)}<span class="metric-hint">${escape(g.cpu)}</span></th><td class="num">${g.render_distance}</td><td>${g.game === "vanilla" ? "Java" : "Horizon"}</td>${["avg_fps", "low_1pct_fps", "p95_ms", "world_ms", "rss_steady_mb"].map((k) => `<td class="num">${format(METRICS.find((m) => m.key === k).kind, g.medians?.[k])}</td>`).join("")}<td><span class="badge badge-players">From ${g.installs} players</span></td></tr>`,
)
.join("");
return `<div class="table-wrap"><table class="bench-table players-table">
<thead><tr><th scope="col">GPU and CPU</th><th scope="col">Render distance</th><th scope="col">Game</th><th scope="col">Average FPS</th><th scope="col">1% low</th><th scope="col">p95</th><th scope="col">To in-world</th><th scope="col">Memory</th><th scope="col">Source</th></tr></thead>
<tbody>${rows}</tbody>
</table></div>`;
}
+87
View File
@@ -0,0 +1,87 @@
// The Benchmarks page: players' results from the telemetry server (the baked summary when it doesn't answer)
// and the hardware picker (a measurement when there is one, else an estimate from src/estimate.js).
import { escape } from "./markdown.js";
import { METRICS, cell, compareRows, format, playersHtml } from "./bench.js";
import { estimate, measured } from "./estimate.js";
import { findCpu, findGpu } from "./hardware.js";
import { setUpMenu, setUpTheme } from "./chrome.js";
const TELEMETRY = "https://telemetry.playhorizon.dev";
const baked = JSON.parse(document.getElementById("bench-data").textContent);
let groups = baked.groups || [];
async function live() {
try {
const res = await fetch(`${TELEMETRY}/v1/benchmarks/summary`, { signal: AbortSignal.timeout(3000) });
if (!res.ok) throw new Error(String(res.status));
const summary = await res.json();
if (summary.format !== "horizon-benchmark-summary" || summary.version !== 1 || !Array.isArray(summary.groups)) throw new Error("format");
// Our own rows stay the baked ones; players' come from the server.
const players = summary.groups.filter((g) => g.source === "players" && g.installs >= (summary.min_installs || 3));
groups = [...groups.filter((g) => g.source === "us"), ...players];
document.getElementById("players-table").innerHTML = playersHtml({ ...summary, groups: players });
document.querySelector("[data-players-source]").textContent = `Live from the telemetry server, aggregated ${summary.generated.slice(0, 16).replace("T", " ")} UTC.`;
render();
} catch {
// The baked results stay; the line under the heading already says when they were made.
}
}
const picker = document.getElementById("picker");
const out = document.getElementById("pick-result");
const range = (kind, e) => {
if (!e) return "–";
if (e.atLeast) return `at least ${format(kind, e.low)}`;
return e.low != null ? `${format(kind, e.low)} to ${format(kind, e.high)}` : format(kind, e.value);
};
function sourceBadge(row) {
return row.source === "us" ? `<span class="badge badge-us">Measured by us · ${escape(row.machine)}</span>` : `<span class="badge badge-players">From ${row.installs} players</span>`;
}
function measuredTable(h, j) {
return `<table class="bench-table pick-table"><thead><tr><td></td><th scope="col">Horizon</th><th scope="col">Java</th><th scope="col"><span class="sr-only">Horizon against Java</span></th></tr></thead><tbody>${METRICS.map((m) => {
const c = compareRows(m, h, j);
return `<tr><th scope="row">${escape(m.label)}</th><td class="num${c?.wins === "horizon" ? " wins" : ""}">${cell(m, h)}</td><td class="num${c?.wins === "java" ? " wins" : ""}">${cell(m, j)}</td><td class="vs vs-${c?.wins || "none"}">${c ? escape(c.text) : ""}</td></tr>`;
}).join("")}</tbody></table>`;
}
function estimateTable(h, j) {
return `<table class="bench-table pick-table"><thead><tr><td></td><th scope="col">Horizon (estimate)</th><th scope="col">Java (estimate)</th></tr></thead><tbody>${METRICS.map(
(m) => `<tr><th scope="row">${escape(m.label)}</th><td class="num">${range(m.kind, h?.[m.key])}</td><td class="num">${range(m.kind, j?.[m.key])}</td></tr>`,
).join("")}</tbody></table>`;
}
function render() {
const gpu = findGpu(picker.gpu.value);
const cpu = findCpu(picker.cpu.value);
const rd = Number(picker.rd.value);
if (!gpu || !cpu) return;
const mh = measured(groups, gpu, cpu, rd, "horizon");
const mj = measured(groups, gpu, cpu, rd, "vanilla");
if (mh.length || mj.length) {
const h = mh[0];
const j = mj[0];
out.innerHTML = `<p class="pick-head">${[h, j].filter(Boolean).map(sourceBadge).join(" ")}</p>${measuredTable(h, j)}${
h && h.source === "us" && h.measured ? `<p class="meta">Measured ${escape(h.measured)} with Horizon ${escape(h.version)}. The full table is under <a href="#measured">Measured by us</a>.</p>` : ""
}`;
return;
}
const h = estimate(groups, gpu, cpu, rd, "horizon");
const j = estimate(groups, gpu, cpu, rd, "vanilla");
if (!h && !j) {
out.innerHTML = `<p class="empty">Nothing measured at render distance ${rd} to estimate from yet.</p>`;
return;
}
const base = (h || j).base;
const f = (h || j).factors;
const times = (x) => `${x >= 1 ? x.toFixed(x >= 10 ? 0 : 1) : x.toFixed(2)}x`;
out.innerHTML = `<p class="pick-head"><span class="badge badge-estimate">Estimate</span> From ${escape(base.source === "us" ? base.machine : `${base.gpu} with ${base.cpu}`)} (${escape(base.gpu)}, ${escape(base.cpu)}): GPU factor ${times(f.gpu)}, CPU factor ${times(f.cpu)}. <a href="#method">How</a></p>${estimateTable(h, j)}<p class="meta">Ranges, not measurements: the real figure depends on drivers, the graphics API and cooling too. Memory is the measured machine's.</p>`;
}
setUpTheme();
setUpMenu();
picker.addEventListener("change", render);
render();
live();
+99
View File
@@ -0,0 +1,99 @@
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Benchmarks: Horizon against Java Edition · Horizon</title>
<meta name="description" content="Horizon and vanilla Minecraft: Java Edition 26.3 measured on the same machines, world and camera path: frame rate, 1% lows, frame times, load times and memory. Pick a GPU and a CPU to see what to expect.">
<meta name="theme-color" content="#ece7f7" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0f0d17" media="(prefers-color-scheme: dark)">
<meta name="color-scheme" content="light dark">
<link rel="canonical" href="https://playhorizon.dev/benchmarks">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Horizon">
<meta property="og:title" content="Benchmarks · Horizon">
<meta property="og:description" content="Horizon against vanilla Java Edition 26.3, measured on the same machines.">
<meta property="og:url" content="https://playhorizon.dev/benchmarks">
<meta property="og:image" content="https://playhorizon.dev/og.png">
<style>{{STYLE}}</style>
<script>document.documentElement.classList.replace("no-js", "js"); try { const t = localStorage.getItem("theme"); if (t === "light" || t === "dark") document.documentElement.dataset.theme = t } catch {}</script>
<script type="module" src="{{BENCH_JS}}"></script>
</head>
<body class="subpage">
<a class="skip" href="#main">Skip to the content</a>
{{SITE_NAV}}
<main id="main" class="section page-main">
<div class="container">
<p class="kicker"><span>Benchmarks</span>Horizon against Java Edition 26.3</p>
<h1 class="display page-title">Same machine, same world, same flight.</h1>
<p class="lede">We run Horizon and vanilla Minecraft: Java Edition 26.3 one after the other on the same computer: a fresh world from the same seed, the same settings, and the same four flights over a village, a forest, the ocean and a mountain. Every figure comes from the same code for both games. Where Java does better, the tables say so.</p>
<section class="bench-section" id="measured" aria-labelledby="measured-title">
<h2 class="title" id="measured-title">Measured by us</h2>
<p class="lede">The project's own machines, at render distance 12 (vanilla's default) and 32. VSync off, no frame cap, a 1280x720 window, simulation distance 12, everything else at vanilla's defaults. Each figure is the median over the runs; the frame figures are averaged over the four flights.</p>
<div class="machines">
{{MACHINES}}
</div>
<div class="older-runs prose">
<p><strong>Not yet measured against Java: the desktop (RTX 4080, Core i7-13700KF).</strong> It is in daily use; the comparison runs on it once it is free. The last figures from it are Horizon alone, from an older build (2026-10-13, offscreen, <code>tools/graphics_bench.py</code>): over the village, 2,409 FPS at render distance 8, 1,041 at 16 and 48 at 32, where that build still stuttered while loading. They are not comparable with the tables above; the picker estimates the RTX 4080 from the measured machines instead.</p>
</div>
</section>
<section class="bench-section" id="your-hardware" aria-labelledby="pick-title">
<h2 class="title" id="pick-title">Your hardware</h2>
<p class="lede">Pick a graphics card and a processor. If we or at least three players have measured that pair, you see what was measured; otherwise an estimate from the nearest measured machine, as a range.</p>
<form class="picker" id="picker" aria-describedby="pick-title">
<label><span>Graphics card</span><select name="gpu" id="pick-gpu">{{GPU_OPTIONS}}</select></label>
<label><span>Processor</span><select name="cpu" id="pick-cpu">{{CPU_OPTIONS}}</select></label>
<fieldset class="picker-rd"><legend>Render distance</legend>
<label><input type="radio" name="rd" value="12" checked> 12</label>
<label><input type="radio" name="rd" value="32"> 32</label>
</fieldset>
</form>
<div class="pick-result" id="pick-result" aria-live="polite"><p class="empty">The picker needs JavaScript; the tables above and the method below work without it.</p></div>
</section>
<section class="bench-section" id="players" aria-labelledby="players-title">
<h2 class="title" id="players-title">From players</h2>
<p class="lede">Players who allow benchmark uploads in the launcher's data collection settings share the report of <code>horizon-client --benchmark standard</code>. Results are grouped by graphics card, processor and render distance, and a group shows only once <strong>at least 3 different installs</strong> are in it, so no one can be picked out. Only medians are published: no install ID, date, driver, memory size or screen.</p>
<p class="meta" data-players-source>{{PLAYERS_SOURCE}}</p>
<div id="players-table">
{{PLAYERS}}
</div>
</section>
<section class="bench-section prose-section" id="method" aria-labelledby="method-title">
<h2 class="title" id="method-title">How the estimates work</h2>
<div class="prose">
<p>An estimate starts from the measured machine closest to the one you picked, then scales its figures with a small table of specifications we wrote ourselves (no benchmark database):</p>
<ul>
<li><strong>GPU factor</strong>: the geometric mean of the two graphics cards' ratio of FP32 shader throughput (TFLOPS) and of memory bandwidth (GB/s), as their makers state them.</li>
<li><strong>CPU factor</strong>: the ratio of the two processors' single-thread scores: top boost clock times a rough factor per chip generation (Zen 4 = 1).</li>
<li><strong>Frame rate</strong>: when the measured run split each frame into CPU and GPU time, the slower side is scaled by its factor; otherwise by the geometric mean of both. Whatever the split, the real figure lies between the measured one scaled by the smaller and by the larger factor; we widen that by 15% for the roughness of the table, and show it as the range.</li>
<li><strong>Load times</strong> are CPU work (generating, lighting and meshing chunks), scaled by the CPU factor. <strong>Memory</strong> is not scaled: it follows the world and the settings, not the speed.</li>
</ul>
<p>Estimates ignore drivers, the graphics API, thermal limits and the operating system, which can matter as much as the chip. Treat them as a rough idea, and run <code>horizon-client --benchmark standard</code> on your own machine for the real figure.</p>
</div>
<details class="spec-table">
<summary>The specification table</summary>
<div class="table-wrap">{{SPEC_TABLE}}</div>
</details>
</section>
<section class="bench-section prose-section" id="how" aria-labelledby="how-title">
<h2 class="title" id="how-title">How we measure</h2>
<div class="prose">
<p><code>tools/perf_bench.py</code> starts each game from a fresh world (seed 1234, creative), waits until every chunk around the spawn is loaded and drawn, then for each scene teleports, waits for the chunks, holds for 2 seconds and flies a straight 192-block path in 12 seconds. Every frame is recorded. Vanilla runs as players get it (your own client, the official launcher's Java options, Java 25), driven by a small development-only mod that only calls the game's own code; nothing of Minecraft is shipped. The full method and its caveats are in <a href="https://github.com/ludovic111/horizon/blob/main/docs/benchmark.md">docs/benchmark.md</a>, and every raw report is in the repository.</p>
<p>Measure your own computer with <code>horizon-client --benchmark standard --render-distance 12</code>: it writes a report to the <code>benchmarks</code> folder of the game folder.</p>
</div>
</section>
<p class="disclaimer">Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.</p>
</div>
</main>
{{SITE_FOOTER}}
<script type="application/json" id="bench-data">{{BENCH_DATA}}</script>
</body>
</html>
+90
View File
@@ -0,0 +1,90 @@
// What every page with the site's top bar shares: the light and dark switch and the phone menu.
// Used by main.js (the home page) and page.js (Releases, Benchmarks).
const reducedMotion = matchMedia("(prefers-reduced-motion: reduce)").matches;
// The page follows the system; the toggle picks the other appearance and remembers it.
export function setUpTheme() {
const root = document.documentElement;
const button = document.querySelector(".theme-toggle");
if (!button) return;
const label = button.querySelector("[data-theme-label]");
const system = matchMedia("(prefers-color-scheme: dark)");
const dark = () => (root.dataset.theme ? root.dataset.theme === "dark" : system.matches);
const show = () => (label.textContent = dark() ? "Light" : "Dark");
button.addEventListener("click", () => {
root.dataset.theme = dark() ? "light" : "dark";
try {
localStorage.setItem("theme", root.dataset.theme);
} catch {}
show();
});
system.addEventListener("change", show);
show();
}
// The phone menu: a full-screen sheet; the page behind it is inert while it is open.
export function setUpMenu() {
const bar = document.querySelector(".nav");
const button = document.querySelector(".menu-button");
const menu = document.getElementById("menu");
const main = document.getElementById("main");
if (!bar || !button || !menu) return;
const label = button.querySelector(".menu-label");
const items = [...menu.querySelectorAll("nav a")];
items.forEach((a, i) => a.style.setProperty("transition-delay", `${60 + i * 35}ms`));
let closing;
const setOpen = (open) => {
clearTimeout(closing);
button.setAttribute("aria-expanded", String(open));
label.textContent = open ? "Close" : "Menu";
bar.classList.toggle("is-menu", open);
main.inert = open;
document.body.style.overflow = open ? "hidden" : "";
if (open) {
menu.hidden = false;
requestAnimationFrame(() => requestAnimationFrame(() => menu.classList.add("is-open")));
items[0].focus({ preventScroll: true });
} else {
menu.classList.remove("is-open");
closing = setTimeout(() => (menu.hidden = true), reducedMotion ? 0 : 320);
}
};
button.addEventListener("click", () => setOpen(button.getAttribute("aria-expanded") !== "true"));
items.forEach((a) => a.addEventListener("click", () => setOpen(false)));
addEventListener("keydown", (e) => {
if (e.key === "Escape" && button.getAttribute("aria-expanded") === "true") {
setOpen(false);
button.focus();
}
});
matchMedia("(min-width: 1120px)").addEventListener("change", (e) => e.matches && setOpen(false));
}
// GitHub answers, cached for ten minutes in the tab.
export async function cached(key, load) {
try {
const hit = JSON.parse(sessionStorage.getItem(key) || "null");
if (hit && Date.now() - hit.at < 10 * 60 * 1000) return hit.value;
} catch {}
const value = await load();
try {
sessionStorage.setItem(key, JSON.stringify({ at: Date.now(), value }));
} catch {}
return value;
}
export async function get(url, as = "json") {
const res = await fetch(url, { headers: as === "json" ? { Accept: "application/vnd.github+json" } : {} });
if (!res.ok) throw new Error(`${res.status}`);
return as === "json" ? res.json() : res.text();
}
export const slim = (r) => ({
tag_name: r.tag_name,
name: r.name,
published_at: r.published_at,
html_url: r.html_url,
prerelease: r.prerelease,
body: r.body || "",
assets: (r.assets || []).map((a) => ({ name: a.name, browser_download_url: a.browser_download_url, size: a.size })),
});
+2 -2
View File
@@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{DOC_TITLE}} · Horizon docs</title>
<meta name="description" content="{{DOC_DESC}}">
<meta name="theme-color" content="#fafafc" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0d0e13" media="(prefers-color-scheme: dark)">
<meta name="theme-color" content="#ece7f7" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0f0d17" media="(prefers-color-scheme: dark)">
<meta name="color-scheme" content="light dark">
<link rel="canonical" href="https://playhorizon.dev{{DOC_PATH}}">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
+77
View File
@@ -0,0 +1,77 @@
// Estimates for hardware nobody has measured yet, from the nearest measured machine and the spec table
// (src/hardware.js). The method, which the Benchmarks page explains:
//
// - GPU factor: the geometric mean of the two GPUs' FP32 throughput ratio and memory bandwidth ratio.
// - CPU factor: the ratio of the two CPUs' single-thread scores (boost clock x generation factor).
// - Frames: when the measured run split each frame into CPU and GPU time, the slower of the two is scaled by its
// own factor; otherwise the frame rate is scaled by the geometric mean of both factors. Whatever the split, the
// true figure lies between the measured one scaled by the smaller and by the larger factor, widened by 15% for
// the roughness of the table: that is the range shown.
// - World and chunk load times are CPU work (generation, lighting, meshing): scaled by the CPU factor.
// - Memory is not scaled: it depends on the world and settings, not on speed.
import { findCpu, findGpu, singleThread } from "./hardware.js";
const MARGIN = 0.15;
export function factors(fromGpu, fromCpu, toGpu, toCpu) {
const gpu = Math.sqrt((toGpu.tflops / fromGpu.tflops) * (toGpu.gbps / fromGpu.gbps));
const cpu = singleThread(toCpu) / singleThread(fromCpu);
return { gpu, cpu };
}
const distance = (f) => Math.abs(Math.log(f.gpu)) + Math.abs(Math.log(f.cpu));
// The rows (benchmarks.json groups) usable as a base: a known GPU and CPU.
function known(rows) {
return rows.map((row) => ({ row, gpu: findGpu(row.gpu), cpu: findCpu(row.cpu) })).filter((r) => r.gpu && r.cpu);
}
// The measured row for exactly this GPU and CPU, players' first when there are some (more installs), or null.
export function measured(rows, gpu, cpu, rd, game) {
const hits = known(rows).filter((r) => r.gpu === gpu && r.cpu === cpu && r.row.render_distance === rd && r.row.game === game);
hits.sort((a, b) => (b.row.installs || 0) - (a.row.installs || 0));
return hits.map((r) => r.row);
}
// The nearest measured machine for a target GPU and CPU, for one game and render distance.
export function nearest(rows, gpu, cpu, rd, game) {
let best = null;
for (const r of known(rows)) {
if (r.row.render_distance !== rd || r.row.game !== game) continue;
const f = factors(r.gpu, r.cpu, gpu, cpu);
const d = distance(f);
if (!best || d < best.d) best = { ...r, f, d };
}
return best;
}
export function estimate(rows, gpu, cpu, rd, game) {
const base = nearest(rows, gpu, cpu, rd, game);
if (!base) return null;
const m = base.row.medians;
const { gpu: g, cpu: c } = base.f;
const lo = Math.min(g, c) * (1 - MARGIN);
const hi = Math.max(g, c) * (1 + MARGIN);
let scale = Math.sqrt(g * c);
if (m.cpu_p50_ms && m.gpu_p50_ms) {
const worst = Math.max(m.cpu_p50_ms, m.gpu_p50_ms);
scale = worst / Math.max(m.cpu_p50_ms / c, m.gpu_p50_ms / g);
}
scale = Math.min(hi, Math.max(lo, scale));
const fps = (x) => (x == null ? null : { value: x * scale, low: x * lo, high: x * hi });
// A base held to its display's refresh rate gives only a floor for the average.
const avg = fps(m.avg_fps);
if (avg && base.row.capped_fps && m.avg_fps >= base.row.capped_fps * 0.97) Object.assign(avg, { value: null, high: null, atLeast: true });
const time = (x, f) => (x == null ? null : { value: x / f, low: x / (f * (1 + MARGIN)), high: x / (f * (1 - MARGIN)) });
return {
base: base.row,
factors: base.f,
avg_fps: avg,
low_1pct_fps: fps(m.low_1pct_fps),
p95_ms: m.p95_ms == null ? null : { value: m.p95_ms / scale, low: m.p95_ms / hi, high: m.p95_ms / lo },
world_ms: time(m.world_ms, c),
chunk_load_ms: time(m.chunk_load_ms, c),
rss_steady_mb: m.rss_steady_mb == null ? null : { value: m.rss_steady_mb },
rss_peak_mb: m.rss_peak_mb == null ? null : { value: m.rss_peak_mb },
};
}
+64
View File
@@ -0,0 +1,64 @@
// node --test website/src/ (npm test in website/)
import { test } from "node:test";
import assert from "node:assert/strict";
import { estimate, factors, measured, nearest } from "./estimate.js";
import { CPUS, GPUS, findCpu, findGpu } from "./hardware.js";
const row = (gpu, cpu, medians, extra = {}) => ({ gpu, cpu, render_distance: 12, game: "horizon", source: "us", medians, ...extra });
const mac = row("Apple M4 Pro", "Apple M4 Pro", { avg_fps: 500, low_1pct_fps: 100, p95_ms: 3, world_ms: 4000, chunk_load_ms: 1000, rss_peak_mb: 1500, rss_steady_mb: 1200 });
const laptop = row("Mesa Intel HD Graphics 620 (KBL GT2)", "Intel Core i7-7500U CPU @ 2.70GHz", { avg_fps: 100, low_1pct_fps: 20, p95_ms: 15, world_ms: 12000, chunk_load_ms: 5000, rss_peak_mb: 1400, rss_steady_mb: 1100, cpu_p50_ms: 4, gpu_p50_ms: 9 });
test("every reported name of our machines is in the table", () => {
assert.equal(findGpu("Apple M4 Pro").name, "Apple M4 Pro (20-core GPU)");
assert.equal(findGpu("Mesa Intel HD Graphics 620 (KBL GT2)").name, "Intel HD Graphics 620");
assert.equal(findGpu("NVIDIA GeForce RTX 4080").name, "NVIDIA GeForce RTX 4080");
assert.equal(findGpu("NVIDIA GeForce RTX 4080 SUPER"), null);
assert.equal(findCpu("13th Gen Intel Core i7-13700KF").name, "Intel Core i7-13700K / KF");
assert.equal(findCpu("Intel Core i7-7500U CPU @ 2.70GHz").name, "Intel Core i7-7500U");
for (const g of GPUS) assert.equal(findGpu(g.name), g, g.name);
for (const c of CPUS) assert.equal(findCpu(c.name), c, c.name);
});
test("an exact match is a measurement, not an estimate", () => {
assert.deepEqual(measured([mac, laptop], findGpu("Apple M4 Pro"), findCpu("Apple M4 Pro"), 12, "horizon"), [mac]);
assert.deepEqual(measured([mac], findGpu("Apple M4 Pro"), findCpu("Apple M4 Pro"), 32, "horizon"), []);
});
test("the nearest machine is the base, and the range holds the estimate", () => {
const gpu = findGpu("Intel Iris Xe Graphics (96 EU)");
const cpu = findCpu("Intel Core i5-1135G7");
assert.equal(nearest([mac, laptop], gpu, cpu, 12, "horizon").row, laptop);
const e = estimate([mac, laptop], gpu, cpu, 12, "horizon");
const f = factors(findGpu(laptop.gpu), findCpu(laptop.cpu), gpu, cpu);
assert.ok(f.gpu > 1 && f.cpu > 1);
for (const key of ["avg_fps", "low_1pct_fps", "p95_ms", "world_ms", "chunk_load_ms"]) {
const { value, low, high } = e[key];
assert.ok(low <= value && value <= high, key);
}
// GPU-bound frames (9 ms GPU, 4 ms CPU) follow the GPU factor.
assert.ok(Math.abs(e.avg_fps.value - 100 * Math.min(f.gpu, 9 / (4 / f.cpu))) < 1e-9);
assert.ok(Math.abs(e.world_ms.value - 12000 / f.cpu) < 1e-9);
assert.equal(e.rss_steady_mb.value, 1100);
});
test("no base, no estimate", () => {
assert.equal(estimate([mac], findGpu("Apple M4"), findCpu("Apple M4"), 32, "horizon"), null);
assert.equal(estimate([mac], findGpu("Apple M4"), findCpu("Apple M4"), 12, "vanilla"), null);
});
test("a base held to its display's refresh rate gives only a floor for the average", () => {
const held = { ...mac, capped_fps: 144, medians: { ...mac.medians, avg_fps: 144 } };
const e = estimate([held], findGpu("NVIDIA GeForce RTX 4060"), findCpu("AMD Ryzen 5 5600X"), 12, "horizon");
assert.equal(e.avg_fps.atLeast, true);
assert.equal(e.avg_fps.high, null);
assert.ok(e.avg_fps.low > 0);
// The lows sit under the cap: still a range.
assert.ok(e.low_1pct_fps.high > e.low_1pct_fps.low);
});
test("a release title of issue numbers falls back to its notes", async () => {
const { parts } = await import("./releases.js");
const r = { tag_name: "v2026.10.22.07", name: "Horizon 2026.10.22.07: #1255, mob pushes, fix, #1222", body: "### Fixed\n- Fix #1222: single player runs in the frame again (#1257, fixes #1222)\n- Mob pushes: one list per mob (#1205)\n" };
assert.equal(parts(r).line, "Single player runs in the frame again and 1 more");
assert.equal(parts({ ...r, name: "Horizon 2026.10.22.05: Hoppers, mob tick, server tick" }).line, "Hoppers, mob tick, server tick");
});
+73
View File
@@ -0,0 +1,73 @@
// The hardware the Benchmarks page can estimate for, from specifications only (our own table, no benchmark
// database): each GPU's FP32 shader throughput in TFLOPS and its memory bandwidth in GB/s as its maker states them,
// and each CPU's single-thread score = its top boost clock (GHz) x our rough per-generation factor (instructions per
// clock, Zen 4 = 1). The factors are round numbers, so estimates are ranges, and the page says so.
// `match` finds a reported name (the GPU and CPU strings in benchmark reports) in this table.
export const GPUS = [
{ name: "NVIDIA GeForce RTX 4090", tflops: 82.6, gbps: 1008, match: /RTX 4090/i },
{ name: "NVIDIA GeForce RTX 4080", tflops: 48.7, gbps: 717, match: /RTX 4080(?! SUPER)/i },
{ name: "NVIDIA GeForce RTX 4070 Ti", tflops: 40.1, gbps: 504, match: /RTX 4070 Ti/i },
{ name: "NVIDIA GeForce RTX 4070", tflops: 29.1, gbps: 504, match: /RTX 4070(?! Ti)/i },
{ name: "NVIDIA GeForce RTX 4060 Ti", tflops: 22.1, gbps: 288, match: /RTX 4060 Ti/i },
{ name: "NVIDIA GeForce RTX 4060", tflops: 15.1, gbps: 272, match: /RTX 4060(?! Ti)/i },
{ name: "NVIDIA GeForce RTX 3080", tflops: 29.8, gbps: 760, match: /RTX 3080(?! Ti)/i },
{ name: "NVIDIA GeForce RTX 3070", tflops: 20.3, gbps: 448, match: /RTX 3070(?! Ti)/i },
{ name: "NVIDIA GeForce RTX 3060", tflops: 12.7, gbps: 360, match: /RTX 3060(?! Ti)/i },
{ name: "NVIDIA GeForce RTX 3050", tflops: 9.1, gbps: 224, match: /RTX 3050/i },
{ name: "NVIDIA GeForce RTX 2060", tflops: 6.5, gbps: 336, match: /RTX 2060(?! SUPER)/i },
{ name: "NVIDIA GeForce GTX 1660 SUPER", tflops: 5.0, gbps: 336, match: /GTX 1660 SUPER/i },
{ name: "NVIDIA GeForce GTX 1060 6GB", tflops: 4.4, gbps: 192, match: /GTX 1060/i },
{ name: "NVIDIA GeForce GTX 1050 Ti", tflops: 2.1, gbps: 112, match: /GTX 1050 Ti/i },
{ name: "AMD Radeon RX 7900 XTX", tflops: 61.4, gbps: 960, match: /RX 7900 XTX/i },
{ name: "AMD Radeon RX 7800 XT", tflops: 37.3, gbps: 624, match: /RX 7800 XT/i },
{ name: "AMD Radeon RX 7600", tflops: 21.8, gbps: 288, match: /RX 7600(?! XT)/i },
{ name: "AMD Radeon RX 6700 XT", tflops: 13.2, gbps: 384, match: /RX 6700 XT/i },
{ name: "AMD Radeon RX 6600", tflops: 8.9, gbps: 224, match: /RX 6600(?! XT)/i },
{ name: "AMD Radeon RX 580", tflops: 6.2, gbps: 256, match: /RX 580/i },
{ name: "AMD Radeon 780M (integrated)", tflops: 8.6, gbps: 89, match: /780M/i },
{ name: "Steam Deck (AMD Van Gogh)", tflops: 1.6, gbps: 88, match: /VanGogh|Van Gogh|Custom GPU 0405/i },
{ name: "Intel Arc A770", tflops: 19.7, gbps: 560, match: /Arc.*A770/i },
{ name: "Intel Iris Xe Graphics (96 EU)", tflops: 2.1, gbps: 68, match: /Iris\(?R?\)? Xe/i },
{ name: "Intel HD Graphics 620", tflops: 0.4, gbps: 34, match: /\bU?HD Graphics 620\b/i },
{ name: "Apple M1", tflops: 2.6, gbps: 68, match: /^Apple M1$/i },
{ name: "Apple M2", tflops: 3.6, gbps: 100, match: /^Apple M2$/i },
{ name: "Apple M3", tflops: 4.1, gbps: 100, match: /^Apple M3$/i },
{ name: "Apple M4", tflops: 4.3, gbps: 120, match: /^Apple M4$/i },
{ name: "Apple M1 Pro (16-core GPU)", tflops: 5.2, gbps: 200, match: /^Apple M1 Pro$/i },
{ name: "Apple M4 Pro (20-core GPU)", tflops: 8.5, gbps: 273, match: /^Apple M4 Pro$/i },
{ name: "Apple M4 Max (40-core GPU)", tflops: 17.0, gbps: 546, match: /^Apple M4 Max$/i },
];
// ghz: top single-core boost clock; ipc: our per-generation factor (Zen 4 = 1).
export const CPUS = [
{ name: "Intel Core i7-7500U", ghz: 3.5, ipc: 0.62, match: /i7-7500U/i },
{ name: "Intel Core i5-7200U", ghz: 3.1, ipc: 0.62, match: /i5-7200U/i },
{ name: "Intel Core i5-8250U", ghz: 3.4, ipc: 0.62, match: /i5-8250U/i },
{ name: "Intel Core i5-9400F", ghz: 4.1, ipc: 0.62, match: /i5-9400/i },
{ name: "Intel Core i7-9700K", ghz: 4.9, ipc: 0.62, match: /i7-9700K/i },
{ name: "Intel Core i5-10400", ghz: 4.3, ipc: 0.62, match: /i5-10400/i },
{ name: "Intel Core i5-1135G7", ghz: 4.2, ipc: 0.78, match: /i5-1135G7/i },
{ name: "Intel Core i5-12400", ghz: 4.4, ipc: 0.95, match: /i5-12400/i },
{ name: "Intel Core i5-13600K", ghz: 5.1, ipc: 0.95, match: /i5-13600K/i },
{ name: "Intel Core i7-13700K / KF", ghz: 5.4, ipc: 0.95, match: /i7-13700K/i },
{ name: "Intel Core i9-14900K", ghz: 6.0, ipc: 0.95, match: /i9-14900K/i },
{ name: "AMD Ryzen 5 3600", ghz: 4.2, ipc: 0.72, match: /Ryzen 5 3600/i },
{ name: "AMD Ryzen 5 5600X", ghz: 4.6, ipc: 0.88, match: /Ryzen 5 5600X?\b/i },
{ name: "AMD Ryzen 7 5800X3D", ghz: 4.5, ipc: 0.88, match: /5800X3D/i },
{ name: "AMD Ryzen 5 7600X", ghz: 5.3, ipc: 1.0, match: /Ryzen 5 7600/i },
{ name: "AMD Ryzen 7 7800X3D", ghz: 5.0, ipc: 1.0, match: /7800X3D/i },
{ name: "AMD Ryzen 9 7950X", ghz: 5.7, ipc: 1.0, match: /Ryzen 9 7950X(?!3D)/i },
{ name: "AMD Ryzen 7 9700X", ghz: 5.5, ipc: 1.12, match: /Ryzen 7 9700X/i },
{ name: "AMD Ryzen 7 7840U / HS", ghz: 5.1, ipc: 1.0, match: /7840(U|HS)/i },
{ name: "Steam Deck (AMD Zen 2, 4 cores)", ghz: 3.5, ipc: 0.72, match: /AMD Custom APU 0405|Van ?Gogh/i },
{ name: "Apple M1", ghz: 3.2, ipc: 1.25, match: /^Apple M1$/i },
{ name: "Apple M2", ghz: 3.5, ipc: 1.28, match: /^Apple M2$/i },
{ name: "Apple M3", ghz: 4.05, ipc: 1.38, match: /^Apple M3$/i },
{ name: "Apple M4", ghz: 4.4, ipc: 1.5, match: /^Apple M4$/i },
{ name: "Apple M4 Pro", ghz: 4.5, ipc: 1.5, match: /^Apple M4 Pro$/i },
];
export const singleThread = (cpu) => cpu.ghz * cpu.ipc;
export const findGpu = (name) => GPUS.find((g) => g.name === name || g.match.test(name || "")) || null;
export const findCpu = (name) => CPUS.find((c) => c.name === name || c.match.test(name || "")) || null;
+22 -14
View File
@@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Horizon: a Rust rewrite for Minecraft: Java Edition 26.3</title>
<meta name="description" content="Horizon is an unofficial Rust rewrite of the Minecraft: Java Edition 26.3 client and game logic, checked against vanilla by {{HARNESSES}} differential harnesses. Not an official Minecraft product.">
<meta name="theme-color" content="#fafafc" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0d0e13" media="(prefers-color-scheme: dark)">
<meta name="theme-color" content="#ece7f7" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0f0d17" media="(prefers-color-scheme: dark)">
<meta name="color-scheme" content="light dark">
<link rel="canonical" href="https://playhorizon.dev/">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
@@ -27,6 +27,7 @@
<link rel="preconnect" href="https://raw.githubusercontent.com" crossorigin>
<link rel="preload" href="/fonts/Geist-Medium.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/Geist-Regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/PixelifySans-Bold.woff2" as="font" type="font/woff2" crossorigin>
<style>{{STYLE}}</style>
<script>document.documentElement.classList.replace("no-js", "js"); try { const t = localStorage.getItem("theme"); if (t === "light" || t === "dark") document.documentElement.dataset.theme = t } catch {}</script>
<script type="module" src="{{JS}}"></script>
@@ -42,9 +43,10 @@
<a href="#screenshots">In game</a>
<a href="#parity">Parity</a>
<a href="#launcher">Launcher</a>
<a href="#patch-notes">Notes</a>
<a href="#recent">New</a>
<a href="#community">Community</a>
<a href="#contributors" data-contributors{{CONTRIBUTORS_HIDDEN}}>Contributors</a>
<a href="/releases">Releases</a>
<a href="/benchmarks">Benchmarks</a>
<a href="/docs/">Docs</a>
</nav>
<div class="nav-end">
@@ -62,9 +64,11 @@
<a href="#screenshots">In game</a>
<a href="#parity">Parity</a>
<a href="#launcher">Launcher</a>
<a href="#patch-notes">Patch notes</a>
<a href="#recent">Recently added</a>
<a href="#community">Community</a>
<a href="#contributors" data-contributors{{CONTRIBUTORS_HIDDEN}}>Contributors</a>
<a href="/releases">Releases</a>
<a href="/benchmarks">Benchmarks</a>
<a href="/docs/">Documentation</a>
</nav>
<div class="menu-foot">
@@ -84,15 +88,18 @@
<a class="button secondary large" href="https://github.com/ludovic111/horizon">View on GitHub</a>
</div>
<p class="download-meta reveal" data-download-meta>For Linux x86-64, macOS on Apple Silicon and Windows x64.</p>
</div>
</section>
<div class="container hero-after">
<ol class="index hero-index" aria-label="At a glance">
<li class="row reveal"><a href="#parity"><span class="row-index">01</span><span class="row-name">Matches vanilla</span><span class="row-meta">{{PERCENT}}</span></a></li>
<li class="row reveal"><a href="#parity"><span class="row-index">02</span><span class="row-name">Differential harnesses</span><span class="row-meta">{{HARNESSES}}</span></a></li>
<li class="row reveal"><a href="#screenshots"><span class="row-index">03</span><span class="row-name">Drawn by Horizon</span><span class="row-meta">5 shots</span></a></li>
<li class="row reveal"><a href="#patch-notes"><span class="row-index">04</span><span class="row-name">What changed</span><span class="row-meta">Notes</span></a></li>
<li class="row reveal"><a href="#recent"><span class="row-index">04</span><span class="row-name">Recently added</span><span class="row-meta">Releases</span></a></li>
<li class="row reveal" data-live hidden><a href="/privacy"><span class="row-index">05</span><span class="row-name">Playing now</span><span class="row-meta" data-live-count></span></a></li>
</ol>
<p class="disclaimer reveal">Unofficial. Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.</p>
</div>
</section>
</div>
<section id="about" class="section about" aria-labelledby="about-title">
<div class="container">
@@ -190,14 +197,15 @@
</div>
</section>
<section id="patch-notes" class="section notes" aria-labelledby="notes-title">
<section id="recent" class="section notes" aria-labelledby="recent-title">
<div class="container">
<div class="section-head">
<p class="kicker reveal"><span>05</span>Patch notes</p>
<h2 id="notes-title" class="title reveal">What changed</h2>
<p class="kicker reveal"><span>05</span>Releases</p>
<h2 id="recent-title" class="title reveal">Recently added</h2>
<p class="lede reveal">Alpha builds come out many times a day, as changes land; about once a day the tested ones become Stable, the launcher's default. The newest, and what they added:</p>
</div>
<div class="releases reveal" id="releases" aria-live="polite">
{{NOTES}}
<div class="recent reveal" id="recent-releases" aria-live="polite">
{{RECENT}}
</div>
</div>
</section>
@@ -230,7 +238,7 @@
</div>
<div class="footer-bar">
<span class="footer-mark">Made in the open, in Rust.</span>
<nav class="footer-links" aria-label="Elsewhere"><a href="https://github.com/ludovic111/horizon">GitHub</a><a href="https://github.com/ludovic111/horizon/releases">Releases</a><a href="https://github.com/ludovic111/horizon/blob/main/LICENSE">Licence</a><a href="/docs/">Docs</a><a href="/docs/hosting">Host a server</a><a href="/LEGAL.md">Assets</a><a href="/privacy">Privacy</a></nav>
<nav class="footer-links" aria-label="Elsewhere"><a href="https://github.com/ludovic111/horizon">GitHub</a><a href="/releases">Releases</a><a href="/benchmarks">Benchmarks</a><a href="https://github.com/ludovic111/horizon/blob/main/LICENSE">Licence</a><a href="/docs/">Docs</a><a href="/docs/hosting">Host a server</a><a href="/LEGAL.md">Assets</a><a href="/privacy">Privacy</a></nav>
</div>
</div>
<p class="footer-word" aria-hidden="true">horizon</p>
+40 -89
View File
@@ -1,10 +1,12 @@
// The page's behaviour: the download buttons for this platform, the latest releases, the
// links and contributors, the navigation, the menus' tabs, the lightbox and the motion.
// links and contributors, how many play now, the navigation, the menus' tabs, the lightbox
// and the motion.
// Everything degrades to the baked-in content when GitHub can't be reached.
import { escape } from "./markdown.js";
import { releasesHtml } from "./releases.js";
import { recentHtml } from "./releases.js";
import { contributorsFrom, contributorsHtml } from "./contributors.js";
import { isGame, isLauncher as isLauncherTag, launcherVersion, newestFirst } from "./versions.js";
import { cached, get, setUpMenu, setUpTheme, slim } from "./chrome.js";
const REPO = "ludovic111/horizon";
const RELEASES_PAGE = `https://github.com/${REPO}/releases?q=launcher&expanded=true`;
@@ -13,33 +15,6 @@ const reducedMotion = matchMedia("(prefers-reduced-motion: reduce)").matches;
// --- GitHub --------------------------------------------------------------------------
async function cached(key, load) {
try {
const hit = JSON.parse(sessionStorage.getItem(key) || "null");
if (hit && Date.now() - hit.at < 10 * 60 * 1000) return hit.value;
} catch {}
const value = await load();
try {
sessionStorage.setItem(key, JSON.stringify({ at: Date.now(), value }));
} catch {}
return value;
}
async function get(url, as = "json") {
const res = await fetch(url, { headers: as === "json" ? { Accept: "application/vnd.github+json" } : {} });
if (!res.ok) throw new Error(`${res.status}`);
return as === "json" ? res.json() : res.text();
}
const slim = (r) => ({
tag_name: r.tag_name,
name: r.name,
published_at: r.published_at,
html_url: r.html_url,
prerelease: r.prerelease,
body: r.body || "",
assets: r.assets.map((a) => ({ name: a.name, browser_download_url: a.browser_download_url, size: a.size })),
});
const isLauncher = (r) => isLauncherTag(r.tag_name) && !r.prerelease;
// The newest 100 releases (GitHub's most per page). Game betas come out several times a day, so the stable game
@@ -106,11 +81,12 @@ async function setUpDownload() {
document.querySelectorAll("[data-download-meta]").forEach((p) => (p.innerHTML = meta));
}
// --- Patch notes and the links from main ---------------------------------
// --- Recently added and the links from main ---------------------------------
async function setUpNotes() {
const list = (await releases).filter((r) => isGame(r.tag_name) && !r.prerelease).sort((a, b) => newestFirst(a.tag_name, b.tag_name));
if (list.length) document.getElementById("releases").innerHTML = releasesHtml(list.slice(0, 3));
// "Recently added": the newest game releases, Alpha and Stable.
async function setUpRecent() {
const html = recentHtml((await releases).filter((r) => isGame(r.tag_name)));
if (html) document.getElementById("recent-releases").innerHTML = html;
}
async function setUpLinks() {
@@ -128,6 +104,34 @@ async function setUpLinks() {
});
}
// --- Playing now ---------------------------------------------------------------------
const TELEMETRY = "https://telemetry.playhorizon.dev";
// How many play right now, from the games' anonymous "I'm playing" pings (Privacy explains them). The
// server rounds it and makes it again at most every 15 seconds; the row stays hidden while nobody plays
// or the server doesn't answer.
async function setUpLive() {
const row = document.querySelector("[data-live]");
if (!row) return;
const update = async () => {
try {
const res = await fetch(`${TELEMETRY}/v1/live`, { signal: AbortSignal.timeout(3000) });
if (!res.ok) throw new Error(String(res.status));
const { playing } = await res.json();
if (!Number.isInteger(playing) || playing < 1) throw new Error("nobody");
row.querySelector("[data-live-count]").textContent = playing.toLocaleString("en");
row.hidden = false;
// It shows up after the others came in, so it skips their entrance.
row.classList.add("is-visible");
} catch {
row.hidden = true;
}
};
await update();
setInterval(() => document.visibilityState === "visible" && update(), 60_000);
}
// --- Navigation ----------------------------------------------------------------------
function setUpNav() {
@@ -151,40 +155,6 @@ function setUpNav() {
};
onScroll(update);
update();
// The phone menu: a full-screen sheet; the page behind it is inert while it is open.
const button = document.querySelector(".menu-button");
const menu = document.getElementById("menu");
const main = document.getElementById("main");
const label = button.querySelector(".menu-label");
const items = [...menu.querySelectorAll("nav a")];
items.forEach((a, i) => a.style.setProperty("transition-delay", `${60 + i * 35}ms`));
let closing;
const setOpen = (open) => {
clearTimeout(closing);
button.setAttribute("aria-expanded", String(open));
label.textContent = open ? "Close" : "Menu";
bar.classList.toggle("is-menu", open);
main.inert = open;
document.body.style.overflow = open ? "hidden" : "";
if (open) {
menu.hidden = false;
requestAnimationFrame(() => requestAnimationFrame(() => menu.classList.add("is-open")));
items[0].focus({ preventScroll: true });
} else {
menu.classList.remove("is-open");
closing = setTimeout(() => (menu.hidden = true), reducedMotion ? 0 : 320);
}
};
button.addEventListener("click", () => setOpen(button.getAttribute("aria-expanded") !== "true"));
items.forEach((a) => a.addEventListener("click", () => setOpen(false)));
addEventListener("keydown", (e) => {
if (e.key === "Escape" && button.getAttribute("aria-expanded") === "true") {
setOpen(false);
button.focus();
}
});
matchMedia("(min-width: 1120px)").addEventListener("change", (e) => e.matches && setOpen(false));
}
// One rAF-throttled scroll listener for everything that follows the scroll.
@@ -254,27 +224,6 @@ function setUpLightbox() {
});
}
// --- Light and dark ------------------------------------------------------------------
// The page follows the system; the toggle picks the other appearance and remembers it.
function setUpTheme() {
const root = document.documentElement;
const button = document.querySelector(".theme-toggle");
const label = button.querySelector("[data-theme-label]");
const system = matchMedia("(prefers-color-scheme: dark)");
const dark = () => (root.dataset.theme ? root.dataset.theme === "dark" : system.matches);
const show = () => (label.textContent = dark() ? "Light" : "Dark");
button.addEventListener("click", () => {
root.dataset.theme = dark() ? "light" : "dark";
try {
localStorage.setItem("theme", root.dataset.theme);
} catch {}
show();
});
system.addEventListener("change", show);
show();
}
// --- Motion ---------------------------------------------------------------------------
function setUpReveal() {
@@ -308,9 +257,11 @@ function setUpReveal() {
setUpReveal();
setUpTheme();
setUpNav();
setUpMenu();
setUpTabs();
setUpLightbox();
setUpDownload();
setUpNotes();
setUpRecent();
setUpLinks();
setUpContributors();
setUpLive();
+9 -9
View File
@@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Privacy · Horizon</title>
<meta name="description" content="What Horizon collects when you allow it, why, how long it is kept, and how to delete it.">
<meta name="theme-color" content="#fafafc" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0d0e13" media="(prefers-color-scheme: dark)">
<meta name="theme-color" content="#ece7f7" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0f0d17" media="(prefers-color-scheme: dark)">
<meta name="color-scheme" content="light dark">
<link rel="canonical" href="https://playhorizon.dev/privacy">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
@@ -26,25 +26,25 @@
<li><strong>Performance statistics</strong>, after each play session of a minute or more. These are the frame-time and tick-time percentiles and a 14-bucket histogram (never a recording of each frame), the peak memory, how long the game took to start and to load the world, and the settings that change performance (render and simulation distance, frame limit, VSync, fullscreen, graphics mode).</li>
<li><strong>Crash reports</strong>, when the game crashes. They hold the error, where it happened in Horizon's code, your graphics adapter and settings. They hold no log, no world, no server and no resource packs.</li>
<li><strong>Bug reports</strong> that you write and send yourself. The end of the game's log goes with one only if you add it after reading it, and lines of chat are removed first.</li>
<li><strong>Benchmark uploads</strong> of the benchmarks you run. These are shown publicly in the community results.</li>
<li><strong>Benchmark uploads</strong> of the benchmarks you run. They are shown publicly on the <a href="/benchmarks">Benchmarks page</a>, only as medians of groups of at least 3 different installs with the same graphics card, processor and render distance; never one by one, and never with your install ID, the day, your OS version, driver, memory or screen.</li>
</ul>
<p>Each one also carries the Horizon version, the day it was made (not the time), and a description of your machine: the operating system and version, the CPU model and thread count, the memory rounded to the gigabyte, and the GPU, its driver and the graphics backend. It also carries a <strong>random install ID</strong>. The launcher makes that ID the first time you allow something; it says nothing about you and exists only so that your data can be deleted.</p>
<p>Never sent: your Microsoft or Minecraft account name or UUID, world names, server or LAN addresses, chat, and your user name or home folder in file paths. Before anything is kept, those are replaced with placeholders, along with e-mail and IP addresses. The server does not store the IP address requests come from.</p>
<p>The launcher shows exactly what would be sent: Settings → Data collection → View what would be sent, or <code>horizon-launcher data show</code>. Every field is listed in <a href="https://github.com/ludovic111/horizon/blob/main/docs/telemetry.md">docs/telemetry.md</a>.</p>
<h2>The "I'm playing" ping</h2>
<p>The game has an anonymous "I'm playing" ping, so the launcher can show how many people play Horizon right now. <strong>It is off today:</strong> no server receives it yet, so the game sends nothing. This is what it would hold, so you know before it is ever switched on. It would be sent once a minute while you play, whatever the switches say.</p>
<p>It would hold: a random number made when the game starts and forgotten when it closes, the Horizon version, your operating system (Linux, macOS or Windows), and whether you have a world open to LAN or to friends. It would not hold: your account, your install ID, world or server names, your hardware or settings, or anything you do in the game. The random number changes every time you start the game, so two of your sessions can't be linked to each other or to you.</p>
<p>The server would keep the pings in memory only, never on disk, and not with the address they came from (that is used only to stop abuse, as below). A session would count while it pinged in the last two minutes and is then forgotten. What it would show is the number playing now, per version and with a world open, rounded.</p>
<p>The game sends an anonymous "I'm playing" ping, so the launcher can show how many people play Horizon right now. It is sent once a minute while you play, whatever the switches say.</p>
<p>It holds: a random number made when the game starts and forgotten when it closes, the Horizon version, your operating system (Linux, macOS or Windows), and whether you have a world open to LAN or to friends. It does not hold: your account, your install ID, world or server names, your hardware or settings, or anything you do in the game. The random number changes every time you start the game, so two of your sessions can't be linked to each other or to you.</p>
<p>The server keeps the pings in memory only, never on disk, and not with the address they came from (that is used only to stop abuse, as below). A session counts while it pinged in the last two minutes and is then forgotten. What it shows is the number playing now, per version and with a world open, rounded.</p>
<h2>Why</h2>
<p>To find what is slow or crashes on which machines, and fix it. If it is switched on, the ping shows players, and Horizon, how many people play right now. Benchmark uploads also show other players how Horizon runs on hardware like theirs. Nothing is sold, shared for advertising, or used to identify you.</p>
<p>To find what is slow or crashes on which machines, and fix it. The ping shows players, and Horizon, how many people play right now. Benchmark uploads also show other players how Horizon runs on hardware like theirs. Nothing is sold, shared for advertising, or used to identify you.</p>
<h2>On what basis</h2>
<p>For the switches: your consent (Article 6(1)(a) of the EU's General Data Protection Regulation). It is given kind by kind, recorded on your computer with the version of the question you answered and when, and withdrawn at any time with the same switches. Withdrawing deletes what was waiting to be sent. When what is collected changes, the launcher asks again, and nothing new is sent until you answer. The ping would hold nothing that identifies you; the address it comes from would be used only to limit how often one address may send, kept in memory for an hour at most and never stored.</p>
<p>For the switches: your consent (Article 6(1)(a) of the EU's General Data Protection Regulation). It is given kind by kind, recorded on your computer with the version of the question you answered and when, and withdrawn at any time with the same switches. Withdrawing deletes what was waiting to be sent. When what is collected changes, the launcher asks again, and nothing new is sent until you answer. The ping holds nothing that identifies you; the address it comes from is used only to limit how often one address may send, kept in memory for an hour at most and never stored.</p>
<h2>Where and how long</h2>
<p>Items wait on your computer (<code>telemetry/</code> in the game folder) and are sent compressed when the launcher starts or closes, to Horizon's own server at <a href="https://railway.com">Railway</a>. The server keeps them for <strong>180 days</strong>, then deletes them. What stays after that are anonymous totals per day, Horizon version, operating system, GPU maker and render distance (for example "120 sessions on macOS with Apple GPUs at render distance 12"). They hold no install ID, and groups too small to be anonymous are never shown.</p>
<p>Items wait on your computer (<code>telemetry/</code> in the game folder) and are sent compressed when the launcher starts or closes, to Horizon's own server, <code>telemetry.playhorizon.dev</code>, hosted by <a href="https://railway.com">Railway</a> in the European Union (Amsterdam, the Netherlands). The server keeps them for <strong>180 days</strong>, then deletes them. What stays after that are anonymous totals per day, Horizon version, operating system, GPU maker and render distance (for example "120 sessions on macOS with Apple GPUs at render distance 12"). They hold no install ID, and groups too small to be anonymous are never shown.</p>
<h2>Deleting your data</h2>
<p>Settings → Data collection → Delete my data, or <code>horizon-launcher data delete</code>. The server deletes everything sent under your install ID, your share of the totals is recomputed, anything waiting on your computer is removed, and you get a new install ID. You can also turn everything off, or delete the <code>telemetry/</code> folder.</p>
+78
View File
@@ -0,0 +1,78 @@
// The Releases page: the list baked at build time, refreshed from GitHub when a newer release is out, and the
// channel filter. Without JavaScript the baked list reads as it is.
import { releasesPageHtml } from "./releases.js";
import { isGame, isLauncher, newestFirst } from "./versions.js";
import { cached, get, setUpMenu, setUpTheme, slim } from "./chrome.js";
const REPO = "ludovic111/horizon";
const list = document.getElementById("release-list");
const counter = document.querySelector("[data-release-count]");
const buttons = [...document.querySelectorAll("[data-filter]")];
let filter = "all";
const ours = (r) => !r.draft && (isGame(r.tag_name) || isLauncher(r.tag_name));
// Every release, a page of 100 at a time (GitHub's most), up to 500.
async function loadAll() {
const all = [];
for (let page = 1; page <= 5; page++) {
const batch = await get(`https://api.github.com/repos/${REPO}/releases?per_page=100&page=${page}`);
all.push(...batch.filter(ours).map(slim));
if (batch.length < 100) break;
}
return all;
}
function apply() {
const entries = [...list.querySelectorAll(".release-entry")];
let shown = 0;
for (const el of entries) {
const on = filter === "all" || el.dataset.channel === filter;
el.hidden = !on;
if (on) shown++;
}
counter.textContent = `${shown} release${shown === 1 ? "" : "s"}`;
buttons.forEach((b) => b.setAttribute("aria-pressed", String(b.dataset.filter === filter)));
}
async function refresh() {
// One small request first: the full list only when GitHub has something newer than the page.
const newest = await cached("horizon:releases-newest", () => get(`https://api.github.com/repos/${REPO}/releases?per_page=5`)).catch(() => null);
if (!newest) return;
const top = newest.filter(ours).map((r) => r.tag_name).sort(newestFirst)[0];
if (!top || top === list.dataset.newest) return;
const all = await cached("horizon:releases-all", loadAll).catch(() => null);
if (!all || !all.length) return;
const open = new Set([...list.querySelectorAll(".release-entry[open]")].map((el) => el.id));
list.innerHTML = releasesPageHtml(all);
list.dataset.newest = top;
// Keep what the reader opened open.
open.forEach((id) => document.getElementById(id)?.setAttribute("open", ""));
apply();
}
// A link to one release (/releases#release-v0.2.1) opens it.
function openTarget() {
const el = location.hash && document.getElementById(location.hash.slice(1));
if (el && el.classList.contains("release-entry")) {
if (el.hidden) {
filter = "all";
apply();
}
el.open = true;
el.scrollIntoView();
}
}
buttons.forEach((b) =>
b.addEventListener("click", () => {
filter = b.dataset.filter;
apply();
}),
);
addEventListener("hashchange", openTarget);
setUpTheme();
setUpMenu();
apply();
openTarget();
refresh().then(openTarget);
+50
View File
@@ -0,0 +1,50 @@
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Releases · Horizon</title>
<meta name="description" content="Every Horizon release, newest first: what each one adds and fixes, its full notes and its downloads. Alpha builds and Stable releases.">
<meta name="theme-color" content="#ece7f7" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#0f0d17" media="(prefers-color-scheme: dark)">
<meta name="color-scheme" content="light dark">
<link rel="canonical" href="https://playhorizon.dev/releases">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Horizon">
<meta property="og:title" content="Releases · Horizon">
<meta property="og:description" content="Every Horizon release, newest first, with what it adds and fixes.">
<meta property="og:url" content="https://playhorizon.dev/releases">
<meta property="og:image" content="https://playhorizon.dev/og.png">
<link rel="preconnect" href="https://api.github.com" crossorigin>
<style>{{STYLE}}</style>
<script>document.documentElement.classList.replace("no-js", "js"); try { const t = localStorage.getItem("theme"); if (t === "light" || t === "dark") document.documentElement.dataset.theme = t } catch {}</script>
<script type="module" src="{{RELEASES_JS}}"></script>
</head>
<body class="subpage">
<a class="skip" href="#main">Skip to the content</a>
{{SITE_NAV}}
<main id="main" class="section page-main">
<div class="container">
<p class="kicker"><span>Releases</span>Every version, newest first</p>
<h1 class="display page-title">What's new in Horizon</h1>
<p class="lede">Each release lists what it adds and fixes, then its full notes and its downloads. <strong>Alpha</strong> builds come out many times a day as changes land and can break; about once a day the tested ones become <strong>Stable</strong>, what the launcher installs unless you pick Alpha in its Settings. The launcher has its own releases.</p>
<div class="release-filter" role="group" aria-label="Show">
<button type="button" class="button secondary small" data-filter="all" aria-pressed="true">All</button>
<button type="button" class="button secondary small" data-filter="stable" aria-pressed="false">Stable</button>
<button type="button" class="button secondary small" data-filter="alpha" aria-pressed="false">Alpha</button>
<button type="button" class="button secondary small" data-filter="launcher" aria-pressed="false">Launcher</button>
</div>
<p class="meta release-count" data-release-count>{{RELEASE_COUNT}}</p>
<div class="release-list" id="release-list" data-newest="{{NEWEST_TAG}}" aria-live="polite">
{{RELEASE_LIST}}
</div>
<p class="release-more"><a class="link-arrow" href="https://github.com/ludovic111/horizon/releases">The releases on GitHub<span aria-hidden="true">→</span></a></p>
<p class="disclaimer">Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.</p>
</div>
</main>
{{SITE_FOOTER}}
</body>
</html>
+141 -31
View File
@@ -1,42 +1,152 @@
// The patch notes: the latest game release in full, the ones before it folded. Shared by
// build.mjs (baked into the page) and main.js (refreshed from GitHub).
import { markdown, escape } from "./markdown.js";
// The release notes on the site: the home page's "Recently added" block and the Releases page (every release,
// newest first). Shared by build.mjs (baked into the pages) and the pages' scripts (refreshed from GitHub).
// Tags: the game's vX.Y.Z and the launcher's launcher@X.Y.Z from 0.2, vYYYY.MM.DD[.N] and launcher-vX.Y.Z before
// (src/versions.js). Alpha is a game pre-release, Stable a game release (docs/release-flow.md, "Channels").
import { markdown, inline, escape } from "./markdown.js";
import { isLauncher, launcherVersion, newestFirst } from "./versions.js";
const REPO = "ludovic111/horizon";
export const channel = (r) => (isLauncher(r.tag_name) ? "Launcher" : r.prerelease ? "Alpha" : "Stable");
const anchor = (r) => `release-${r.tag_name.replace(/[^\w.-]/g, "-")}`;
// "Horizon 0.2.3: Cave culling, weather" (before 0.2, "Horizon 2026.10.13: …") reads as the version and its line.
function parts(r) {
const version = r.tag_name.replace(/^v/, "");
const name = r.name || "";
const line = name.includes(": ") ? name.slice(name.indexOf(": ") + 2) : name.replace(/^Horizon\s*/, "").replace(version, "").trim();
export function parts(r) {
const version = launcherVersion(r.tag_name) ?? r.tag_name.replace(/^v/, "");
const name = (r.name || "").trim();
let line = name.includes(": ") ? name.slice(name.indexOf(": ") + 2) : name.replace(/^Horizon( launcher)?\s*/i, "").replace(version, "").trim();
if (junk(line)) line = fromNotes(r.body) || line;
return { version, line: line.charAt(0).toUpperCase() + line.slice(1), date: (r.published_at || "").slice(0, 10) };
}
export function releasesHtml(list) {
if (!list.length) return "";
const [latest, ...older] = list;
const l = parts(latest);
const head = `<article class="release-latest">
<header class="release-head">
<p class="eyebrow">Latest release<span aria-hidden="true"> · </span><time datetime="${l.date}">${l.date}</time></p>
<h3 class="release-version">${escape(l.version)}</h3>
${l.line ? `<p class="release-line">${escape(l.line)}</p>` : ""}
<a class="link-arrow" href="${escape(latest.html_url)}">Downloads and full notes<span aria-hidden="true">→</span></a>
</header>
<div class="prose release-body">${markdown(latest.body || "")}</div>
</article>`;
const rest = older
// A title made of issue numbers and "fix" ("#1255, mob pushes, fix, #1222") says nothing.
const junk = (line) => {
const bits = line.split(",").map((b) => b.trim()).filter(Boolean);
return bits.length > 1 && bits.filter((b) => /^(#\d+|fix(es)?|fixed)$/i.test(b)).length * 2 >= bits.length;
};
// The first item that isn't a bare "Fix #123:" prefix, as the line: "Mob pushes: one list per mob… and 3 more fixes".
function fromNotes(body) {
const s = sections(body);
const items = [...s.filter((x) => /^new|what's new/i.test(x.title)), ...s.filter((x) => /^fixed/i.test(x.title))].flatMap((x) => x.items).map(plainItem);
const clean = items.map((i) => i.replace(/^(fix|fixes)\s+#\d+:\s*/i, "").replace(/^\w+\([^)]*\):\s*/, "")).filter(Boolean);
if (!clean.length) return "";
const first = clean[0].replace(/[.]$/, "");
return clean.length > 1 ? `${first} and ${clean.length - 1} more` : first;
}
// The notes' "### Heading" sections and their top-level items, in order.
export function sections(body) {
const out = [];
let current = null;
for (const raw of (body || "").replace(/\r\n?/g, "\n").split("\n")) {
const heading = raw.match(/^#{2,3}\s+(.+?)\s*$/);
if (heading) out.push((current = { title: heading[1], items: [] }));
else if (current && /^[-*]\s+/.test(raw)) current.items.push(raw.replace(/^[-*]\s+/, "").trim());
}
return out;
}
// An item without its pull request references: "Riptide (#123, fixes #45)" -> "Riptide".
export const plainItem = (item) => item.replace(/\s*\((?:#\d+|fixes #\d+|[^()]*#\d+[^()]*)\)\s*/g, " ").replace(/\s+/g, " ").trim();
// The notes' first sentence, for a release with no title line and no sections ("Rebuilt from the latest main.").
const firstLine = (body) => ((body || "").split(/\r?\n/).find((l) => l.trim() && !/^#/.test(l)) || "").trim().replace(/[.:]$/, "");
const count = (n, one, many) => `${n} ${n === 1 ? one : many}`;
// What a release changes, in a line: "12 new, 30 fixed, 2 known issues".
export function overview(r) {
const s = sections(r.body);
const by = (re) => s.filter((x) => re.test(x.title)).reduce((n, x) => n + x.items.length, 0);
const added = by(/^new|what's new/i);
const fixed = by(/^fixed/i);
const known = by(/^known/i);
const bits = [];
if (added) bits.push(count(added, "new feature", "new features"));
if (fixed) bits.push(count(fixed, "fix", "fixes"));
if (known) bits.push(count(known, "known issue", "known issues"));
return { added, fixed, known, text: bits.join(", ") };
}
export function highlights(r, n = 3) {
const added = sections(r.body).filter((x) => /^new|what's new/i.test(x.title)).flatMap((x) => x.items);
return added.slice(0, n).map(plainItem);
}
const byTag = (a, b) => newestFirst(a.tag_name, b.tag_name);
const badge = (r) => `<span class="badge badge-${channel(r).toLowerCase()}">${channel(r)}</span>`;
// The home page: the newest releases on a line each, and what the newest ones added.
export function recentHtml(list, { rows = 5, picks = 3 } = {}) {
const sorted = [...list].sort(byTag);
const game = sorted.filter((r) => !isLauncher(r.tag_name));
if (!game.length) return "";
const lines = game
.slice(0, rows)
.map((r) => {
const o = parts(r);
return `<details class="release">
<summary><span class="release-tag">${escape(o.version)}</span><span class="release-sub">${escape(o.line)}</span><time datetime="${o.date}">${o.date}</time></summary>
<div class="prose">${markdown(r.body || "")}<p><a href="${escape(r.html_url)}">Downloads and full notes on GitHub</a></p></div>
</details>`;
const p = parts(r);
return `<li class="row recent-row"><a href="/releases#${anchor(r)}"><span class="row-index"><time datetime="${p.date}">${p.date}</time></span><span class="row-name">${escape(p.version)}</span><span class="recent-line">${escape(p.line || overview(r).text || firstLine(r.body) || "Release notes")}</span><span class="row-meta">${badge(r)}</span></a></li>`;
})
.join("");
return `${head}
<div class="release-older">
${rest ? `<p class="release-older-title">Earlier releases</p>${rest}` : ""}
<p class="release-more"><a class="link-arrow" href="https://github.com/${REPO}/releases">Every release on GitHub<span aria-hidden="true">→</span></a></p>
</div>`;
// What landed last: the "New" items of the newest releases with the highest pull request numbers (a release's
// notes list everything since the last Stable, oldest first).
const pr = (item) => Math.max(0, ...[...item.matchAll(/#(\d+)/g)].map((m) => Number(m[1])));
const seen = new Set();
const picked = game
.slice(0, rows)
.flatMap((r) => sections(r.body).filter((x) => /^new|what's new/i.test(x.title)).flatMap((x) => x.items).map((raw) => ({ raw, item: plainItem(raw), r })))
.filter(({ item }) => !seen.has(item) && seen.add(item))
.sort((a, b) => pr(b.raw) - pr(a.raw))
.slice(0, picks);
const picks_ = picked
.map(({ item, r }) => `<li class="highlight"><p>${inline(item)}</p><a class="highlight-from" href="/releases#${anchor(r)}">${escape(parts(r).version)}</a></li>`)
.join("");
return `<ol class="index recent-list" aria-label="The newest releases">${lines}</ol>
${picks_ ? `<div class="recent-picks"><p class="eyebrow">New lately</p><ul class="highlights">${picks_}</ul></div>` : ""}
<p class="release-more"><a class="link-arrow" href="/releases">Every release, with its full notes<span aria-hidden="true">→</span></a></p>`;
}
const ASSET_LABELS = [
[/linux-x86_64/, "Linux x86-64"],
[/macos-arm64/, "macOS, Apple Silicon"],
[/macos-x86_64/, "macOS, Intel"],
[/windows-x64/, "Windows x64"],
];
function assetLabel(name) {
if (/^SHA256SUMS/.test(name)) return name.endsWith(".sig") ? "Checksums signature" : "Checksums";
const os = ASSET_LABELS.find(([re]) => re.test(name));
const what = /server/.test(name) ? "Server" : /launcher/.test(name) ? "Launcher" : /smoke-test/.test(name) ? "Smoke test" : "Game";
return os ? `${what}, ${os[1]}` : name;
}
const size = (bytes) => (bytes >= 1e6 ? `${(bytes / 1e6).toFixed(0)} MB` : bytes >= 1e3 ? `${(bytes / 1e3).toFixed(0)} kB` : `${bytes} B`);
function releaseHtml(r, open) {
const p = parts(r);
const o = overview(r);
const top = highlights(r, 4);
const downloads = (r.assets || [])
.map((a) => `<li><a href="${escape(a.browser_download_url)}">${escape(assetLabel(a.name))}</a><span>${escape(a.name)} · ${size(a.size || 0)}</span></li>`)
.join("");
return `<details class="release release-entry" id="${anchor(r)}" data-channel="${channel(r).toLowerCase()}"${open ? " open" : ""}>
<summary><span class="release-tag">${escape(p.version)}</span><span class="release-sub">${badge(r)}${escape(p.line)}</span><time datetime="${p.date}">${p.date}</time></summary>
<div class="release-detail">
${o.text || top.length ? `<div class="release-overview">
${o.text ? `<p class="release-counts">${escape(o.text)}</p>` : ""}
${top.length ? `<ul>${top.map((t) => `<li>${inline(t)}</li>`).join("")}</ul>` : ""}
</div>` : ""}
<div class="prose">${markdown(r.body || "") || "<p>No notes for this release.</p>"}</div>
${downloads ? `<div class="release-downloads"><p class="eyebrow">Downloads</p><ul>${downloads}</ul></div>` : ""}
<p class="release-github"><a href="${escape(r.html_url)}">This release on GitHub</a></p>
</div>
</details>`;
}
// The Releases page: every release, newest first; the newest few open.
export function releasesPageHtml(list, { open = 3 } = {}) {
const sorted = [...list].sort(byTag);
if (!sorted.length) return "";
return sorted.map((r, i) => releaseHtml(r, i < open)).join("\n");
}
export const releasesUrl = `https://github.com/${REPO}/releases`;
+254 -12
View File
@@ -1,8 +1,7 @@
/* Horizon's design language (docs/design-system.md), set as a page. The tokens come from
crates/horizon-theme through src/tokens.css, which build.mjs puts before this file: the
same palette, type, spacing and motion as the launcher and the game's menus. Type is the
interface; content is numbered index lists with one-pixel rules; one violet accent for the
main action, links and focus; space instead of borders; quiet motion. */
launcher's Blocks palettes, type, spacing and motion. The base below lays out the page; the
"Blocks" section at the end gives it the launcher's blocky, Minecraft-like look. */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@@ -301,12 +300,7 @@ figcaption span { font-family: var(--mono); font-size: var(--text-micro); letter
.screen-caption { margin-top: 12px; font-size: var(--text-caption); color: var(--muted); }
/* Patch notes. */
.release-latest { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-top: 32px; border-top: 1px solid var(--rule); }
.release-head { position: sticky; top: calc(var(--nav) + 24px); align-self: start; display: flex; flex-direction: column; gap: 12px; }
.eyebrow { text-transform: uppercase; }
.release-version { font-size: var(--text-display); line-height: var(--text-display-line); letter-spacing: var(--text-display-tracking); font-weight: 500; }
.release-line { color: var(--muted); max-width: 36ch; }
.release-body { font-size: var(--text-ui); }
.prose h2, .prose h3, .prose h4 { font-size: var(--text-heading); line-height: var(--text-heading-line); color: var(--ink); margin-top: 28px; }
.prose ul, .prose ol { padding-left: 18px; list-style: disc; }
.prose li + li { margin-top: 6px; }
@@ -314,8 +308,6 @@ figcaption span { font-family: var(--mono); font-size: var(--text-micro); letter
.prose strong { color: var(--ink); font-weight: 500; }
.prose pre { padding: 16px; border-radius: var(--radius-plate); background: var(--plate-soft); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.release-older { margin-top: 64px; }
.release-older-title { font: var(--text-micro) / var(--text-micro-line) var(--mono); letter-spacing: var(--text-micro-tracking); color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.release { border-top: 1px solid var(--rule); }
.release:last-of-type { border-bottom: 1px solid var(--rule); }
.release summary {
@@ -405,9 +397,9 @@ figcaption span { font-family: var(--mono); font-size: var(--text-micro); letter
/* --- Narrow screens ------------------------------------------------------------------------ */
@media (max-width: 900px) {
.section-head, .parity-hero, .launcher-grid, .release-latest { grid-template-columns: minmax(0, 1fr); }
.section-head, .parity-hero, .launcher-grid { grid-template-columns: minmax(0, 1fr); }
.section-head { gap: 16px; }
.screens, .release-head { position: static; }
.screens { position: static; }
.fact { grid-template-columns: var(--index) minmax(0, 1fr); row-gap: 6px; }
.fact p { grid-column: 2; }
.mosaic { grid-template-columns: minmax(0, 1fr); }
@@ -499,3 +491,253 @@ figcaption span { font-family: var(--mono); font-size: var(--text-micro); letter
@media (pointer: coarse) {
.docs-nav li a, .docs-toc a, .docs-bar-title, .docs-bar-link { display: flex; align-items: center; min-height: 44px; }
}
/* --- Blocks: the launcher's look on the page (docs/design-system.md, "Blocks") -------------
Pixel type for headings and controls, square panels with a dark outline, a light bevel on top
and a darker lip below, the violet face for the main action, sunk wells, a stone texture
behind the page and Horizon's pixel landscape behind the hero. The art is drawn in code
(scripts/art.mjs, like launcher/src/art.rs); nothing in it comes from Minecraft. */
@font-face { font-family: "Pixelify Sans"; src: url("/fonts/PixelifySans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("/fonts/PixelifySans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("/fonts/PixelifySans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
--stone: url("/media/stone-light.png");
--scene: url("/media/scene-light.png");
--sky: #8d7fd8;
--panel-edges: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(-1 * var(--block-bevel)) 0 var(--lip);
--radius: 0px; --radius-plate: 0px; --radius-pill: 0px;
}
:root[data-theme="dark"] { --stone: url("/media/stone-dark.png"); --scene: url("/media/scene-dark.png"); --sky: #0a0f2c; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --stone: url("/media/stone-dark.png"); --scene: url("/media/scene-dark.png"); --sky: #0a0f2c; }
}
/* The stone: 64 texels of the page colour in close shades, each texel 4 px. */
body { position: relative; isolation: isolate; }
body::before {
content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
background: var(--stone) 0 0 / 256px 256px repeat; image-rendering: pixelated;
}
/* Pixel type for what names and what you act on; paragraphs stay in Geist. */
.display, .title, .statement, .row-name, .card-title, .release-tag, .count,
.fact h3, .features h3, .system h3, .contributors-title, .footer-disclaimer, .footer-word,
.nav-mark, .docs-prose h2, .docs-prose h3, .prose h2, .prose h3, .prose h4, .menu nav a {
font-family: var(--pixel); font-weight: 600; letter-spacing: 0;
}
.display, .count, .footer-word { font-weight: 700; }
.nav-mark { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
code { border-radius: 0; background: var(--well); box-shadow: 0 0 0 1px var(--outline); }
/* Buttons: blocks with an outline, a bevel and a lip; they sink a pixel when pressed. */
.button {
border: var(--block-outline) solid var(--outline); border-radius: 0;
font: 500 var(--text-ui) / 1 var(--pixel);
box-shadow: inset 0 var(--block-bevel) 0 var(--button-bevel), inset 0 calc(-1 * var(--block-lip)) 0 var(--lip);
padding-bottom: 2px;
}
.button.large { font-size: 18px; }
.button.primary { background: var(--face); color: var(--on-face); box-shadow: inset 0 var(--block-bevel) 0 var(--face-bevel), inset 0 calc(-1 * var(--block-lip)) 0 var(--face-lip); }
.button.primary:hover { opacity: 1; filter: brightness(1.08); }
.button.secondary { background: var(--button); }
.button.secondary:hover { background: var(--button); filter: brightness(1.06); }
.button.ghost { border-color: transparent; box-shadow: none; }
.button:active { opacity: 1; transform: translateY(1px); box-shadow: inset 0 var(--block-bevel) 0 var(--lip); }
:focus-visible { border-radius: 0; }
/* The top bar: the sidebar colour with an outline under it, tabs with an accent underline. */
.nav.is-scrolled, .nav.is-menu { background: var(--side); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 var(--block-outline) 0 var(--outline); }
.nav-links a, .nav-github, .theme-toggle { border-radius: 0; font-family: var(--pixel); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-github:hover, .theme-toggle:hover { background: var(--raised); }
.nav-links a[aria-current] { background: var(--raised); box-shadow: inset 0 -3px 0 var(--accent); }
.theme-toggle { text-transform: none; letter-spacing: 0; }
.menu { background: var(--side); }
.menu nav a { border-bottom: 0; }
/* Lists become stacks of panels. */
.index, .systems, .contributors-list { border-top: 0; display: grid; gap: 8px; }
.row, .system, .release, .release:last-of-type, .contributor { border-bottom: 0; border-top: 0; }
.row > a, .row.card, .fact.row, .features li, .system, .release, .contributor, .docs-pager a {
background: var(--panel); border: var(--block-outline) solid var(--outline); box-shadow: var(--panel-edges);
border-radius: 0;
}
.row > a, .row.card, .fact.row, .features li, .system { padding-left: 20px; padding-right: 20px; }
.row > a::before, .row.card::before { display: none; }
.row > a:hover, .row.card:hover, .contributor:hover, .docs-pager a:hover { background: var(--raised); }
.row > a:hover .row-index { color: var(--accent); }
.row-name { font-size: clamp(20px, 2.2vw, 28px); }
.release { padding: 0 20px; }
.release + .release { margin-top: 8px; }
.release .prose { padding-left: 12rem; }
.contributor { padding: 12px 14px; }
.contributors-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.contributor-avatar { border-radius: 0; box-shadow: 0 0 0 2px var(--outline); image-rendering: pixelated; }
.system.is-full .system-state { color: var(--success); }
/* Screenshots and the launcher's screens: square, outlined. */
.zoom, .screen, .lightbox, .prose pre, .docs-prose figure img { border-radius: 0; box-shadow: 0 0 0 var(--block-outline) var(--outline); }
.tabs { border-radius: 0; background: var(--well); box-shadow: 0 0 0 var(--block-outline) var(--outline); }
.tabs button { border-radius: 0; font-family: var(--pixel); font-weight: 500; font-size: 15px; }
.tabs button[aria-selected="true"] { color: var(--on-face); }
.tab-pill { border-radius: 0; background: var(--face); box-shadow: inset 0 var(--block-bevel) 0 var(--face-bevel), inset 0 calc(-1 * var(--block-bevel)) 0 var(--face-lip); }
/* The hero: Horizon's landscape under a veil of the page colour, the words on the left. */
.hero {
position: relative; isolation: isolate; overflow: hidden;
background: var(--scene) 70% 100% / clamp(1200px, 135vw, 2400px) auto no-repeat, var(--sky); image-rendering: pixelated;
border-bottom: var(--block-outline) solid var(--outline);
}
.hero::before {
content: ""; position: absolute; inset: 0; z-index: -1;
background:
linear-gradient(90deg, color-mix(in srgb, var(--page) 92%, transparent) 0%, color-mix(in srgb, var(--page) 78%, transparent) 45%, color-mix(in srgb, var(--page) 0%, transparent) 78%),
linear-gradient(180deg, color-mix(in srgb, var(--page) 0%, transparent) 55%, color-mix(in srgb, var(--page) 70%, transparent) 100%);
}
.hero .kicker span, .hero .kicker { color: var(--ink-soft); }
.hero .lede { color: var(--ink-soft); }
.hero { padding-bottom: clamp(160px, 18vw, 280px); }
.hero-after { padding-top: 40px; }
.hero-after .hero-index { margin-top: 0; max-width: 860px; }
.hero-after .disclaimer { margin-top: 24px; }
@media (max-width: 900px) {
.hero::before { background: color-mix(in srgb, var(--page) 84%, transparent); }
}
/* Documentation. */
.docs-bar { background: var(--side); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 var(--block-outline) 0 var(--outline); }
.docs-nav li a { border-radius: 0; }
.docs-nav li a[aria-current] { background: var(--raised); box-shadow: inset 4px 0 0 var(--accent); }
.docs-toc a { border-radius: 0; background: var(--button); box-shadow: 0 0 0 var(--block-outline) var(--outline); }
.docs-pager a { box-shadow: var(--panel-edges); }
.docs-prose h2 { border-top: var(--block-outline) solid var(--outline); }
.docs-prose blockquote { border-left: 4px solid var(--accent); background: var(--panel); padding: 10px 16px; box-shadow: 0 0 0 var(--block-outline) var(--outline); }
/* The footer: the giant wordmark in pixels. */
.footer { background: var(--side); border-top: var(--block-outline) solid var(--outline); margin-top: 48px; }
.footer-word { color: var(--raised); letter-spacing: 0.02em; }
:root[data-theme="dark"] .footer-word { color: var(--panel); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer-word { color: var(--panel); } }
/* --- Releases and Benchmarks pages, and the home page's "Recently added" ------------------ */
/* Pixelify Sans' "fi" ligature draws as "A" ("8 Axes"): no common ligatures anywhere. */
:root { font-variant-ligatures: no-common-ligatures; }
.page-main { padding-top: calc(var(--nav) + clamp(40px, 6vw, 80px)); }
.page-title { max-width: 18ch; margin-bottom: 20px; }
.page-main > .container > .lede { font-size: var(--text-body); }
.page-main .disclaimer { margin-top: 48px; }
/* Channel and source badges: small square tags. */
.badge {
display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-right: 10px; vertical-align: 2px;
font: 500 12px / 1 var(--pixel); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
border: var(--block-outline) solid var(--outline); background: var(--well); color: var(--ink-soft);
}
.badge-stable { background: color-mix(in srgb, var(--success) 22%, var(--panel)); color: var(--ink); }
.badge-alpha { background: color-mix(in srgb, var(--warn) 24%, var(--panel)); color: var(--ink); }
.badge-launcher { background: color-mix(in srgb, var(--accent) 20%, var(--panel)); color: var(--ink); }
.badge-us { background: color-mix(in srgb, var(--accent) 20%, var(--panel)); color: var(--ink); }
.badge-players { background: color-mix(in srgb, var(--success) 22%, var(--panel)); color: var(--ink); }
.badge-estimate { background: color-mix(in srgb, var(--warn) 24%, var(--panel)); color: var(--ink); }
/* Home: the newest releases on a line each, then what they added. */
.recent-list .row > a { grid-template-columns: 8.5rem minmax(0, 13rem) minmax(0, 1fr) auto; align-items: baseline; }
.recent-line { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list .row-name { font-size: clamp(18px, 1.8vw, 22px); }
.recent-list .badge { margin-right: 0; }
.recent-picks { margin-top: 32px; }
.recent-picks .eyebrow { margin-bottom: 12px; }
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.highlight {
display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 18px 20px;
background: var(--panel); border: var(--block-outline) solid var(--outline); box-shadow: var(--panel-edges);
}
.highlight p { color: var(--ink); }
.highlight-from { font: var(--text-micro) / 1 var(--mono); letter-spacing: var(--text-micro-tracking); color: var(--muted); }
.highlight-from:hover { color: var(--accent); }
/* Releases: a filter, then every release as a panel that opens. */
.release-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.release-filter .button[aria-pressed="true"] { background: var(--face); color: var(--on-face); box-shadow: inset 0 var(--block-bevel) 0 var(--face-bevel), inset 0 calc(-1 * var(--block-lip)) 0 var(--face-lip); }
.release-count { margin: 16px 0 12px; }
.release-list { display: grid; gap: 8px; }
.release-list .release + .release { margin-top: 0; }
.release-entry summary { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto; }
.release-entry .release-sub { display: flex; align-items: baseline; flex-wrap: wrap; row-gap: 4px; }
.release-detail { padding: 0 0 24px 11rem; margin-left: 16px; display: grid; gap: 20px; max-width: calc(11rem + 16px + var(--measure) + 120px); }
.release-detail .prose { padding: 0; margin: 0; font-size: var(--text-ui); max-width: none; }
.release-overview { padding: 16px 18px; background: var(--well); box-shadow: 0 0 0 var(--block-outline) var(--outline); }
.release-counts { font-family: var(--pixel); font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.release-overview ul { list-style: square; padding-left: 18px; color: var(--ink-soft); font-size: var(--text-ui); }
.release-overview li + li { margin-top: 4px; }
.release-downloads ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 8px; }
.release-downloads li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--button); box-shadow: 0 0 0 var(--block-outline) var(--outline); }
.release-downloads li a { font-weight: 500; }
.release-downloads li span { font: var(--text-micro) / 1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.release-github { font-size: var(--text-caption); }
.release-entry:target { box-shadow: var(--panel-edges), 0 0 0 3px var(--accent); }
/* Benchmarks. */
.bench-section { margin-top: clamp(64px, 8vw, 112px); }
.bench-section > .title { margin-bottom: 16px; }
.bench-section > .lede { margin-bottom: 32px; }
.machines { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.machine { min-width: 0; padding: 24px; background: var(--panel); border: var(--block-outline) solid var(--outline); box-shadow: var(--panel-edges); }
.machine-head { display: grid; gap: 10px; margin-bottom: 20px; }
.machine-name { font-family: var(--pixel); font-weight: 600; font-size: var(--text-title); line-height: var(--text-title-line); }
.machine-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; }
.machine-facts div { display: flex; gap: 8px; min-width: 0; }
.machine-facts dt { font: var(--text-micro) / 1.6 var(--mono); letter-spacing: var(--text-micro-tracking); text-transform: uppercase; color: var(--muted); }
.machine-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: var(--text-caption); color: var(--ink-soft); }
.machine-note { font-size: var(--text-caption); color: var(--muted); max-width: 90ch; }
/* relative: the screen-reader-only labels inside are absolute and would escape the scroll box otherwise. */
.table-wrap { position: relative; overflow-x: auto; }
.bench-table { width: 100%; border-collapse: collapse; font-size: var(--text-ui); }
.bench-table th, .bench-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.bench-table thead th { font: var(--text-micro) / 1.4 var(--mono); letter-spacing: var(--text-micro-tracking); text-transform: uppercase; color: var(--muted); font-weight: 400; }
.bench-table thead tr:first-child th { color: var(--ink); }
.bench-table tbody th { font-weight: 500; color: var(--ink); }
.bench-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bench-table td.wins { color: var(--ink); font-weight: 600; }
.bench-table td.vs { font-size: var(--text-caption); white-space: nowrap; }
.vs-horizon { color: var(--success); }
.vs-java { color: var(--danger); }
.vs-tie, .vs-none { color: var(--muted); }
.capped { font: var(--text-micro) / 1 var(--mono); color: var(--warn); cursor: help; }
.metric-hint { display: block; font: var(--text-micro) / 1.4 var(--mono); color: var(--muted); font-weight: 400; }
.java-wins { margin-top: 16px; font-size: var(--text-caption); color: var(--ink-soft); }
.picker { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; padding: 20px; background: var(--panel); border: var(--block-outline) solid var(--outline); box-shadow: var(--panel-edges); }
.picker label { display: grid; gap: 6px; }
.picker label > span, .picker legend { font: var(--text-micro) / 1.4 var(--mono); letter-spacing: var(--text-micro-tracking); text-transform: uppercase; color: var(--muted); }
.picker select {
min-width: min(320px, 80vw); height: var(--control); padding: 0 10px; font: inherit; font-size: var(--text-ui); color: var(--ink);
background: var(--well); border: var(--block-outline) solid var(--outline); border-radius: 0;
}
.picker-rd { display: flex; gap: 16px; align-items: center; border: 0; padding: 0; margin: 0; }
.picker-rd legend { margin-bottom: 6px; }
.picker-rd label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--pixel); font-weight: 500; height: var(--control); }
.picker-rd input { accent-color: var(--accent); width: 18px; height: 18px; }
.pick-result { margin-top: 16px; padding: 20px; background: var(--panel); border: var(--block-outline) solid var(--outline); box-shadow: var(--panel-edges); }
.pick-head { margin-bottom: 12px; font-size: var(--text-caption); color: var(--ink-soft); line-height: 1.8; }
.pick-result .meta { margin-top: 12px; }
.empty { color: var(--muted); }
.prose-section .prose { max-width: 80ch; }
.spec-table { margin-top: 24px; }
.spec-table summary { cursor: pointer; font-family: var(--pixel); font-weight: 600; }
.spec-table .bench-table { margin-top: 16px; max-width: 760px; }
@media (max-width: 900px) {
.recent-list .row > a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
.recent-list .row-index { grid-column: 1; grid-row: 1; }
.recent-list .row-name { grid-column: 1; grid-row: 2; }
.recent-line { grid-column: 1 / -1; grid-row: 3; white-space: normal; }
.recent-list .row-meta { grid-column: 2; grid-row: 1; }
.highlights { grid-template-columns: minmax(0, 1fr); }
.release-entry summary { grid-template-columns: minmax(0, 1fr) auto; }
.release-detail { padding-left: 0; margin-left: 0; }
.machine { padding: 16px; }
}
.older-runs { margin-top: 16px; max-width: 90ch; padding: 16px 20px; background: var(--well); box-shadow: 0 0 0 var(--block-outline) var(--outline); font-size: var(--text-caption); }
+71 -25
View File
@@ -2,21 +2,39 @@
docs/design-system.md describes the tokens. */
:root {
--page: #fafafc;
--plate-soft: #f3f3f8;
--plate: #ebecf4;
--surface: #ffffff;
--rule: #e2e3ea;
--ink: #16181f;
--ink-soft: #3b3e49;
--muted: #646875;
--accent: #5b3fd6;
--page: #ece7f7;
--plate-soft: #e9e3f8;
--plate: #ddd4f3;
--surface: #f8f6fd;
--rule: #e4ddf4;
--ink: #1b1530;
--ink-soft: #3b3354;
--muted: #585071;
--accent: #5333c9;
--on-accent: #ffffff;
--danger: #b4372a;
--success: #1d7a48;
--danger: #a3301d;
--success: #136336;
--warn: #7a4f00;
--side: #e2dbf2;
--panel: #f8f6fd;
--raised: #e9e3f8;
--button: #ddd4f3;
--button-bevel: #f4f0fe;
--well: #f3f0fb;
--bevel: #ffffff;
--lip: #c3b8e2;
--outline: #2b2244;
--face: #5b3fd6;
--face-bevel: #8069ef;
--face-lip: #3a2694;
--on-face: #ffffff;
color-scheme: light;
--font: "Geist", ui-sans-serif, system-ui, sans-serif;
--mono: "Geist Mono", ui-monospace, monospace;
--pixel: "Pixelify Sans", "Geist", ui-sans-serif, sans-serif;
--block-outline: 2px;
--block-bevel: 2px;
--block-lip: 4px;
--text-micro: 11px;
--text-micro-line: 1.5;
--text-micro-tracking: 0.04em;
@@ -88,34 +106,62 @@
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--page: #0d0e13;
--plate-soft: #181a22;
--plate: #20222c;
--surface: #16181f;
--rule: #24262f;
--page: #0f0d17;
--plate-soft: #221e34;
--plate: #2b2641;
--surface: #1a1727;
--rule: #120f1c;
--ink: #ecedf3;
--ink-soft: #c5c7d1;
--muted: #8b8f9c;
--muted: #a29cb8;
--accent: #9a86ff;
--on-accent: #0d0e13;
--on-accent: #ffffff;
--danger: #f07a68;
--success: #45c27a;
--warn: #f0b84f;
--side: #0b0a11;
--panel: #1a1727;
--raised: #221e34;
--button: #2b2641;
--button-bevel: #3d3560;
--well: #0c0b12;
--bevel: #342d52;
--lip: #07060b;
--outline: #05040a;
--face: #5b3fd6;
--face-bevel: #8a74ff;
--face-lip: #3a2694;
--on-face: #ffffff;
color-scheme: dark;
}
}
:root[data-theme="dark"] {
--page: #0d0e13;
--plate-soft: #181a22;
--plate: #20222c;
--surface: #16181f;
--rule: #24262f;
--page: #0f0d17;
--plate-soft: #221e34;
--plate: #2b2641;
--surface: #1a1727;
--rule: #120f1c;
--ink: #ecedf3;
--ink-soft: #c5c7d1;
--muted: #8b8f9c;
--muted: #a29cb8;
--accent: #9a86ff;
--on-accent: #0d0e13;
--on-accent: #ffffff;
--danger: #f07a68;
--success: #45c27a;
--warn: #f0b84f;
--side: #0b0a11;
--panel: #1a1727;
--raised: #221e34;
--button: #2b2641;
--button-bevel: #3d3560;
--well: #0c0b12;
--bevel: #342d52;
--lip: #07060b;
--outline: #05040a;
--face: #5b3fd6;
--face-bevel: #8a74ff;
--face-lip: #3a2694;
--on-face: #ffffff;
color-scheme: dark;
}