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

Consider adding runtime option for rendering mode #264

Open
davesmith00000 opened this issue Apr 9, 2024 · 1 comment
Open

Consider adding runtime option for rendering mode #264

davesmith00000 opened this issue Apr 9, 2024 · 1 comment

Comments

@davesmith00000
Copy link
Member

This work done in this PR changes the runtime behaviour in favour of pages that are generally idle between user interactions.

In theory, running something like a game should behave as before. However, we could avoid work and guarantee consistent behaviour for pages that will do constant work, by allowing users to tell the runtime to either render when there is activity, or constantly.

This would mean a further departure from the usual Elm interface, as we'd need to introduce something like Indigo's GameConfig to the interface.

@davesmith00000
Copy link
Member Author

We could also use this config the enable firing tick events into the app for this issue: #201

I guess you'd need to tell it what Msg to emit, or something. That is, if we can't think of a nice way to just using the Sub mechanics.

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