ThirteenAG / WidescreenFixesPack

Plugins to make or improve widescreen resolutions support in games, add more features and fix bugs.
https://thirteenag.github.io/wfp
MIT License
2.34k stars 222 forks source link

[Suggestion] Frame rate limit adjuster for mobile GTA games #1059

Open razorn7 opened 2 years ago

razorn7 commented 2 years ago

I have GTA 3 and GTA VC on mobile but it disappoints me when it comes to instabilities in the game's frame rate refresh, the only way to solve this would be to limit the game to 30FPS but I can't find any way to do that, in GTA SA and LCS it is possible to get 30 FPS locked. I think it's possible to do this because in GTA SA and LCS for mobile there are mods to remove the FPS limit.

Another thing I wanted to point out is that GTA 3 and VC mobile have weird FOVs when they're in a car, so I need to adjust this every time I enter the game.

(btw, sorry for posting here)

TukangM commented 2 years ago

there doesn't seem to be a gta dev modded making fps+ like gta sa pc. maybe if you force dev gta sa mod maybe it's impossible because no one has ever made a 60+ fps mod except gta sa-mp which has been modified

razorn7 commented 2 years ago

there doesn't seem to be a gta dev modded making fps+ like gta sa pc. maybe if you force dev gta sa mod maybe it's impossible because no one has ever made a 60+ fps mod except gta sa-mp which has been modified

I just want lock these mobile games in 30FPS.

xan1242 commented 1 year ago

@ThirteenAG I know Android isn't your thing, but...

I did make a variant of the injector for arm64. I could adjust it to work with armv8a as well.

As for an entrypoint, Zygisk modules are a good fit, but this requires a rooted device.

For non rooted devices, the entrypoint could also be coded in via a dlopen function (this would require exe modding tho).

This is because Android games don't really have many native dynamic libraries that load (unless you wanna hook the C runtime lol and make an asi loader for Linux that way).

So if you ever think about it, let me know.

ThirteenAG commented 1 year ago

I'd like to have similar system we have on pc, mainly to use with something like WSA. Unfortunately I can't launch GTA LCS with WSA anymore, but maybe there's some other game to test with. So yeah, if you have some ideas for android plugins, you can try to implement it similarly to how we have psp and PS2 plugins now. Also keep in mind that there are many other projects that provide similar functionality on android.

xan1242 commented 1 year ago

Yep I know, but they're mostly centered around hooking specific games (e.g. Unity via il2cpp) or are private to hackers who make cheats (at least to my knowledge).

For now, I use Memu and an old Android phone for development myself.

Whichever way you look at it, you either need a rooted device or a modded APK to actually inject anything (especially because code execution is not permitted on user storage in Android).

The closest thing to what we have on PC and ASI loading is Zygisk and I think that's a good entrypoint for doing RnD. For non root users (which is most people), APK patches would need to be performed. (Which I guess could be done via Lucky Patcher or something idk)

ThirteenAG commented 1 year ago

For now, I use Memu and an old Android phone for development myself.

I'm using WSA builds from here: https://github.com/MustardChef/WSABuilds They also provide them for Win10.

a modded APK

Keeping it up to date would be a real struggle, seeing how mobile gtas were updated, from 32 bit apps to 64 bit, and constant stream of small updates every like 6 months.