github mauricio-gg/vitaki-vitarps5 v2.0.0
VitakiFork v2.0.0

latest releases: v4.2.2, v4.2.2-beta.2, v4.2.2-beta.1...
11 months ago

VitakiFork v2.0.0

Enhanced PlayStation 5 Remote Play for PS Vita

Built with modern UI, optimized performance, and quality-of-life improvements.

๐Ÿ“ฆ Installation

  1. Download VitakiFork-v2.0.0.vpk below
  2. Transfer to your PS Vita (via USB or FTP)
  3. Install using VitaShell (press X on the VPK file)
  4. Launch from LiveArea

What's Changed

Overview

VitaRPS5 is a PS Vita Remote Play client for PS5, built on the proven Chiaki streaming stack with significant enhancements focused on latency reduction, controller responsiveness, and a modern PlayStation-themed UI.

๐ŸŽฎ Performance & Latency Improvements

Major Chiaki Core Optimizations

Thread Priority & CPU Affinity Tuning

  • Input thread priority increased to 96 (from default) and pinned to CPU 1 to avoid contention with media processing (vita/src/host.c:1194-1195)
  • Audio thread priority set to 64 and pinned to CPU 0 for consistent audio mixing without dropouts (vita/src/audio.c:144-145)
  • Video decoder thread priority 64 and pinned to CPU 0 for optimal hardware acceleration (vita/src/video.c:691-692)
  • Result: Input processing now takes precedence over all other tasks, reducing controller-to-network latency

Input Polling Optimization

  • Reduced input polling interval from 5ms to 2ms - effectively 500Hz sampling rate (vita/src/host.c:1203)
  • Adaptive sleep alignment prevents CPU waste while maintaining tight sampling
  • Controller state changes are detected and transmitted 2.5ร— faster than before

Network Receive Queue Optimization

  • Trimmed Takion reorder queue from 128 to 64 packets on Vita builds to reduce buffering latency (lib/src/takion.c:47)
  • Added overflow logging with rate limiting to monitor packet loss without spam
  • Implemented automatic drop detection and recovery for degraded network conditions
  • Result: Lower end-to-end network latency, especially on clean connections

Packet Loss Fallback System

  • Automatic bitrate reduction when frame drops detected (Ultra Low โ†’ 800 Kbps emergency mode)
  • "Reconnecting..." overlay with seamless resume instead of crashing to menu
  • Keeps controller input flowing during recovery to avoid input gaps (vita/src/host.c:1248-1252)
  • Up to 2 automatic retry attempts before returning to menu

Video Pipeline Optimizations

  • VBlank wait disabled during streaming to eliminate vsync latency (vita/src/video.c:872)
  • Frame presentation uncapped for minimal display lag
  • 30 FPS lock by default reduces bandwidth and decode workload (configurable to 60 FPS in settings)

Measured Impact

According to docs/LATENCY_QUICK_WINS.md, these optimizations deliver:

  • 20-40ms latency reduction (realistic estimate)
  • Input lag reduced from ~20-30ms to ~10ms (controller polling improvements)
  • Network handling optimized for both local and remote connections

๐ŸŽจ Modern UI Redesign

VitaRPS5-Style Interface

  • Clean card-based console selection with PS5/PS4 visual indicators
  • Professional PlayStation-themed color scheme (blues, whites, sophisticated grays)
  • Wave-animated navigation sidebar with collapsible menu
  • Individual digit PIN entry screen for console pairing

Enhanced Console Management

  • Automatic console discovery on local network
  • Manual remote host configuration with static IP support
  • Console wake flow with animated progress and 30-second timeout
  • One-tap streaming start when console wakes (no double-press required)

Settings & Configuration

  • Tabbed settings page (Streaming, Controller) with L/R navigation
  • 3 fully customizable controller preset slots (Custom 1, Custom 2, Custom 3)
  • Immersive fullscreen controller mapping screen with procedural Vita diagrams
  • Latency mode selection: Ultra Low, Low, Balanced, High, Max (targeting 1.2-3.8 Mbps)
  • Fill Screen toggle and Force 30 FPS option

๐Ÿ› Bug Fixes & Stability

Controller Input Fixes

  • Resolved race condition preventing controller input during streaming
  • Properly separated UI and input thread buffer access
  • D-pad navigation no longer double-processes when nav bar focused
  • Focus manager prevents input leaking between UI zones

Connection Reliability

  • Fixed instant disconnection bug from upstream
  • Console re-pairing now properly deletes old registration data
  • Remote Play crash/in-use detection with user-friendly hints
  • Improved error handling for network timeouts

UI Polish

  • Fixed content overlap with navigation pill
  • Profile page layout corrected (Y=60 โ†’ Y=80)
  • Triangle icon in menu pill matches PlayStation conventions
  • 48px navigation icons with optional text labels

๐Ÿ“Š Technical Details

Latency Breakdown (estimated)

  • Total latency: ~100-140ms remote (down from 150-200ms), ~50-70ms local (down from 80-100ms)
  • Input lag: <10ms (down from 20-30ms)
  • Video decode-to-display: ~30ms
  • Network RTT: Variable (depends on connection)

Platform Constraints

  • PS Vita: 960ร—544 display, quad-core ARM Cortex-A9, 512MB RAM
  • Hardware H.264 decoder (SceVideodec) for video
  • vita2d for all rendering
  • Dual CPU cores: CPU 0 for media, CPU 1 for input sampling

Chiaki Protocol Enhancements

  • Fast restart mechanism for packet-loss recovery
  • Cached controller state preservation across reconnects
  • Session restart API for bitrate negotiation without full disconnect
  • FEC error concealment from Chiaki base library

๐Ÿ™ Credits

Core Contributors:

  • @ywnico - Original vitaki-fork: audio, controls, external network, wakeup, critical fixes
  • @AAGaming00 - Foundational Chiaki PS Vita port
  • @solidem (mauricio-gg) - UI redesign, latency optimizations, build automation

Built With:


๐Ÿ“ฆ What's Included

  • VitakiForkv0.1.XXX.vpk - Installable Vita package
  • Runtime logs at ux0:data/vita-chiaki/vitarps5.log
  • Config file at ux0:data/vita-chiaki/chiaki.toml
  • Full source code (AGPL v3 license)

๐Ÿš€ Next Steps

See docs/INCOMPLETE_FEATURES.md for planned enhancements:

  • Further latency optimization (decoder tuning, frame pacing)
  • Fully configurable controller button mapping (per-button customization)
  • Manual host deletion from UI
  • In-stream overlay menu for settings adjustment without disconnect

๐Ÿ› ๏ธ Build Information

  • Build System: Docker + VitaSDK
  • Version: v2.0.0
  • Commit: 9aaf09d
  • Build Date:

Built with โค๏ธ for the PS Vita community over 3+ months of design and development.

โ˜• Support development: Buy Me a Coffee

Don't miss a new vitaki-vitarps5 release

NewReleases is sending notifications on new releases.