-
Notifications
You must be signed in to change notification settings - Fork 6
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
Lifecycle events #18
Comments
I think this part could be totally generic if libGDX provided an Application adapter for this. |
You're right, but it isn't the first time LibGDX API isn't as clean as it could be, unfortunately. ;) |
I will create an adaptor class, but I will keep it here. Maybe we can PR libGDX suggesting to include it in its main codebase. |
- Created a generic GdxApplicationAdapter - Supported postRunnable + *LifecycleListener methods? Test required.
Fixed? When are Runnable supposed to execute? Before rendering? After rendering? Since there were no removePostRunnable I suppose they are executed just once |
Yes, they are executed once and removed from the queue. I think they're usually executed before rendering. Keep in mind that runnables can post other runnables (which can post other runnables, and so on) - it might make sense to avoid using a |
- Proper postRunnable supporting executing in several frames
Check wether this test represent the expected behaviour: |
Cool. I'm closing it. |
Currently it's impossible to register lifecycle events or post
Runnable
instances. The application implementation should invoke all posted runnables during rendering.The text was updated successfully, but these errors were encountered: