Skip to content

TrailView phone tier: one budget table, tier=phone and the values of preset P #3777

Closed

Description

@timohueser

Status: approved

Part of #3656.

TL;DR

Goal: TrailView takes its sizes from one budget table with a desktop tier and a phone tier. tier=phone in the address chooses the phone tier, which has the values of preset P that have an effect. The desktop tier keeps today's values.
Systems: trailview, trailview-page
Size: M (2 systems, about a dozen modules read the table)

Plan

  1. budget.ts (new): the type Tier (desktop, phone), the interface Budget (one field per row of the epic's tables) and BUDGETS. The desktop values are today's constants. The phone values are those of P that have an effect: the share of the terrain pages 0.5 (applied as pool is today, after the masks come out), 64 ground pages, 30 fps, and the loads in flight: terrain pages 6 → 3, ground pages 4 → 2, houses 6 → 3, stamps 8 → 4, canopy 9 → 5.
  2. view.ts: tierOf(search) gives phone for tier=phone, else desktop. Read once, as scale is. poolOf and the address option pool go: the tier takes their place.
  3. engine.ts: TrailView.start takes tier in place of pool, and gives BUDGETS[tier] to each part that reads a row (step 4).
  4. The modules read their values from the budget: terrain/terrain.ts (the page bytes), ground/ground.ts (the pages), pacer.ts (the frame rate), and the loads in flight of terrain/pages.ts, ground/pages.ts, structures/houses.ts, terrain/stamps.ts and vegetation/canopy.ts. roads/roads.ts keeps its constants (TrailView ground plan GP19: the ground plan becomes the only path, the old code goes, docs, budgets, merge into develop #3110 deletes it).
  5. src/trailview.ts reads tierOf and passes it. The parameter table of lib/trailview/README.md gets tier.
  6. The gallery of the visible cuts: terrain pages × 0.5, 64 ground pages (the epic's "The galleries"). The one-cut renders come from a local edit of BUDGETS.desktop that is never committed.
  7. After the merge: the prototype branch prototype/trailview-ios-app merges develop, and the kit's variant p becomes tier=phone. The kit's zoom-out starts above the ground: its alt=1500 (from flights.json) lies under the slope, where the ground is 2,292 m.

Activity

  1. timohueser commented on Nov 21, 2026

    @timohueser
    OwnerAuthor

    Gallery of the visible cuts (PR #3781): approved by the owner.

    The owner's words: "yes post it, approved".

    The gallery: 6 scenes (the starts of walk, valley drive, zoom-out at 2,600 m, bridge and tunnel, and far views north from 4,000 m and south from 3,800 m), headless Chromium on Metal at 780 × 1688. Terrain pages × 0.5, 64 ground pages and the whole phone tier each stay at the noise floor of two desktop renders: no start view fills half the terrain pool (at most 283 + 75 of 404 + 140 pages), and the 17 to 44 far ground pages that 64 pages leave out draw from their cover, at most 9/255 apart.

    Posted by Claude Code for the owner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions