Repository navigation
0.11.0
Pre-release
Pre-release
ALVR PS4 v0.11.0 - changes since v0.10.0
PS4 app
- Smoother stream with lower latency (automatic, no setting). Tested in Beat Saber:
about 60 ms from head motion to photons, with almost no stutter.- Frames that arrive bunched together (Wi-Fi, PC) no longer fill the small queue in
front of the decoder: a dropped frame froze the picture until the PC sent a full new
one (up to 32 times per 5 seconds in a game). Frames are only dropped if the decoder
really cannot keep up. - Each frame is shown at a time computed from the PC's very regular frame clock plus a
margin that follows the network's actual jitter, instead of as soon as it is ready:
no more repeated-then-skipped frames when frames come a little irregularly. A small
tolerance around that time removes the stutters that were left (20-40 per 5 seconds
before, 0-5 now). - Frames are handed to the headset's compositor just before it reads them: they used to
wait one more refresh (11 ms). - A safety net shows the newest frame if frames ever pile up.
- Frames that arrive bunched together (Wi-Fi, PC) no longer fill the small queue in
- 60 Hz setting: lower latency - At 60 Hz (60 fps shown twice each at
120 Hz, like PS VR games) the decoder holds each frame for less time, about 17 ms less.
60 Hz is the smoother choice for games the PC cannot run at 90 fps. - Performance overlay: a new setting shows, below the centre of the view while playing:
console (PS4 or PS4 Pro), refresh rate, bitrate, frame rate, latency, decoding time and
the wait before display, and the frames dropped, repeated, late or lost in the last second
(in orange when there are some). Off by default. - Height calibration: a "Calibrate" button in the first launch wizard and in the
settings opens a panel with two pictures; do either:- touch the floor with a PS Move's ball and pull its trigger: the floor is measured where
it really is (the PS Camera must see the floor; the DualShock 4 is not accepted, its
tracking is not precise enough); - spread your arms straight out to the sides holding both PS Moves pointing straight up
and pull both triggers: your height is measured from your arm span.
The panel shows whether the camera sees what it needs, and why an attempt was refused.
Then it goes back to the wizard or the settings with the height found, which can still be
fine-tuned with - / +. Cancel goes back without changing anything.
- touch the floor with a PS Move's ball and pull its trigger: the floor is measured where
- Your height follows the headset: the settings show the height the headset is at now
above the floor, and - / + change it from there. The height to floor conversion was
corrected (the floor was about 5 cm too low for the height entered). - First launch: no grid until the height is set: the floor is only a guess until then;
the grid appears once the height is set with - / + or measured. Confirm without touching
it places the floor from where the headset is at that moment. The game stays paused in
the lobby while the panel is open. - Headset lost / not tracked yet in the lobby: when the camera loses the headset, the
grid and the texts fade to black but the PS Camera and the controllers stay shown where
they are. Before the headset is tracked (at launch, after the PS menu), only the PS Camera
is shown, ahead, blinking blue and red. If that lasts more than 10 s while the headset
moves (worn), the PS4's "confirm your position" screen opens, once per launch (as VR
Worlds does). - Back to the lobby while playing: hold Cross on the left PS Move or Circle on the
right one (the buttons the Vive wand mapping leaves free) for 1 second: the lobby comes
back, with the settings; hold it again to return to the game. SteamVR keeps the headset
and the controllers, and game audio and the microphone keep working; the buttons are not
sent to the game meanwhile, its vibrations are ignored and the video is not decoded. - Vibration strength: a slider in the settings, from "Off" to full strength (the
default), for the PS Moves and the DualShock 4, in games and in the lobby. Releasing it
gives a sample buzz. - Long vibrations no longer stop by themselves - The PS Move stops its
motor a few seconds after the last command; a long vibration is now sent again every
second. - Scrolling settings: the rows scroll (grab the panel with the laser and drag, grab the
scroll bar on the right edge or click its track, or the DualShock 4's right stick). The
title and Close stay in place. - Play area: SteamVR now gets Sony's recommended PS VR play area (1.9 m wide, 2.4 m deep,
from the PS VR manual) instead of 2 x 2 m. Games that read the play area size see it
(SteamVR's own bounds stay hidden, as before). - Latency graphs in the ALVR dashboard: the PS4 sends ALVR its per-frame statistics,
so the dashboard's Statistics tab shows the latency and frame rate graphs. - The "open settings" hint in the lobby names only the controllers that are connected
(Start on a PS Move, Options on the DualShock 4), and asks to connect one when none is. - HEVC streams are decoded too (more slowly than H.264, which stays the setting).
- Fixed: changing only the headset prediction in the settings was not saved.
- Fixes from a full code review:
- A PS Move could keep vibrating after a game's vibration ended.
- Coming back to the game from the lobby (or after the PC reconnected) could flash, for a
frame or two, the last picture from before. - Holding both lobby buttons switched to the lobby and straight back; it now switches
once. - The extra controller prediction stayed on in the lobby after going back to it while
playing (the Moves and the lasers were drawn ahead of the hands). - The settings are saved to a temporary file first: closing the app while it saves can no
longer erase them. A save that cannot be read at start is no longer replaced with the
defaults (which also gave the PS4 a new name the PC had to trust again). - The microphone came back 3 times too slow and low-pitched when it had failed to open
once earlier; it also reopens by itself when it stops working. - The headset is opened again every second if the first try fails after it was switched
off and on (it could stay untracked until the app restarted). - A button press or release could be lost for good when the network stalled for a moment
(a trigger could stay held in SteamVR). A trigger resting near 90 % no longer clicks on
and off. - In the first launch wizard, the 20 s automatic continue also works from the
calibration, and ignores PS Moves the camera does not track. - The vibration slider no longer takes clicks meant for the scroll bar.
- Robustness against malformed data from the network (a crafted packet could crash the
app), impossible stream settings (refused with a log line instead of a crash) and memory
allocation failures.
PC setup (ALVR-PS4-Setup.bat)
- New PSVR icons in SteamVR, drawn by leonmc330 (https://github.com/leonmc330/): every
state of the headset icon (ready, off, standby, searching, alerts, low battery, error) is
made from his drawing, in SteamVR's green and grey, with his red error badge (also on the
PS Move icons). Run the setup again to get them. - The play area keeps the camera's direction. After a reconnection, ALVR turned the
play area to where the headset faced before (it recenters on the last head position it
saw, which it keeps across reconnections). The setup now sets ALVR's position and
rotation recentering to Disabled: the PS4 places the play area centre itself. Run the
setup again to get it (the PS4 stays trusted), or set both in the dashboard (Headset
tab). - Running the setup again keeps the PS4 trusted. It used to replace the ALVR settings
with the template, which forgot the trusted PS4. (The Reset .bat still starts from
scratch.) - A virtual audio cable turned off is no longer replaced - The setup
installed VB-Cable when Virtual Audio Cable was turned off with its driver unloaded; it
now counts as a cable that is turned off (ALVR's microphone off). - The ALVR dashboard started at the end of the setup, and of the tracker mode switch, now
runs as your user instead of as administrator, so SteamVR does not start as
administrator either. - The setup refuses to run from inside the ALVR streamer folder under another name (a
renamed copy of a .bat there would have reset the whole install). - An install folder given as a relative path is no longer installed under
C:\Windows\System32 after the administrator prompt; declining that prompt now says so
instead of closing. - An install interrupted during the extraction is completed on the next run.
- Firewall or SteamVR registration failures are reported instead of printing success.
Development
- Dev build log: the 5 s video line can be 512 characters and reports the display pacing
(margin, wait, late frames, compositor misses), frames never shown, and how regularly
frames arrive from the PC. The console model is logged at start. - Dev build: a "Surface test" button in the height calibration checks the floor offsets
against a tape measure, on a controller resting on a table the camera sees. tools/deploy.pyreports a failed or incomplete upload with an error (exit code 1).- Video decoding investigated: the system video decoder available to apps is software
(CPU + GPU compute) in every mode, including the PS4 Pro's own, and HEVC decodes more
slowly than H.264; the stream stays on H.264. A shorter decoder pipeline on smaller
frames decoded faster but delivered frames irregularly (judder), and was dropped.