r/EmulationOniOS • • 6h ago

Gameplay / Showcase Windows games running on iOS without jit

I’m the developer behind Porthole, the windows game emulator that is built on Madeira. I’ve recently decided to try getting games running without jit and started with Factorio since it’s an easy game to run and would be a good base game to get running without jit. I achieved that goal 2 days ago. Factorio initially ran at 12-20 fps without jit which wasn’t enough. I ended up getting performance up to 60 fps locked which was massive but it still wasn’t enough since factorio runs natively on iOS (albeit the macOS version and not the windows version like I’m running) so I moved onto firewatch. A 64bit unity game that was a lot more challenging since it has self modifying code. Initially for a while I wasn’t able to draw any frames and the app was just crashing but eventually I got to a point here I could draw the games window but again would crash shortly after. Fast forward to present and firewatch currently runs at 5-8fps in game which isn’t ideal but was a big step towards what I’m working on. For CS2 it was pretty much plug and play for getting the game to launch without jit. It just worked with what I already had. The problem was performance. I was only getting 30-45 fps in menus and 3-5fps in game where with jit I was at 120fps in menus and 80-100 fps in game. I’m now to a point where CS2 runs at 60-80 fps without jit with dips into the 30s occasionally. Super excited to share this progress since it puts everyone one step closer to having a windows game emulator that can be uploaded to the App Store.

To follow progress join the discord > https://discord.gg/cp4dhuF5eM

31 Upvotes

7 comments sorted by

2

u/Archon-Toten 5h ago

That's pretty neat, I've had moderate success using UTM se but Diablo 2 was just playable.

1

u/Sheepherder-Any 5h ago

Curious what os you had utm running to be able to play any kind of game? Anytime I’ve tinkered with utm let alone utm se performance on desktops alone is poor. Couldn’t imagine running a game

1

u/Archon-Toten 5h ago

Xp, I've mostly stuck to old games as any time the screen gets busy the performance plummets, but Diablo 2, kknd2, Total Annihilation, Call to power 2, Doom, Quake.

1

u/GullibleMix1939 3h ago edited 3h ago

How are you running a CPU-heavy game like CS2 at 60-80 fps without jit? Is it native ARM code or something like that?

1

u/Sheepherder-Any 1h ago

Using AOT or ahead-of-time compilation rather than jit. There are tradeoffs to this approach but it is the only way to get truly jitless experience (that I know of) with near jit performance. I have an interpreter but it’s 3-6x slower so not ideal at the moment

2

u/Fun-Worldliness7986 3h ago

most probably an interpreter

1

u/GullibleMix1939 3h ago

Interpreters are quite slow; it has to be something else