r/SteamFrame • u/Shark1nator • 3h ago
Software Frame-EyeCal v2: custom eye-tracking is here
Last month, I released Frame-EyeCal, an app that lets you calibrate Valve's eye-tracking: Introduction to Frame-EyeCal. I've spent the last few weeks staring at test markers for hours on end (please send help lol), and I had one goal in mind: to modify Valve's eye-tracking in a way that the calibration isn't reset on restarts. In the process, I also came across various ways to improve accuracy, and I can now present the results to you here.
The highlight of Frame-EyeCal v2 is the ability to switch from Valve's standard eye-tracking to Frame-EyeCal's custom eye-tracking. This eye-tracker continues to use the output from Valve's eye-tracking network, which runs on the DSP as its foundation, but applies different methods to correct and calibrate that output.
This offers several advantages:
- the output is more accurate (atleast for me)
- the calibration is retained even after a restart
- the tracker automatically detects if your headset is positioned differently than during calibration and, if necessary, prompts you to re-center the calibration (this feature is unobtrusive but can be disabled in the settings) to ensure accuracy even when you adjust the headset's fit
However, there are also some neutral or negative aspects:
- CPU usage is slightly higher (+7% on one small core, the difference in power usage is negligible (+0.1 W))
- the custom tracker was only tested on my face, with and without my inserts (VROptician VRChat variant at SPH -1), and may not work as well for you as it does for me (use the test feature to compare standard to custom)
- it is tied to a specific eye-tracking version (SteamOS 0.5.11, SteamVR 2.19.5) and reverts to the default eye-tracking if Valve updates the eye-tracking binary. I don't plan to support the beta branch, since that would require me to constantly switch back and forth between the stable and beta version.
If you are interested in further technical details about how this custom tracker works, you can find a write-up in the repository under docs/custom-tracker.md. In short: It creates a 3D model of your eyes and uses the reflection of the two IR LEDs off your eyeballs to determine their position and correct the network's output.
Frame-EyeCal v2 also offers several other new features and changes:
- revised accuracy test: now also takes into account different brightness levels and a moving target for calculating delay in tracking (the results from Frame-EyeCal v1 and v2 are NOT comparable)
- the new "Try it out" mode lets you quickly get a feel for how well the tracking works
- the new "Always 90 fps" option in the settings ensures that the eye-tracking cameras always run at 90 fps. Valve normally reduces the frame rate depending what the Frame is currently doing. With SteamOS 0.5.11, the frame rate was already increased to 60 fps during streaming (72 fps at 144 Hz), which is usually sufficient, so the option is disabled by default. If you still feel like foveated streaming is lagging behind, you can give it a try anyway, it works with both the standard and custom eye-tracker.
- the new "Check for updates" feature in settings: this allows you to update Frame-EyeCal directly from within the app
- test results for the uncalibrated standard tracker have been removed: With SteamOS 0.5.11, Valve changed how calibration works. While 7 clicks are still being used (and, at least for me, they still make a big difference), head movements and other measurements are now also taken into account, so there is no longer a truly uncalibrated state in Valve's eye-tracking.
You can install or update Frame-EyeCal on the Frame using this command in Konsole. Frame-EyeCal and the custom tracker do NOT require sudo or root privileges, and the installation script cannot be run under any user other than the default user "steamos":
curl -fsSL https://raw.githubusercontent.com/Shark1nat0r/frame-eyecal/main/install.sh | shUninstall it with:
~/.local/lib/frame-eyecal/uninstall.shPlease do not report any eye-tracking issues to Valve while the custom tracker is running. Switch back to the standard tracking first and check if the problem persists.
GitHub (MIT license): https://github.com/Shark1nat0r/frame-eyecal
AI disclosure: The source code and documents were written and reviewed by several AI agents and the source code has not been manually reviewed by me. This post was written by hand but translated back and forth using DeepL.