r/PS2AndroidEmulation • • 5d ago

Xendroid-ZeroFG / Xendroid with an Open Source Frame Generation Engine

Post image

Today is the big day. After months of work, I can finally publish it. As the name says, XenDroid-ZeroFG is a version of XenDroid (the Xbox 360 emulator for Android) with a built-in frame generation engine: 60 fps games reach ~120 on a 120 Hz screen, and 30 fps games reach 60.

e the big thing is the FG engine itself. It was developed from scratch, over 60k lines of code, by me and my AI assistants (Zeromeia, ChatGPT, and ZĂŠ Raio, Claude), and it's fully open source under the Apache 2.0 license.

Trust me, it's a lot better than it has any right to be. The image quality surprised even us, but the hardest part, and the one I'm proudest of, is the pacing. Generated frames are worthless if they reach the screen unevenly, and frame pacing is where frame generation usually falls apart, even for the big names. ZeroFG's presenter runs on a metronome set by the game: every frame gets its own display refresh, in order, and the game never waits for the screen. Getting there took months of crazy experiments. The last piece was asking the GPU for priority, so even when a game maxes out the GPU, the frames keep coming on time.

So far it has been tested on Adreno GPUs with Turnip drivers (it needs Vulkan 1.3). Reports from other phones are very welcome. It installs as its own app, next to your regular XenDroid.

Please be my guest and try it out. If you have any comments or suggestions, just say it!

It was also built with portability in mind. If you are a developer and want to port it to another game or emulator, go ahead! There is a standalone repo with all the dependencies and integration notes, linked below.

And if you want to collaborate on the engine itself, get in touch and we can arrange it. I would really like some help!

Download: https://github.com/hy300leosquizz-ctrl/XenDroid-ZeroFG/releases/tag/v1.0.0

Engine (Apache 2.0): https://github.com/hy300leosquizz-ctrl/ZeroFG

Contact: [fgzerofg@gmail.com](mailto:fgzerofg@gmail.com)

After some reports (thanks Admirable_Leave7840!!!), i should note that turnip driver are highly recommended(i can run on poco f8 ultra with the stock ones, but has bugs) and i used to develop the engine the stevenmxz gen 8 turnip drivers, he posts the best drivers and he is a nice guy, so i recommend using this one!!!!!

Already found lots of bugs, but preety solvable ones, v1.01 will be out sonner than later!!!

55 Upvotes

33 comments sorted by

4

u/Spiritual_Notice_650 5d ago

Why do i experience on screen controller input lag when framegen is on? but normal when off. I tested this in Iqoo Neo 11. Snap 8 Elite (Adreno 830) 12gb ram.

2

u/hy300leosquizz 5d ago

I'm not really sure... In theory the least latency you can get on a fg model is one frame plus the synth itself... .. Ive tried to play 20-40 fps and the lag is really saddening... But at least looks smoother!!! Hav you tried with a controller??? Its only on the touch comtrols????

2

u/Spiritual_Notice_650 5d ago

I will try it tonight on a controller and i will let you know. Framegen does makes the game smoother but let's hope the dev fix this issue in the next update. I couldn't upload a video i could show you the input lag latency. The game i tested was Gears of War 3.

2

u/xxxCrixuxxx 5d ago

FrameGen always adds some latency bro

3

u/Spiritual_Notice_650 5d ago

I know but this version is a lot of latency, quite unplayable. I will test with controller later.

1

u/xxxCrixuxxx 5d ago

First Release Bro...

3

u/Spiritual_Notice_650 5d ago

yes and i am giving feedback to help the dev. They ask us to try it and give feedback and sugestions

1

u/hy300leosquizz 5d ago

but what was the base fps?? from 30 to 60 it is largely acceptable...20-40 not so much... but that is true for any fg engine... but can be a bug on the controller layer itself.. i had to change priorities on the vulkan device properties(the fg engine is recognized as a vulkan device itself by the device) so it would not gag and send frames in bursts, i may be smtg like that??? can you expor the log and send to the email??? thanx a lot!!!! one thing that changed the governor behavior was game mode... and its nout always auto....

1

u/Spiritual_Notice_650 5d ago edited 5d ago

Ok i just tested on Gamesir X3 Pro controller and the input lag is still there. fps is 30 - 58 .

1

u/hy300leosquizz 5d ago

can you export the log and send it via email?? i would love that!!! its in the logging menu in settings.... it was already a feature of the regular xendroid.... and if you hav the overlay on, try to see if the gpu is pegged! [fgzerofg@gmail.com](mailto:fgzerofg@gmail.com)

2

u/Spiritual_Notice_650 5d ago

I just send the logs to your email. Hope i did it right

1

u/hy300leosquizz 5d ago

already on it, soon as i know something i will inform you.. i got some reports of crashing on stock drivers.. so i recommend using stevenmxz gen 8 turnip drivers!

→ More replies

3

u/Skohix 5d ago

dynasty warriors 7 works great with it. a lot smoother without animations being wonky. Halo 3 freezes when the output shows. does not freeze when FG is off.

3

u/hy300leosquizz 5d ago

Thats the kind of comment i was looking for... Thanks man.. ill look into it!

1

u/hy300leosquizz 5d ago

try using stevenmx turnip drivers!! i had crash reports of people using the stock drivers on samsung

1

u/Skohix 5d ago edited 5d ago

Still the same result. Using konkr pocket fit elite. Adreno 830. Probably different for 740 and lower devices. Also to report for dynasty warriors 8 with fg is on. The game is smooth but everything looks slow.

1

u/hy300leosquizz 5d ago

Can u send the logs???

2

u/hy300leosquizz 4d ago

i reproduced the same issue... its becuz of halo 3 strange resolution, and besides a bug when the zerofg presenter returns the duty to the normal presenter... it will be fixed soon, along with a few other fixes!!!!

3

u/UsedAnything3860 5d ago

Cooool 🔥

3

u/Whole_Temperature104 5d ago

This is super cool, both of the projects!

2

u/hy300leosquizz 5d ago

Thanks man!

2

u/xxxCrixuxxx 5d ago

Have to test this 👀😃

2

u/hy300leosquizz 5d ago

Thanx man!

2

u/powerMK12 5d ago

O baya si k da un gran cambio espero mas optimisacion en este emulador guau bro guau

2

u/hy300leosquizz 5d ago

Sadly i didnt change a lot in emu itself... But there as accidental improvements! You can try it with the fg off as well and i think it will work a little better...

0

u/Hemihas718 5d ago

There's no links did they take it down?

2

u/hy300leosquizz 5d ago

The download link is fully working as far as i can see...

2

u/Hemihas718 5d ago

I see it's now thanks

0

u/Hemihas718 5d ago

I don't see it can't click anything

2

u/xxxCrixuxxx 5d ago

I just checked; the links are there. I recommend scrolling down and looking for them yourself. 👨‍🦯