Skip to content
PrincessGhostfacePublic

About

Unofficial GeForce NOW cloud gaming client for the Xbox 360 (homebrew)

Topics

Resources

Stars

31 stars

Watchers

2 watching

Forks

Latest commit

 

History

68 Commits

Folders and files

Repository files navigation

XenonNow logo

XenonNow

Cloud gaming on the Xbox 360. XenonNow is an unofficial GeForce NOW client that runs as a homebrew app on a modded Xbox 360. It signs in to your account, shows your library and the catalog, and streams your PC games to the console with sound and controller input.

XenonNow's game list on the Xbox 360 A game's page in XenonNow

Download the latest version · Discord · Report a bug

Not affiliated with or endorsed by NVIDIA. You need your own GeForce NOW account. NVIDIA's terms of use don't allow unofficial clients, so consider using a spare account.

Why

It started when I saw Orbita and wanted to find out, for fun, how far the Xbox 360 can be pushed: could a 2005 console run my whole modern library? Two weeks later it does. The 360's three PowerPC cores decode the H.264 stream in software, with (half) hand-written VMX128 code for the hottest parts of the decoder.

Features

  • Sign in on your phone: scan the QR code on the screen or type the short code at the link shown. Where a GeForce NOW partner runs the service (ABYA in Brazil, Digevo in Latin America, GFN Korea and others), pick its login with left/right on the sign-in screen.
  • Your games: Home has Continue playing, Popular on XenonNow, Free to Play, RTX ON and genre rows (Action, RPG, Shooter, Racing and more). Library (last played first) and All games (most popular first) are searchable grids, and each game has its own page with its art and description.
  • Streaming: video at 960 x 544 or 1280 x 720 and 30 fps, Opus sound, and your controller sent straight to the game. Games start in GeForce NOW's console mode, so Steam opens in Big Picture.
  • Continue playing: Leave game running in the in-game menu takes you back to your games without ending the session. A game still running in the cloud, whether you left it here or started it on your PC or phone, shows first on Home with RESUME on its page. Starting a different game asks before it ends the running one.
  • Mouse and keyboard: for games and launchers that need them, Back + Start opens a menu with a stick-driven mouse cursor and an on-screen keyboard.
  • Settings: resolution, frame rate, max bitrate, server, deblocking (Auto skips it while the console falls behind), decoder threads and detailed logging for bug reports.
  • Server picker: Settings → Stream → Server is Auto (GeForce NOW picks the nearest) or one of the regions your login's provider lists, NVIDIA's or an Alliance partner's.
  • API proxy: for countries GeForce NOW doesn't serve, as in OpenNOW. Add a line proxy=host:port to settings.txt in the XenonNow folder (socks5://host:port and user:password@host:port work too) and turn on Settings → Account → API proxy. The game lists and starting games go through the proxy; sign-in and the stream itself connect directly.
  • Optional updates: XenonNow tells you when a new version is out, and Settings → Account → Update XenonNow installs it and restarts. Nothing installs unless you choose it, and Check for updates turns the check off.

Requirements

  • An Xbox 360 that runs unsigned code (RGH/JTAG, or BadUpdate)
  • A GeForce NOW account
  • A wired connection is best. On Wi-Fi, a lower max bitrate in Settings keeps the picture smoother.

Install

  1. Download the latest XenonNow-vX.Y.Z.zip from Releases.
  2. Copy the XenonNow folder to your console, for example to Hdd:\Apps\XenonNow or a USB drive.
  3. Launch default.xex from your dashboard or XeXMenu.
  4. Sign in with your phone, pick a game and play.

Stuck? Ask in #install-help on the Discord.

Reporting a bug? Turn on Settings → Account → Detailed logging, play until the problem happens, then post XenonNow.log and XenonNow.previous.log from the XenonNow folder in #bug-reports. XenonNow restarts after every game, so the previous log usually has the problem.

Controls

Where Button Does
Menus D-pad / left stick Move
Menus A / B Open / back
Menus LB / RB Change tabs
Menus Y Search
Menus Back Quit
In a game Back + Start Side menu: mouse, keyboard, leave game running, exit game
In a game Hold Back + Start for 3 s Force-quit the game

Known limits

  • The console decodes every frame on its CPU. 1280 x 720 plays well with Decoder threads at 4 (the default) and a max bitrate up to about 15 Mbps; the busiest scenes can still stutter. 960 x 544 is the smoothest.
  • 60 fps is experimental: the console can't decode that fast yet.
  • 1920 x 1080 is experimental too: it has 2.25 times the pixels of 1280 x 720, so it stutters and adds input lag.
  • The server can lower the bitrate when the connection struggles.

Building

Needs the Xbox 360 SDK (XDK, default D:\XDK\full\XDK), Python 3 and git.

tools\fetch_deps.cmd
python -I tools\build_ffmpeg.py
python -I tools\build_opus.py
build.cmd

The output is build\XenonNow.xex: copy it to the console as XenonNow\default.xex. python -I tools\loglisten.py shows the console's log on the PC, and tools\xbdm.py copies and launches builds over the network on consoles running xbdm.

A release attaches the zip and the bare XenonNow.xex: in-app updates download the XEX, check it against the SHA-256 GitHub lists and swap it in as default.xex, keeping the old one as default.xex.old. Set XENONNOW_VERSION in src/update.h to the release tag first.

Developer options are behind GFN_DEVELOPER_OPTIONS in src/settings.h. With it on, Settings gets Record next game, a decoder benchmark, 5 and 6 decoder threads, and a Screenshot button switch: pressing both sticks saves a screenshot to screenshots\ next to the XEX. Release builds turn it off: set CL=/DGFN_DEVELOPER_OPTIONS=0 before build.cmd.

How it works

  • Sign-in and sessions follow GeForce NOW's web client: OAuth device sign-in, then a CloudMatch session for the chosen game.
  • WebRTC from scratch: ICE, DTLS-SRTP (mbedTLS) and SCTP data channels, written for the console. It has no browser engine to borrow.
  • Video: FFmpeg 1.2's H.264 decoder from XBMC-360, patched to hand out each picture as soon as it's decoded, and split over decoder threads on the 360's hardware threads: GeForce NOW encodes two slices per thread, and each thread takes the next slice of a picture as it finishes one, so a thread with light slices (sky, a HUD) takes more instead of waiting. Four threads fill the second and third cores and leave the first to drawing and sound; a fifth and sixth can share it, but don't make it faster. Its CABAC decoder keeps its state in registers, because storing a value and loading it straight back stalls the 360's CPU for dozens of cycles.
  • VMX128: vmx/ has vector versions of the decoder's hot spots: motion compensation, the inverse transform (IDCT), the deblocking filter and memory prefetch. They are bit for bit the same as FFmpeg's C. VMX128 has no integer multiply, so the filters use shifts and adds.
  • UI: a 1920 x 1080 layout drawn on the GPU in Inter and Sora, scaled to 720p when the console outputs that.

docs/FEASIBILITY.md has the background: how GeForce NOW works, what the 360 can do and the original plan.

License

XenonNow's own code is under the MIT License. The third-party code below keeps its own license.

Third-party code

  • mbedTLS 2.28.10 (Apache-2.0), with tools/mbedtls-2.28.10-c89.patch for the SDK's C89 compiler
  • FFmpeg 1.2 from XBMC-360 (LGPL-2.1), only the H.264 decoder is used
  • pthreads-win32, Xbox port (LGPL-2.1), from the same XBMC-360 folder
  • libopus 1.5.2 (BSD-3), with tools/opus-1.5.2-c89.patch
  • Protocol details follow OpenNOW-vita (MPL-2.0)
  • The API proxy follows OpenNOW's session proxy (MIT)
  • The server picker reads the regions as OpenNOW-4Handhelds does (MIT)
  • Sync library uses the same account linking requests as OpenNOW's game account connections (MIT)
  • On Alliance partners, keyframes are also asked for over signalling, as OpenNOW-4Handhelds by dpadGuy does (MIT)
  • The HTTP reply fixes (chunk sizes, the 32 MB reply cap, redirect URLs) come from Rainbow98glitch's code review in #2
  • Inter 4.1 and Sora (SIL Open Font License 1.1, licenses/), baked into src/ui_fonts.h by tools/build_fonts.py

About

Unofficial GeForce NOW cloud gaming client for the Xbox 360 (homebrew)

Topics

Resources

Stars

31 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages