-
-
Notifications
You must be signed in to change notification settings - Fork 934
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
Availability to add/remove multiple overlays at once #1546
Comments
Sounds good to me! |
This is already done in #1498. |
I guess we should wait with this issue until that PR is merged, since it changes that class a lot. |
As described #1546, It would be more convenient and can reduce the game widget updates if adding or removing overlays at once.
…ne#1657) As described flame-engine#1546, It would be more convenient and can reduce the game widget updates if adding or removing overlays at once.
…ne#1657) As described flame-engine#1546, It would be more convenient and can reduce the game widget updates if adding or removing overlays at once.
What could be improved
Currently, the
ActiveOverlaysNotifier
can add/remove only one by one.It can add/remove multiple overlays at once.
Why should this be improved
Imagine adding/removing multiple sets of overlays.
It can lead to multiple function calls to flame users in addition to executing multiple
notifyListeners()
inside the Flame.Any risks?
No
More information
flame/packages/flame/lib/src/game/mixins/game.dart
Line 319 in ac3d4bf
Are you interested in working on a PR for this? Yes
The text was updated successfully, but these errors were encountered: