Messaging system can cause duplicated update calls #592
Labels
No labels
Context: Async
Context: Bug
Context: CI
Context: Dependencies
Context: Documentation
Context: Enhancement
Context: Example
Context: Macro
Context: Runtime
Difficulty: Easy
Difficulty: Hard
Difficulty: Medium
Platform: Android
Platform: Linux
Platform: Web
Platform: Windows
Platform: iOS
Platform: macOS
Type: Discussion
Type: Evaluation
Type: Tracker
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SakulFlee/Orbital#592
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When sending a message to different tags, the same entity might be updated multiple times.
For example, say we have a tag group for Enemies and multiple Elements in this group.
We send a message to each Enemy Element individually, all causing an update to occur.
We then send a message to the tag group "Enemy", which will also call all Enemy Elements and also update them yet again.
The simplest solution is probably to bring back the
on_messagefunction. It doesn't matter how often this function gets called, the actualon_updatewould be only called once by the event loop.