-
Notifications
You must be signed in to change notification settings - Fork 2
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
Internal communication inefficiencies #24
Comments
DoomRater
added a commit
that referenced
this issue
Mar 27, 2015
-use sendSettings instead of specific link messages for everything that doesn't need to be passed to printouts -further address issue #24
DoomRater
added a commit
that referenced
this issue
Mar 27, 2015
-handle changing of menu settings by just receiving the entire chunk of settings from Preferences -address issue #24
Merged
Now when Menu updates a saved variable it sends all the settings to Preferences with a number of -6, and Preferences sends its settings to Menu with a value of -3 to avoid cross communication. Both send to all other prims with a value of 6 to reach the memory core, but not trigger parsing the settings they just sent. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently Menu hears its own sendSettings values which means it also processes them after it has sent them. While this issue doesn't necessarily affect script functionality it does produce a lot of redundant work inside the menu script. It also points to another internal functionality issue: Preferences sends a lot of information back to Menu via strings but this information is already being communicated around through sendSettings. A chain of events occurs every time Preferences changes something:
The initial proposed change is to have Preferences simply sendSettings like Menu already does, which removes Menu's need to separately process a second linkmessage and resend settings. The proposed change would look something like this:
Dealing with the scripts hearing themselves when they send a message is a bit trickier, but again it does not produce any internal issues since it does not recursively send messages when any of them receive an update message. It can be dealt with afterwards.
The text was updated successfully, but these errors were encountered: