Repository navigation
0.10.0
Pre-release
Pre-release
ALVR PS4 v0.10.0 - changes since v0.9.3
PS4 app
- PSVR connection like official games. If the PSVR is off or unplugged, the app opens
the system's "connect your PlayStation VR" dialog (as Beat Saber does) and keeps asking
until the headset is ready, at start and while running. The old debug screen is gone. - Headset "searching" right away in SteamVR while the camera tracking is not
initialized yet (at start, or after coming back from the PS menu), instead of showing a
frozen pose. - Lobby: headset lost warning. When the camera loses the headset for 3 seconds (or
tracking is not initialized), the lobby fades to black with the message "Headset not
detected by PSCamera." It fades back when the headset is seen again. - Play area centre set when SteamVR connects: the centre goes where the headset is at
that moment (direction and floor height unchanged). Afterwards, SteamVR's own recenter
(hold Start, the system button) is the way to recenter. Can be turned off in the
settings ("Center on the headset at SteamVR start"), for example in tracker mode so that
Space Calibrator's calibration survives SteamVR restarts. - First launch wizard: on the first launch, and right after a settings Reset, a panel
asks for your height, standing straight, with a Confirm button; on the first launch the
PC is searched for only after that. It can be used with a PS Move or the DualShock 4.
Without any of them turned on, it goes on by itself after 20 seconds with 1.70 m. - 90 Hz: the PSVR now runs at 90 Hz and the PC streams 90 frames per second, at the
same resolution (new setting "Refresh rate", 90 Hz by default; 60 Hz keeps the previous
mode, the PSVR at 120 Hz with each frame shown twice). If the console refuses 90 Hz, the
app falls back to 60 by itself. The setup sets ALVR's preferred FPS to 90. - 90 Hz without drops, and 80 Mbps: at 90 Hz the PS4 dropped frames in busy scenes
(Beat Saber songs: 75-86 fps, up to 100 ms of latency). Measured with the new video
bench on a Beat Saber recording, the hardware decoder was fast enough; the app was
waiting on it the wrong way. Now 90 fps hold without drops up to about 130 Mbps, and the
time from the arrival of a frame to its display on the PS4 fell from about 45 ms to 28
ms. The setup sets ALVR's bitrate to 80 Mbps (was 60) for a sharper picture. - Faster video conversion: the decoded picture is converted at a higher priority, and
the conversion was reworked to move half as much memory (the picture is written straight
to memory, bypassing the CPU cache) with faster CPU instructions of the PS4's processor.
It lowers the latency added by the PS4 and leaves room for 90 Hz (same resolution and
bitrate). - DualShock 4 in the lobby: tracked by its light bar like the PS Moves, and shown as a
wireframe model of the real controller, in the same blocky style as the PS Moves, with
everything it reports: buttons, sticks, L2 / R2, fingers on the touchpad and vibration
(L2 / R2 drive the motors in the lobby, to try them). Options opens the settings, and it
points at them with a laser from its light bar, Cross to click. Not sent to SteamVR.
First version: its battery level is not shown yet. - Two tracked controllers, PS Moves first: the PS4 tracks only two controllers in all,
so the PS Moves come first: with both Moves on, the DualShock 4 is not tracked (its
light bar goes back to normal) and a Move turned on takes its place. An untracked
DualShock 4 is shown still, in grey, in front of the play area with "Not tracked", its
buttons still visible and working. - Other users' controllers: controllers of other users logged in on the console are
shown in the lobby with the user number, and tracked when there is room. - Settings panel in the lobby (short press on Start, or Options on the DualShock 4):
appears in front of you, used with a laser from the PS Moves (trigger to click) or the
DualShock 4 (Cross). Settings: your height (metres and feet; stand straight when you
change it, the floor is placed from the headset at your eye height, and the resulting PS
Camera height is shown and saved), headset prediction, controller prediction, resolution
and refresh rate (marked "restart required", in orange once changed: they apply when the
app is started again), centre at SteamVR start (on/off), Close, and Reset (click twice)
to restore every setting. The info panel now ends with "Press Start (PS Move) or Options
(DualShock 4) to open settings". - PS Move models in the lobby show the buttons you press at their real place, and the
trigger as a "T" that follows how far it is pulled. - PS Move battery shown under the L/R letter of each controller as 4 dots, rounded
like SteamVR's gauge (red when low, a lightning bolt while charging), and sent to
SteamVR. The PS Move only reports 6 levels, so the percentage moves in 20 % steps. - Controllers lost by the camera now show as "searching" in SteamVR (hidden) after 10
seconds instead of disconnected, and their buttons keep working. A PS Move that is off
stays disconnected. - Settings saved in the PS4's save data instead of a file in
/data/alvr-ps4: they
show up in Settings > Application Saved Data Management as "ALVR PS4 - Settings", per
user, and can be copied or deleted there like any game save. The old file is no longer
read: the first launch shows the height wizard again and the PC must trust the PS4 again
(new client name). - Headset tracking no longer "jelly" in SteamVR: the headset position sent to SteamVR
is now predicted to the moment the picture rendered with it is shown in the PSVR (40 to
70 ms later), as the official ALVR clients do. Before, SteamVR drew the world where the
head was that long ago: turning looked right (the PS4 corrects the rotation), but moving
the head made the world lag and float as if the position were smoothed. The lobby and
PSVR games were not affected. New setting "Headset prediction" (share of the latency
predicted, 40 % by default; Off = as before). - Smoother streaming (frame pacing): frames from the PC are now handed to the PSVR in
step with its display, one per refresh, like PSVR games do, with one frame kept in
reserve. Before, each frame was shown as soon as it was ready; small variations in
network, decoding and conversion times made some frames arrive a refresh late and the
next one replace them, a constant judder at 90 Hz (worse on a base PS4) that the lobby
did not have. Costs about one frame of latency (two for a moment after the PC or the
network delayed some frames). - The UDP debug logs are only sent by development builds.
PC setup (ALVR-PS4-Setup.bat)
- ALVR is downloaded again on every install and the download is deleted afterwards (no
more copy kept in the TEMP folder; the one left by earlier setups is removed). - The streamer folder is now called
ALVR-PS4_PC-Streamer(an existing
alvr_streamer_windowsfolder from an earlier setup is renamed). ALVR-PS4-Reset.batin that folder deletes everything in it and reinstalls ALVR
from scratch with the default PS4 settings (the PS4 must be trusted again).ALVR-PS4-Tracker-Mode.bat: switches to a tracker mode to use the PS Moves with
another SteamVR headset (the PSVR becomes a tracking reference, the PS Moves Vive
trackers, all in their own "PSMoves" tracking system for OpenVR Space Calibrator), and
back.ALVR-PS4-Audio-Cable-Toggle.bat: disables the virtual audio cable (VB-Cable or
Virtual Audio Cable, i.e. its extra speaker and microphone in Windows) together with
ALVR's microphone, or enables both again. Only when you run it; the setup and the reset
keep the cable as it is. Works like Disable / Enable in the Windows Sound settings.- PSVR and PS Move icons in SteamVR: the headset and the controllers get their own
status icons (off, ready, searching animation, standby, alert, low battery, error), in
SteamVR's style, so SteamVR shows them with its green/blue gradient. In tracker mode the
PS Move trackers use the PS Move icon too. - SteamVR no longer expects a battery in the PSVR headset.
ALVR driver patches
- Controllers "searching" instead of disconnected when the camera loses them, with
working buttons (see above). - Late controller activation fixed. ALVR gave SteamVR only 1 second to activate the
controllers when the PS4 connects; when SteamVR was slow (just started, many drivers,
another headset), the controllers showed up but never moved or reacted until SteamVR was
restarted. They now work as soon as SteamVR activates them.
Development
- Video bench (
tools/video_bench.py, Dev build): encodes test clips on the PC with
the same encoder settings as ALVR (from a recording made in the ALVR dashboard), plays
them on the PS4 through the real decoder and conversion, and measures decoding,
conversion and latency, to find the best stream settings. - Development builds install as a separate app, "ALVR PS4 (Dev)" (title ID ALVR00002, DEV
icon), next to the stable one.