Repository navigation
NFSU2 Revived v0.15.23
What's Changed in v0.15.23
Selective Motion Blur Suppression for Camera Control
- Motion Blur Preserved for Nitrous & High-Speed Driving: Motion blur is an authentic visual effect in NFSU2 intended for high-speed forward driving and Nitrous (NOS) boost. Camera look rotation no longer smears the screen.
- Dynamic Camera Look Blur Suppression: Refactored the motion blur suppression pipeline in
roam_android.candcamera_stick.rs. Motion blur (0x00870cdc) is now suppressed only while camera control is actively orbiting (s_look_activeor within a 3-frame settle cooldowns_look_cooldown) or when the vehicle is stopped (spd < 1.0f). When driving forward or firing nitrous without panning the camera, native motion blur remains fully active:// Disable motion blur ONLY for camera control (orbiting view) and when car is stopped uint32_t car = get_driving_car(); float spd = car ? get_car_speed_mps(car) : 0.0f; static int s_look_cooldown = 0; if (s_look_active) { s_look_cooldown = 3; } else if (s_look_cooldown > 0) { s_look_cooldown--; } int cam_control_active = s_look_active || (s_look_cooldown > 0); if (car && rh_mem_committed(0x00870cdcu, 4)) { if (cam_control_active || spd < 1.0f) { MR32(0x00870cdcu) = 0; // camera control or stopped: disable blur } else { MR32(0x00870cdcu) = 1; // camera at rest + driving/nitrous: enable blur } }
- D3D9 Rust Camera Engine Synchronization: In
camera_stick.rs,apply_framedynamically clears motion blur during active camera matrix rotations and restores guest memory state upon presentation, eliminating full-screen blur smearing while preserving nitrous visuals:// Motion Blur Suppression for Camera Control in Rust let mb_ptr = guest_base.add(G_MOTION_BLUR as usize) as *mut u32; let orig_mb = *mb_ptr; self.saved_motion_blur_val.store(orig_mb, Ordering::Release); if orig_mb != 0 { *mb_ptr = 0; self.motion_blur_modified.store(true, Ordering::Release); } else { self.motion_blur_modified.store(false, Ordering::Release); }
Startup Boot Halt Fix (NULL ICALL at 0x005c5c00)
- Resolved Unresolved ICALL on Boot: Fixed a startup crash where the game halted with
Guest boot halted: ICALL unresolved 0x00000000 from 0x005c5c00. Screen post-processing passes query surface descriptions viaIDirect3DSurface9::GetDesc(0x005c5c00), which dereferences a null pointer when offscreen render targets (0x0086eb10/0x0086eb88) are not yet allocated on boot. - Graceful Null Indirect Call Recovery: The recomp runtime now gracefully recovers from unresolved indirect calls targeting
0x00000000or originating from0x005c5c00, preventing the guest loop from halting and allowing startup to proceed normally:// Graceful recovery from NULL indirect calls (e.g. uninitialized render target GetDesc at 0x005c5c00) if (from == 0x005c5c00u || va == 0u) { static uint32_t s_last_from = 0; static uint32_t s_log_count = 0; if (s_last_from != from || ++s_log_count <= 10) { s_last_from = from; NFS_RUNTIME_LOG(ANDROID_LOG_WARN, "NFSU2", "Recovering gracefully from unresolved %s %08x at %08x to prevent game halt", kind, va, from); } g_eax = 0; return; }
Garage Two-Finger Touch Rotation
- Native Two-Finger Garage Car Orbit: Replaced virtual right analog stick emulation in the garage with native two-finger horizontal drag rotation and inertial momentum. Fixed inverted horizontal rotation direction so the car follows the player's swipe direction naturally:
// 2-finger scroll with inertial momentum in garage car viewer if (!racing && isTwoFingerGarageDrag && e.getPointerCount() >= 2) { float curDistX = Math.abs(e.getX(0) - e.getX(1)); float curCenterX = (e.getX(0) + e.getX(1)) * 0.5f; float dx = (curCenterX - garageTwoFingerLastCenterX) / (float) getWidth(); garageTwoFingerVelocity = dx / Math.max(0.001f, dt); garageTwoFingerLastCenterX = curCenterX; AdhocRoamClient.nativePointerMiddle(dx, 0f, 1); return true; }
URL Stadium Race Optimization
- Bayview Speedway Far Plane Clamping: Bayview Speedway URL tracks (4701..4705) and circuits previously hardcoded a 15,000m (15km) far clipping plane, forcing the entire city and stadium to render simultaneously. Clamped far plane to 280m in URL tracks and 350m in open world roam.
- Rearview Mirror Duplicate Pass Suppression: Disabled redundant View 3 rearview mirror 3D world rendering passes during stadium races, cutting scene draw calls in half.
- Stadium Crowds & Headlight Projectors: Suppressed grandstand crowd quads and redundant stadium headlight projectors in URL events:
// URL Race & World Far Plane Clamping & Mirror Suppression uint32_t track = rh_mem_committed(0x0089e7a0u, 4) ? MR32(0x0089e7a0u) : 0; int is_url = (track >= 4701 && track <= 4705); float max_far = is_url ? 280.0f : 350.0f; if (cam && rh_mem_committed(cam + 0xc0, 4) && MRF32(cam + 0xc0) > max_far) { MRF32(cam + 0xc0) = max_far; } // Suppress duplicate 3D world rendering pass in mirror view 3 if (rh_mem_committed(0x00870cf0u, 4)) MR32(0x00870cf0u) = 0;
Dynamic Linux EAS Thread Scheduling
- Removed rigid
pthread_setaffinity_npCPU pinning across game engine worker threads, allowing the Linux Energy Aware Scheduling (EAS) kernel governor to dynamically schedule threads across big, medium, and efficiency cores without thread migration stalls.
Full Changelog: v0.15.22...v0.15.23