Restore long-distance camera focus with GPU picking #752

Closed
TheSlowly wants to merge 1 commit from TheSlowly/Slipstream:gpu-camera-focus-distance into main
Contributor

Disabling camera constraints already extended Alt-click focus picking according to render distance. However, the newer GPU picker used a fixed 1,024-metre ray, preventing focus on visible objects farther away.

The fixed 1,024-metre GPU ray was introduced in 2627dbb329 (“#702: GPU raster cursor pick”). It remained in the subsequent #704 picking rewrite, even though the camera-focus code still requested longer distances when constraints were disabled.

This passes the requested distance through to the GPU picker and checks that cached results cover the requested range before reusing them. Normal hover requests retain their existing 1,024-metre range; longer requests are generated only when needed.

Built & tested on Windows

Disabling camera constraints already extended Alt-click focus picking according to render distance. However, the newer GPU picker used a fixed 1,024-metre ray, preventing focus on visible objects farther away. The fixed 1,024-metre GPU ray was introduced in 2627dbb329 (“#702: GPU raster cursor pick”). It remained in the subsequent #704 picking rewrite, even though the camera-focus code still requested longer distances when constraints were disabled. This passes the requested distance through to the GPU picker and checks that cached results cover the requested range before reusing them. Normal hover requests retain their existing 1,024-metre range; longer requests are generated only when needed. Built & tested on Windows
Owner

Already implemented: the GPU pick request covering the full pick ray is in 33ad9b2b02 (on main and release/1.3), so this change is no longer needed. Closing.

Already implemented: the GPU pick request covering the full pick ray is in 33ad9b2b02 (on main and release/1.3), so this change is no longer needed. Closing.
sky_line closed this pull request 2026-10-18 02:59:19 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream!752
No description provided.