mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Raise Linux Annotate screen recording from 30 fps to 60 fps across the PipeWire/VA-API, PipeWire/x264, and X11/x264 paths (step L1): - Raise `linux::media::FPS` from 30 to 60 and propagate it to both sampler loops, `ffmpeg` mux/encode args, and VA-API H.264 sequence and VUI timing (`time_scale = 2 * FPS = 120`), replacing the 30 fps cap (`time_scale = 60`). - Offer `SPA_FORMAT_VIDEO_maxFramerate` 60/1 (range 1/1..60/1) and a 60/1 default on `SPA_FORMAT_VIDEO_framerate` in PipeWire `enum_format`, keeping linear modifier negotiation unchanged for now. - Compute VA-API H.264 `level_idc` from macroblocks and frame rate per Table A-1 (e.g. 4.2 at 1080p60, 5.1 at 1440p60, 5.2 at 4K60, replacing hardcoded level 5.1), allocate coded surfaces padded to 16 px macroblocks while setting SPS `frame_cropping_flag` and crop offsets (replacing `fit(..., 16)` truncation that squashed 1920x1080 to 1920x1072 and float-truncating 3840x2160 to 2560x1438), and scale the `small` candidate surface on demand in `small_rgba` at `FRAME_SAMPLE_INTERVAL` instead of on every frame in `load`. - Switch CPU `Writer::x264` from fixed `veryfast` to `superfast` up to 1440p and `ultrafast` above, raise the pipe buffer to 1 MiB, and timestamp piped frames on the wall clock into `fps=60` inside `ffmpeg` instead of duplicating multi-MB raw frames across `pipe:0` when a screen is still or a 4K software frame runs past 16.7 ms. - Borrow the X11 MIT-SHM segment directly into `Writer` instead of copying each frame into a `Vec<u8>`, and cache the XFixes cursor image across frames using `XFixesSelectCursorInput` (`XFixesCursorNotify`), pipelining `QueryPointer` with `shm_get_image` instead of fetching the cursor bitmap every frame. - Update `docs/features/capture.md` (`capture.linux`) with the new behaviour, checks, and T4 verification limits. Verified: - `cargo clippy --locked -p scrawl-capture --target x86_64-unknown-linux-gnu -- -D warnings` and `python3 scripts/code-shape.py --check`. - FFmpeg `trace_headers` bit-level parse of generated VA-API SPS/PPS/IDR headers at 1920x1080@60 (level 42, crop_bottom 4), 2560x1440@60 (level 51), and 3840x2160@60 (level 52), all `time_scale = 120`. - On `hex-linux-nvidia` (`g4dn.2xlarge`, Tesla T4, Ubuntu 24.04): 273/275 `scrawl-capture` unit tests pass (the other 2 fail identically on clean `dev`); native Xorg 1080p60 recorded 598 frames in 9.97 s at 60/1 (`1920x1080`, 597 grabs, 16.5% capture CPU); Xorg 1280x720 Area recorded 298 frames in 4.97 s at 60/1 (297 grabs); rootful Xwayland 4K recorded `2560x1440` at 60/1 (598 frames in 9.97 s from 282 raw 4K grabs); PipeWire 1080p60 SHM -> x264 recorded 598 frames in 9.97 s at 60/1 (594 delivered). VA-API hardware encoding was not exercised live because Tesla T4 has no VA-API encoder. |
||
| .. | ||
| features | ||
| plans | ||
| releases | ||
| research | ||
| specs | ||
| cli.md | ||
| design-system.md | ||
| downloads.md | ||
| linux.md | ||
| nix.md | ||
| opencode-compatibility.md | ||
| perf.md | ||
| README.md | ||
| releasing.md | ||
| streams.md | ||
| test-builds.md | ||
| transcript-cli.md | ||
| windows-signing.md | ||
| windows.md | ||
Project Documentation
Start with the document for your task. Plans and archived prototypes do not override shipped behavior.
User Guides
../README.md: install and use Hex on macOS, Windows, and Linux.windows.md: Windows x64 and ARM64 beta requirements, installation, and source builds.linux.md: Linux X11 and native Wayland beta requirements and installation.nix.md: Nix packaging, development, and per-user autostart.../ios/README.md: build and test the iOS prototype.../sdk/typescript/README.md: use the public TypeScript transcription SDK with an explicitly supplied native helper.
Engineering Reference
../AGENTS.md: architecture, invariants, development commands, and diagnostics. This is the implementation authority.../ROADMAP.md: prioritized product and engineering work.design-system.md: Rune +rune-kit+ OpenCode theme components, Hex pieces, copy rules, and--snapscene verification.features/README.md: existing user-facing capabilities, entry points, available verification, and gaps; detailed dictation and recovery maps.perf.md: strobe benchmarks, thestrobebuild profile, and how a benchmarked copy of Hex stays isolated.downloads.md: public download paths, R2 custom domains, GitHub release mirrors, and network recovery.opencode-compatibility.md: audited OpenCode V2 source and CLI baseline, integration contract, and validation limits.plans/personal-commands.md: shipped personal command contract and remaining lifecycle work.plans/quickjs.md: why and how configs run in embedded QuickJS instead of Bun, with size and latency measurements.specs/local-transcription-service.md: implemented macOS local-service protocol and lifecycle guarantees.
Architecture Decisions And Active Plans
plans/rune-ui.md: implemented; Rune desktop UI port, surfaces, goldens, and remaining real-window checklist.plans/single-process.md: implemented; one Hex process per user on macOS, Windows, and Linux hosting Rune windows and overlays.plans/rune-dependency.md: decision record for Rune as a public MIT Git dependency and Nix output-hash updates.plans/shared-desktop-ui.md: implemented; how macOS, Windows, and Linux share one window and one settings file.plans/swift-app-handoff.md: manual download handoff from Swift, without data import or automatic replacement.plans/typescript-sdk.md: published SDK status, remaining signed-helper packaging, and first-consumer validation.plans/linux.md: Linux X11/Wayland validation and later capability slices.plans/meeting-live-transcription.md: evaluation of Apple SpeechTranscriber vs Moonshine for live meeting drafts.plans/granola-import.md: research on importing historical Granola meetings intohex mcp.
When a plan disagrees with AGENTS.md about shipped behavior, update the plan.
Research And Archives
research/transcription-benchmark.md: historical benchmark method and measurements.../prototypes/app-shell/README.md: archived app-shell comparison prototype.
Releases
releases/ contains version-specific release notes and drafts. ../release-notes/ contains legacy inputs from versions
2.0.0 through 2.0.9. Published notes and the SDK changelog describe their release,
not current behavior; preserve them as historical records. A draft note is not
evidence that its release has been published.