Skip to content
This repository was archived by the owner on Oct 4, 2026. It is now read-only.

SF4Enhanced 0.5.2 — peer to peer by default

Choose a tag to compare

@fabeloper fabeloper released this 17 Sep 09:39
· 2 commits to main since this release

Updated 17 Sep, 13:20. If you downloaded this earlier today, please download it again — the first uploads had bugs that only appeared on some networks.

  • A lobby could stall to about 1.5 frames per second, swallowing your inputs, if your router blocked the address check peer to peer uses. It now tries a few times, quietly, and uses the server relay if it cannot.
  • Peer to peer only worked for the first match of a session; every rematch silently fell back to the relay.
  • If the address check cannot reach the matchmaker, it now asks the match relay instead — a path any player able to hold a match can reach by definition.
  • Freezes caused by the connection dropping are now named in your log, with how long they lasted, instead of being invisible.

The first line of your log tells you which build you have. 2026-09-17 11:17 UTC or later is this one.

Rollback netcode for Ultra Street Fighter IV.

Play USF4 online with rollback netcode, lobby codes and spectating. No port forwarding, and nothing to configure on your router.

Install

  1. Download sf4e-0.5.2-win32.zip below
  2. Unzip anywhere
  3. Run SF4Enhanced.exe

Requires Ultra Street Fighter IV on Steam. The game is not included.
If SmartScreen warns you: More info → Run anyway (the build is unsigned).

⚠️ Read this or you will desync

In the game's graphics options, set "frames per second" / "imágenes por segundo" to Variable, and make sure both players use the same setting.

Mismatched settings make each machine advance the match by a different amount, and it falls apart within seconds. This is still the most common cause of desyncs.


Peer to peer, with the server as a fallback

0.5.2 connects the two players' PCs directly to each other by default. If a direct path cannot be opened — a strict NAT, a mobile connection, carrier-grade NAT — the match automatically falls back to our server relay and plays normally. You are never asked to forward a port, and you never have to pick.

In the menu: CONNECTION < PEER TO PEER / SERVER RELAY >, defaulting to peer to peer. Choose SERVER RELAY and all your traffic is routed through our server in Spain or Germany instead.

Why this matters: relaying costs latency, and the further you are from Spain or Germany the more it costs. Routing two players in the Americas or Asia through Europe and back can add well over a hundred milliseconds. Connecting directly removes that hop entirely.

Measured on a real match between two machines, same set, same evening:

Server relay Peer to peer
Ping 66–67 ms 16–17 ms
Worst spike 100–180 ms 35 ms
Samples over 100 ms several per minute 0 of 600, every window

Your own numbers will differ — that pair was on the same network. The gain is largest when you and your opponent are near each other and far from our servers, and smallest when the server already sits between you.

Peer to peer is new. It has been tested between machines on one network; it has not been widely tested across different home networks and NATs yet. If it cannot connect, the relay takes over and you should not notice.

Lobby fixes

  • Readying up before your opponent arrives now works. If you picked a character and pressed READY while waiting, your readiness was being erased the moment the other player joined — so the lobby could never reach all-ready and the match simply never started. You had to both be in the lobby before either pressed READY. Fixed.
  • Rematches no longer land in the training stage. P2 could not touch the stage selector, so their stage stayed at the default — and the moment they won and became P1, that default was what got sent. Every rematch won by P2 went to training. Either player can now choose a stage, and until you pick one your selector follows the stage the match is already using.

Stability

  • A crash that left no trace is now visible and survivable. When the netcode library hit one of its own internal checks it opened a Windows message box — which freezes the game thread, often behind a fullscreen window where you cannot see it — and then exited the process with a success code. Because that is a clean exit, no crash handler ran: no dump, no log line, nothing. Every crash of this kind since this project started has been invisible to us. It now writes the exact failing check to your log, and ends the match instead of the game.
  • Stray network packets can no longer kill your game. Any unrecognised datagram arriving on the match port terminated the process from inside a logging function — including packets the netcode had already decided to discard. Anyone on the internet can send a packet to that port. Now they are logged and dropped. Undersized packets are rejected before being read at all.
  • Character mix-ups are structurally impossible. Character picks are tied to the player who made them rather than to a seat, so leaving, rejoining in a different order, or a winner-stays rotation can no longer leave the two machines disagreeing about who is playing what.
  • Desync checks wait for the real confirmation point instead of assuming a frame a second old must have settled. On a poor connection that assumption could report a desync between two states that were never meant to match yet.

Diagnostics

  • Desync reports now say whether the two PCs were at different points in the match, which separates a frame-rate/settings problem from a genuine divergence — they need completely different fixes.
  • Connection stats in the log now summarise the whole ten-second window (min / average / max, and how many samples exceeded 100 ms) instead of sampling a single instant, which hid exactly the spikes players were reporting.
  • Your settings (connection, input delay, server) are remembered between launches.
  • The first line of every log records the build, read from the binary itself so it cannot go stale.

What's in this build

  • Rollback netcode with adjustable input delay (0–8)
  • Lobby codes — share a 6-character code instead of an address
  • Peer-to-peer connections with automatic server-relay fallback
  • Server selection — 🇪🇸 Spain or 🇩🇪 Germany for the relay and for lobby codes. Both players must pick the same one: lobby codes live on a single server.
  • Spectator mode
  • Honest desync handling — if the two games genuinely diverge, the match ends cleanly and says so

Privacy

The servers record aggregate, anonymous usage only — how many matches are played, how long they last, how busy each region is. No player names and no IP addresses are stored.

Status: BETA

Known rough edges:

  • Rare desyncs can still occur around knockouts / round transitions
  • Peer to peer is new and not yet proven across many different home networks
  • If your opponent's game closes just as a match begins, you can be left on a black screen and have to exit the match manually

If something breaks, the log at %APPDATA%\sf4e\logs\sf4e.log is what makes it fixable — please include it, from both players if you can. If your game crashed, %APPDATA%\sf4e\crash may hold a dump; that is even better.

Disclaimers

  • Not affiliated with, endorsed by or associated with Capcom. Street Fighter and Ultra Street Fighter IV are trademarks of Capcom. Unofficial, non-commercial fan project.
  • No game assets are included. You must own the game on Steam.
  • Use at your own risk — provided as-is with no warranty, and intended for private play with friends rather than official online modes.
  • Built on the sf4e project by adanducci.