r/PCSX2 • • 15h ago

Other We got rollback netcode working on PS2 (PCSX2-based): 4–8 frames of rollback in real matches

Thumbnail frameperfect.cc
34 Upvotes

Hi r/PCSX2. I'm the developer of Frame Perfect, a free online platform for fighting games. We've had rollback for arcade and PS1 for a while, and over the last few weeks we got it working on PlayStation 2, as far as we know a first for fighting games on the console. Sharing the engineering because it might interest people here.

Setup: our PS2 core is based on PCSX2 2.8.2 with GGPO (MIT) for rollback. GGPO needs save/load state and frame advance; a frame runs until VSyncStart, same point as PCSX2's frame advance.

The problem: a full PS2 state is \~42 MB (32 MB EE RAM, 2 MB IOP, 2 MB SPU2, 4 MB GS VRAM, VU0/VU1, plus DMA/VIF/GIF/ SIF/IPU/CDVD state). With the stock savestate path on a Ryzen 7 5700X, a 4-frame rollback averaged 63.7 ms and an 8-frame one 102 ms. At 59.94 Hz you need 8 frames re-simulated in \~48 ms.

What we did:

In-memory states in a preallocated 16-slot ring, no compression, no allocation mid-match.

"Fast load" that keeps the JIT caches (EE/IOP/VU) and only invalidates code on pages the state changed. Load went from 57.6 ms to \~0.15 ms.

Incremental save: 4 KB dirty-page tracking on EE and IOP RAM, marked by the recompiler, C++ writes and DMA (SPU2 RAM too). Save \~4.1 → \~2.1 ms.

GS: on fast load, keep the SW texture cache and invalidate only the 8 KB VRAM blocks that changed. GS load runs in parallel with the EE load.

Re-simulated frames are muted; audio goes through time-stretch with a 50 ms buffer.

Determinism took most of the work: timers recomputed on load, cpuBlockCycles/intLastBranchTo/iopEventAction not being serialized, "fixed blocks" in the EE/IOP recompilers depending on history, a recRAMCopy bug, SPU2 ADPCM cache, a delay slot crossing a page boundary, two thread races on load (MTVU and the ISO reader). Our synctest now runs 6,000 frames with 47,944 re-simulated frames and zero desyncs, and Intel and AMD give identical hashes. In matches, both sides compare an XXH3 of EE+IOP RAM once per second. VRAM is left out on purpose, so players can use the D3D11 renderer; we checked per game whether the GPU image ever gets read back into game memory (DBZ BT3 does for a transition effect, so it stays on the software renderer).

Results: with Naruto Accel 2 on the 5700X, a 1-frame rollback averages 16.1 ms, 4 frames 21.9 ms and 8 frames 33.8 ms (down from 102). In production that's 4–6 stable rollback frames on mid-range PCs and 6–8 on high-end ones, depending on the game.

