FPS alway set to 30 every time IOS is in battery Save Mode (yellow color in battery) #87
-
In savemode, the fps is always set to 30. I don't know how to fix it to 60fps like https://gba.44670.org/. This emulator also runs on Wasm and uses VBA as its core. I don't understand how it doesn't drop fps to 30 when in IOS savemode. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 37 replies
-
Even if I use Module.setMainLoopTiming(0, 1) it doesn't prevent the fps from dropping to 30 and making the game slow. |
Beta Was this translation helpful? Give feedback.
-
@sonht0555 would you be able to help confirm a few things? I'm now building the mgba binary with pthread support, enabling I still need to do some work to make sure things are functioning as expected, but here's some details of what I've been playing around with:
What you should see is that There's a lot left to be done to get this out in a way that it will be fully usable, but this is a good first experiment. Here's the link to my staging deploy based on this branch if you want to play around as I try and fix some of the problems listed above! I'd recommend installing this and having all req go through the service worker for these initial tests. |
Beta Was this translation helpful? Give feedback.
-
I am using ip13 and ios 17.5.1. There is some problem that makes the emulator not run after I select the ROM |
Beta Was this translation helpful? Give feedback.
-
Regarding service workers, I always want users to put my application on the home screen, leaving it running in safari will encounter some problems such as not being able to save the game after 7 days.
As I mentioned in the above messages, other programmers use setInterval to make the simulator run faster in Save_model mode. But it still has a small problem: the sound is still distorted, but it's not distorted at 30fps but about 50-55fps. I wonder if you have encountered that?. Recently I discovered that Sky is based on the core idea and is a brother of NBA (NanoBoyAdvance). I found a programmer who tried recompiling NBA to run on Wasm. It passes through save_battery and runs very stable on iOS (no overheating like mGBA core) this is it nealmm.github.io/web-gba-emu/ NBA is considered lightweight - Accurate and mGBA is rated for good feedback - many functions.
You mean I will play the game via home screen shortcut (bring your emulator to the home screen) |
Beta Was this translation helpful? Give feedback.
-
I hope this idea can be implemented. If possible, it will make the gaming process on this core much longer. |
Beta Was this translation helpful? Give feedback.
-
@thenick775 I tested it, and it's a good signal, there are a few points that need to be corrected if you want it to be the best
Overall, it's very good, to fix the above two things it will be almost the same as the SkyEmu or Nba core. |
Beta Was this translation helpful? Give feedback.
-
@thenick775 |
Beta Was this translation helpful? Give feedback.
-
Fixed in #120 🚀 |
Beta Was this translation helpful? Give feedback.
Fixed in #120 🚀