Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeJ2ME doesn't pause in situations where it should #42

Open
AShiningRay opened this issue Nov 25, 2024 · 0 comments
Open

FreeJ2ME doesn't pause in situations where it should #42

AShiningRay opened this issue Nov 25, 2024 · 0 comments

Comments

@AShiningRay
Copy link
Collaborator

This is mostly an issue on libretro right now, but i can see it being a problem in SDL too once its new UI arrives (but this issue won't cover it, as the UI has to be there first).

So the issue here is, whenever libretro has to pause the core to open up its menu, FreeJ2ME still keeps running the game on the background. This shouldn't be the case unless the user sets the libretro frontend to keep the core running when the menu is up.

Using J2ME's own pauseApp method to pause MIDlets isn't a good approach since many jars don't even implement it to a useful capacity. So the next alternative is to introduce a sleep call into the main thread that sleeps for as long as the libretro frontend has its menu up (since the core is a separate process, this shouldn't cause issues), as for SDL, the only implementation that i can think of at the moment is running its UI on a separate thread along with its input polling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant