Commit Graph

223 Commits

Author SHA1 Message Date
04360294e1 Merge main (v1.1.6 batch) into linux-test 2026-12-06 05:21:31 +05:30
c048b3a54c Fix #335: never budget-drop one-time LUT/decoration pipelines (lasting list + dropped-once full wait) v1.1.6 2026-12-06 05:18:36 +05:30
103bb4c984 linux-test: add shader_replace::missing_wide_variants (main descriptor probe) 2026-12-06 05:15:07 +05:30
9c2885dc7c Merge main (#240/#227/#153/#296) into linux-test
# Conflicts:
#	crates/larp-gpu/src/shader_replace.rs
#	shaders/replace/07fb4c723c4241ed.compute.hlsl
#	shaders/replace/6871d6e4b3ac9a10.compute.hlsl
#	shaders/replace/926c46bab3b86bd6.compute.hlsl
#	shaders/replace/a10179ab7eda0dc3.compute.hlsl
#	shaders/replace/d3c330847c597f3c.compute.hlsl
#	shaders/replace/view_heap_layout.hlsli
2026-12-06 05:09:58 +05:30
c36328d1a2 Do not pin DXIL validator 1.9 (Windows SDK dxc is 1.8) - PR #227 build fix, as on amd/linux 2026-12-06 04:59:58 +05:30
bf1be4abee Merge pull request #227
Build replacement shaders for both descriptor heap sizes
2026-12-06 04:59:44 +05:30
ba86d2a9e9 Merge pull request #240
Shaders: keep d16 bits of heap-picked integer views; nearest float for normalized buffer codes
2026-12-06 04:58:47 +05:30
e56227812e Merge pull request #296
WIP: Live ultrawide HUD placement and scale
2026-12-06 04:55:57 +05:30
9df6867be0 Merge pull request #153 2026-12-06 04:54:21 +05:30
219d404d33 Merge pull request #308 (linux) 2026-12-06 04:41:09 +05:30
68b97d6b8b Merge main (post-v1.1.4 batch) into linux-test 2026-12-06 04:41:08 +05:30
bc11a623f0 Merge pull request #320 v1.1.5 2026-12-06 04:39:25 +05:30
40ac7eb9bb Merge pull request #309 2026-12-06 04:39:24 +05:30
6f9458713d Merge pull request #306 2026-12-06 04:39:24 +05:30
ce4d4707e8 Merge pull request #301 2026-12-06 04:39:24 +05:30
9150c78a55 Resolve cross-page shader accesses against both guest mappings 2026-12-06 02:05:04 +03:00
d56dfa27b1 linux-test: fix created tests for Arc containers (merge) 2026-12-06 04:29:57 +05:30
138d3ada50 Merge main (v1.1.4 batch) into linux-test
# Conflicts:
#	crates/larp-gpu/src/pipeline/created.rs
2026-12-06 04:29:11 +05:30
908a1ca601 fix(linux): upgrade outdated D3D shader compiler
- Upgrade the known 2013 compiler from Microsoft SDK after verifying its hash.
- Warn about the outdated DLL and document shader model 5.1 failures.
2026-12-06 01:57:39 +03:00
eaf0d1c26c feat(hle): skip the intro movie or all Bink movies on request (LARP_SKIP_INTRO, LARP_SKIP_BINK)
Ported from VIctory-xmem (0a4aadf, 25b1a09). Off by default.
2026-12-05 23:57:03 +01:00
9c0d435c64 Build shader replacements for both descriptor heap sizes 2026-12-06 00:56:23 +02:00
449414335f vehicle/mousehook: add 1.5s auto-center, cinematic-aware handbrake, and Alt right-stick mode
Rebased onto main after #150 (`LiveStore` + `build_bindings` + `F10 -> Controls`)
so every setting and keybind runs through the single `LiveStore` / revision
cache with zero duplicate config state on the hot path:

- 1.5s smart vehicle camera auto-center (`AutoCenterMode`: `on`, `auto`, `off`
  in `LiveStore` + `controls.ini` `vehicle_auto_center` + `LARP_VEHICLE_AUTO_CENTER`):
  holds the vehicle camera free for 1.5s after mouse motion then smoothly
  auto-centers (GTA V PC feel). Editable live in classic `F10 -> Controls`
  (`off / auto (1.5s) / on`), selectable in new-look `settings/extra.rs`, and
  cycled live via `F8` (persisted via `LiveStore`) when the hook is active.
  Default remains `on` (stock title behavior).
- Seat-aware & Cinematic-aware driving Handbrake (`handbrake = Space`, live
  rebindable in `F10 -> Controls` including Mouse3/4/5 or `Delete` to clear)
  when `keyboard_driving = 1`: sends Xbox A (handbrake) and suppresses X on the
  shared key during normal driving, while automatically yielding back to Xbox X
  and preserving RMB/LMB as LT/RT when GTA VI's Cinematic Camera (`0x098c_1470`,
  `0x098c_1478` + `m_RenderState < 3`, or non-`camGameplayDirector` `0x099f_ece8`)
  is active so `ENABLE / DISABLE AUTO DRIVE [Space]` and `SPEED 1 / 2 / 3 [RMB] [LMB]`
  work directly as prompted.
- Alt + Mouse 360-degree Right-Stick mode (`right_stick_mouse = Alt`, live
  rebindable in `F10 -> Controls`, guarded against Alt+Enter/Alt+Tab and cleared
  on capture release) under `LARP_MOUSE_CAMERA=direct` for carjacking,
  lockpicking, and fishing minigames, plus circular unit-length normalization
  on I/J/K/L diagonal right-stick inputs.
- Cached radial-wheel & `WM_INPUT` map-open hints with 50 ms staleness guards
  so high-polling mouse input stays fast without risking stale state in hybrid
  controller + mouse sessions.
2026-12-06 00:55:36 +02:00
1558f093c6 Experiment with live ultrawide HUD placement and scale 2026-12-05 23:52:18 +01:00
7d96eac33d perf(gpu): speed up copy_runs, pieces::take, write-watch journal, and preparing hot paths
- Rewrite copy_runs with a sort-and-cluster fast path (thread-local scratch, generation-tagged run map, zero-alloc Spans::add) plus 2,000-case fuzz test against the reference implementation, cutting copy_runs from ~3.0-4.1 ms/f to ~0.05-0.50 ms/f.
- Add lock-free HAS_COPIES/NEXT_REST fast path to pieces::take and offload settled D3D12 buffer/span drops outside STATE via host::reap_now.
- Switch watch::JOURNAL to RwLock with atomic KEPT short-circuit for redundant ask_ahead/ask_ahead_done calls and 4 KiB -> 64 KiB page deduplication.
- Replace SipHash HashMap/HashSet with FastMap/FastSet and reuse thread-local scratch containers across host::preparing, shadow, pieces, and texevents.
2026-12-05 23:51:29 +01:00
ce70d35de3 Merge pull request #290 v1.1.4 2026-12-06 04:19:49 +05:30
1d3b00b5bd Merge pull request #242 2026-12-06 04:19:49 +05:30
7cd322fe17 Merge pull request #246 2026-12-06 04:19:49 +05:30
dc8215b7dc Merge pull request #259 2026-12-06 04:19:48 +05:30
c55675c17e Merge pull request #274 2026-12-06 04:19:48 +05:30
daa02aa4e2 Merge pull request #277 2026-12-06 04:19:48 +05:30
243e307419 Merge pull request #276 2026-12-06 04:19:48 +05:30
707d3c69cd Merge pull request #275 2026-12-06 04:19:48 +05:30
2b209f06c3 Merge pull request #263 2026-12-06 04:19:47 +05:30
4fbb90d0ba Merge pull request #264 2026-12-06 04:19:47 +05:30
38b3c2752b Merge pull request #265 2026-12-06 04:19:47 +05:30
77ca8e6e25 Merge pull request #271 2026-12-06 04:19:47 +05:30
eb7ea1f9b3 Preserve disjoint GPU write ranges during readback 2026-12-06 01:46:59 +03:00
8187e7bbed Docs: troubleshooting for controls.ini paths, every-launch recompile, blocky shadows, stutter v1.1.3 2026-12-06 04:13:52 +05:30
eca5641975 input(mouse): map Space to A handbrake, prevent RMB wheel strobe while driving, add F5/F6 hotkeys 2026-12-06 01:41:23 +03:00
dcad5e6020 Merge main (v1.1.3 final) into linux-test 2026-12-06 04:09:20 +05:30
f782a04701 Merge pull request #182
Add native 3440x1440 output (opt-in LARP_RESOLUTION=3440x1440)
2026-12-06 04:03:56 +05:30
18ef16d375 Merge pull request #150
controls: add live F10 -> Controls editor backed by controls.ini
2026-12-06 04:03:01 +05:30
8e294100f3 input: warn in the log which controls.ini paths were searched when none is found 2026-12-06 04:02:54 +05:30
a4be7f8acc Share shader container storage while saving the pipeline catalog 2026-12-06 01:30:22 +03:00
c5b0854949 controls: add live F10 -> Controls editor and 1-button Focus (LS+RS)
Rebased onto main (preserving keyboard_driving, taps, and maps_keys()
handoff) and adds a live Controls tab to the F10 settings overlay backed
by controls.ini:

- Live toggles/tuning (enabled, look sensitivity, invert_y, wheel_invert,
  vehicle_auto_center) plus '[' / ']' live sensitivity hotkeys while
  captured and comment-preserving upsert_ini_key persistence.
- Live key rebinding for all controls (keyboard keys plus Mouse3/4/5),
  Delete to unbind, Esc to cancel, and Standard / Standard FPS presets.
- Dedicated 1-button Focus / Special (LS+RS) binding (`focus = CapsLock`
  by default, rebindable to Mouse4/Mouse5/any key; suppresses default
  hardcoded Mouse4=LB / Mouse5=RB / Mouse3=RS only when explicitly bound
  so default upstream mouse buttons stay unchanged).
- Lock-free CONFIG_REV thread-local snapshot cache and AtomicBool
  settings::is_open() so hot paths never contend on mutexes.
2026-12-06 00:30:13 +02:00
4fc21bdbec shaders: e4a9f58e3acfcf7b, project quad lanes that miss the decal box
CS_ProjDecalResolve_Scalarized took, for a quad lane in the loop that failed
the decal's box test, the registers the pass's head wrote (0, cz, cx, cy, a
half of the decal's dword 0xd0 + P) as its texture coordinate for the coarse
derivatives. Those are world positions, not coordinates: at render widths
that are not a multiple of 128 (3440 x 1440 native, 2288 x 960 under DLSS
quality at 3440) the ground showed black 8 x 8 tiles. Now such a lane gives
the coordinate projected at its own position for this decal, as
c4183d3cbee28e8e (the vectorized resolve) already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 23:24:23 +01:00
dcdb19be80 shaders: rename local ByteAddressBuffer 'matrix' to 'mat_buf' for Windows SDK dxc.exe compatibility 2026-12-06 06:18:51 +08:00
24699cf8b6 lifecycle: detach IME via ImmAssociateContextEx on title windows for CJK Windows 2026-12-06 06:18:46 +08:00
01fc8c85c8 pipeline: distinguish loading cached pipelines from compiling in top progress overlay 2026-12-06 06:18:46 +08:00
4a13f4b934 Check save slot identity before retiring older versions 2026-12-06 06:13:52 +08:00