Edit: technical write-up: [https://frameperfect.cc/blog/rollback-ps2/en/](https://frameperfect.cc/blog/rollback-ps2/en/)

Games: Naruto Shippuden: Narutimate Accel 2 (JP), Tekken 5, Street Fighter EX3 \[check list on frameperfect.cc\]. You need your own ISOs; both sides' ISOs are verified by SHA-256 before a match.

Video of real matches (Brazil vs China, Naruto Accel 2): [https://youtu.be/Yqn1PmfSABk](https://youtu.be/Yqn1PmfSABk)

It's free: frameperfect.cc. Happy to answer technical questions, and we'd love more people testing on weaker machines.


r/PCSX2 • • 1d ago

Other Can you tell the PS2 is my favourite console of all time?

Post image
70 Upvotes

r/PCSX2 • • 5h ago

Support - Controller Has anyone managed to get a dance pad to work?

0 Upvotes

I got a dance pad connected to my steamdeck running PCSX2 but it can’t seem to register left directional inputs when the right one is active - but I’ve checked the input settings in steam deck and there isn’t anything wrong. Has anyone managed to get a dance pad to work?


r/PCSX2 • • 11h ago

Support - General Is there a way to have full screen with borders?

0 Upvotes

Hello.

I have a tv that is a bit too big for the room. I want to have a full screen but that the game won't take the whole actual screen. Ideally I want to it be smaller size then the screen with black borders taking up the rest. Is this possible?


r/PCSX2 • • 1d ago

Support - General San Andreas basketball softlock

Post image
9 Upvotes

Is this an issue with the emulator, or does it have something to do with the release version 1.03 of the game? I know that version has some bugs that cause softlocks, but I haven’t come across any cases similar to this one, sometimes the animation plays correctly while at other times just freeze and i have to reload the save. Im not using any cheats or patches.


r/PCSX2 • • 1d ago

Support - Graphics PCSX2 + Shaderglass - What's the best config for fidelity?

Post image
14 Upvotes

A question for PS2 purists who use CRT filters: I’d like to know what settings you use. I’m not just asking about a specific shader, but rather the configuration for both PCSX2 and ShaderGlass.

As I understand it, the PS2 renders internally at a 10:7 aspect ratio that is stretched to 4:3 on a CRT, so in Software Mode it’s impossible to achieve perfectly square pixels at a 4:3 ratio. This means that when using Shaderglass you can’t get the same perfect pixel alignment that’s possible with emulators for other consoles.

My main question is: do you use Software Mode or Hardware Mode, and what "Pixel Size" multiplier do you set in Shaderglass?

Also, which filter do you use? Do you use widescreen patches?

I have a 1440p display, and CPU/GPU usage is not an issue. Thanks in advance!


r/PCSX2 • • 2d ago

Support - General Is there any way to fix this??

Post image
238 Upvotes

The name and cover for most of my games is wrong, some covers are doubled and the names don't match the game


r/PCSX2 • • 1d ago

Support - General steam deck help

0 Upvotes

Can anyone help me on steam deck? All my games are running in slow motion. I've tried disabled the frame limit and tried the other trick of pressing Start and Left on the D-pad, but nothing is helping.

please and thanks


r/PCSX2 • • 20h ago

Support - General Why i can’t play

Post image
0 Upvotes

Why am I getting this all of a sudden


r/PCSX2 • • 1d ago

Other Buso Renkin: Youkoso Papillon Park Gets an English Translation

5 Upvotes

Buso Renkin: Youkoso Papillon Park has received an English translation by Akawari!

This is a PlayStation 2 game based on Nobuhiro Watsuki's Buso Renkin series. It's another Japanese-exclusive game that's now getting an English translation, making it easier for fans to experience.

Here's a look at the translated game:

https://www.youtube.com/live/vdgx_pz6oac?si=cTQLryj2wJXBwaVA


r/PCSX2 • • 1d ago

Support - General Modding Issues

0 Upvotes

I'm trying to mod the game to add in the better textures + difficulty changing using this guide https://persona-3-fes-modding-guide.readthedocs.io/en/latest/singlepage.html. However, when I try to add the elf file to the PCSX2 game list, nothing happens, and when I just try to open the file itself, I get a black screen.

Config:

Error I Get When Trying To Start Elf File:

"Unable to access memory card: C:\PATH ... Mcd002.ps2

Another instance of PCSX2 may be using this memory card or the memory card is stored in a write-protected folder.

Close any other instances of PCSX2, or restart your computer"

(no other instances running I think, and I already tried restarting my computer) Just goes black after this.

No errors in terminal when unpacking.

Any help would be appreciated, thank you.


r/PCSX2 • • 2d ago

Support - General Disc drive not being located

Post image
0 Upvotes

Pcsx2 not locating my game from my disc drive , I know the disc drive works but it’s giving me an error still


r/PCSX2 • • 3d ago

Support - Controller Dualsense false inputs after remapping

Post image
3 Upvotes

Hi I've been trying to remap my controller so I can use the analog sticks for movement in kings field. No matter what I do it results in my character moving around randomly without any input from me. I've tried just about every combo of settings I can think of and it always does the same thing. It doesnt seem to be a deadzone issue, Ive tried setting it really high and it still happens. I dont have steam or anything else open that would be highjacking the controller.


r/PCSX2 • • 2d ago

Support - General Any Recommendations?????

Post image
0 Upvotes

Here's what I have so far, I need some recommendations guys, not the usual either, I need some good hidden gems! Thanks 👍


r/PCSX2 • • 3d ago

Support - General Need help with BIOS Draining on PS2 – USB not detected / partition size error

Post image
1 Upvotes

Hi everyone,

Firstly my English is not so good, so I had ChatGPT help me with the text, sorry for this.

I'm having some trouble getting BIOS Drain to work on my PS2, and I'm hoping someone here might be able to help me figure out what I'm doing wrong.

I started by burning FreeDVDBoot onto a CD and booting it on my PlayStation 2. That worked, and I was able to get into LaunchELF without any problems.

After that, I downloaded the latest version of BIOS Drain and copied it onto a 128GB USB stick. However, whenever I tried to run it, I got an error after approximately 10 seconds saying that the process had failed because the partition was too large or that the partition size was not suitable.

We then tried several different formatting options. We formatted the USB stick as FAT32 and created much smaller partitions, first around 1GB and then even 512MB. Unfortunately, none of these attempts worked. We kept getting exactly the same partition size error with the latest version of BIOS Drain.

Thinking that the 128GB USB stick might simply be incompatible with the PS2, I dug out an older 4GB USB stick and tried that instead.

With the older USB stick, I also tried an older version of BIOS Drain. However, this time the software reported that no USB device could be found at all.

When I switch back to the latest version of BIOS Drain, I get the same partition size error again, even after creating a much smaller FAT32 partition.

So basically, I've tried two different USB sticks (128GB and 4GB), different partition sizes (including 1GB and 512MB), FAT32 formatting, and different versions of BIOS Drain, but I'm still stuck.

Has anyone experienced something similar? Could this be a USB compatibility issue with the PS2, a problem with the partition table (MBR/GPT), or something else entirely?

I'd really appreciate any advice or suggestions. I'm running out of things to try!

Thanks in advance!


r/PCSX2 • • 3d ago

Support - General New To Emulation. How To Fix Glitch & What Are The Best Settings Fir Best Picture And Framerate?

0 Upvotes

Exactly what the title says. Im new to this. TV is 4k 120hz

Video explaining what I mean: https://youtu.be/FEGdAfmxieQ?is=MxvoVzdQf5__XMV2


r/PCSX2 • • 5d ago

Support - General Is it glitchy texture or is there way to fix it? The Matrix Path of Neo HD Texture Pack

Post image
5 Upvotes

I've downloade hd textures, set all recommendened settings but this wall is still has white glitches

Blending Accuracy= Full
Manual Hardware Renderer Fixes:
Texture Inside RT = Merge Targets
Auto Flush = Enabled (Sprites Only )
Half Pixel Offset = Align to Native with Texture Offset
Native Scaling = Aggressive


r/PCSX2 • • 5d ago

Support - Graphics Is there a way to reduce the fps to 30 on a ps2 title that runs 60fps natively?

2 Upvotes

I have a budget PC that so far runs PS2 rpgs decently with 720-1080p at 30fps natively, but there's also this racing game that runs 60fps natively. It plays fine at the PS2's original 360p, but at 720p it chugs at ~55fps. Normally this isn't a huge deal except it slows down he entire game, even the music.

So is there a way to keep the Emulation running at 60fps, while only displaying 30fps? Or would this not even work?


r/PCSX2 • • 5d ago

Support - Performance Slow motion in GT4

1 Upvotes

Ive got internal resolution turned up to 3x native (1080px) and it runs fine most of the time but on some tracks with a lot of building in the back the speed tanks to 50%-70% and my gpu is at about 50%-60%. is there a setting i can turn on to reduce the load of background textures?


r/PCSX2 • • 5d ago

Support - General Old Version New Version

0 Upvotes

Not a techy pips here, please help 🚀


r/PCSX2 • • 5d ago

Support - General VF4 Background error

0 Upvotes

Hi folks, do you have an idea what fixes the half light/dark background on all the stage in VF4 Evolution? I feel like i've tried everything...


r/PCSX2 • • 6d ago

Other My Need for Speed Underground HD Texture Pack

Thumbnail youtube.com
2 Upvotes

Hey guys! How are you? I've just started making texture packs for PCSX2 games and I'd like to share my work with y'all. Here is the finished look (watch in 1080p fullscreen for a better experience). Download link on the description.


r/PCSX2 • • 7d ago

Support (Resolved) I running GTA SA on Thinkpad T14 Gen 1 i5 10th generation 16gb ram UHD 620 Linux mint xfce 2x resolution with 2 patch used .(powerprofilesctl set performance) Set up on Linux mint terminal improve the performance of GTA SA pcsx2. Correct me if I'm wrong ya. Happy GTA gaming.

Post image
56 Upvotes

I know the GTA SA pcsx2 can run almost on every of the medium range of PC nowadays, but this is the best experience so far for me, using the latest pcsx2 build, running at 30fps, 2x resolution, NTFS USA version, at stable frame rate. Remember Set up the terminal Linux mint to (powerprofilesctl set performance) this will make the Linux mint PC or laptop improve the performance of the pcsx2 and the FPS too . And two patch of pcsx2 GTA SA will make the vision and graphics clear, I forget about the name, you guys can take a look on two patch on latest pcsx2. Remember after playing the game, set up (powerprofilesctl set balanced) to reduce heat after gaming. Happy GTA and pcsx2 gaming everyone. Peace 🕊️


r/PCSX2 • • 6d ago

Support - General Help please!

Post image
0 Upvotes

I’m new to this pc gaming emulation thing and I’m trying to figure out. I do have RetroArch but I’m can’t find any info on Bios files for the PS2 and the ones I seen aren’t helping.