Turn Link's own motion vectors on by default.

DLSS, FSR 3.1 and frame generation get the real motion of Link and his equipment unless selective_motion = 0 is set. Its two status lines come every minute or two instead of every two seconds, now that every session writes them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-12 14:38:26 -05:00
parent 3123d40017
commit e6392f381f
2 changed files with 7 additions and 7 deletions

View File

@@ -32,11 +32,11 @@ static int owner_on;
static void owner_init(void *unused) {
(void)unused;
// NX2NAVI_SELECTIVE_MOTION (selective_motion; default 0, 1 on): off until it has been played. On, every guest
// NX2NAVI_SELECTIVE_MOTION (selective_motion; default 1, 0 off: the estimate from colour and depth). On, every guest
// submission walks the player's actor, equipment and models in guest memory (motion_owner_capture), each scene
// draw is looked up in that list (vk_fg_pose.inc pose_owner), and the player's meshes are drawn a second time
// into the motion vectors DLSS, FSR 3.1 and frame generation read.
owner_on = RT_V111 && rt_knob("SELECTIVE_MOTION", "0");
owner_on = RT_V111 && rt_knob("SELECTIVE_MOTION", "1");
}
int motion_owner_enabled(void) {
plat_once(&owner_once, owner_init, NULL);
@@ -259,7 +259,7 @@ void motion_owner_capture(MotionOwnerSnapshot *out) {
capture_model_buffers(out);
O.nbindings=out->count;
memcpy(O.bindings,out->bindings,out->count*sizeof *O.bindings);
if(O.captures%720==0) rt_log("motion direct: %u shape bindings from %u models",out->count,O.count);
if(O.captures%43200==0) rt_log("motion direct: %u shape bindings from %u models",out->count,O.count);
plat_mutex_unlock(&owner_lock);
qsort(out->bindings, out->count, sizeof *out->bindings, binding_address_order);
}
@@ -268,7 +268,7 @@ void motion_owner_present(void) {
if (!motion_owner_enabled()) return;
plat_mutex_lock(&owner_lock);
++O.producer_frame;
if (O.producer_frame % 120 == 0)
if (O.producer_frame % 7200 == 0) // on by default: a line every minute or two, not every two seconds
rt_log("motion ownership: %u models, %llu captures, %llu owned/%llu other queries, "
"%llu conflicts, %llu capacity misses, %u attachment rejections",
O.count, (unsigned long long)O.captures, (unsigned long long)O.owned_queries,