-
Notifications
You must be signed in to change notification settings - Fork 565
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
Photo Code Refactoring #4636
Photo Code Refactoring #4636
Conversation
Co-authored-by: harryob <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's all performance and games to add sleeps in the middle of code but unfortunately it also has consequences in terms of integrity and garbage collection...
i think everything else is safe sleep wise. turfs in particular we can shortcut a lot of assumptions in regard to deletions. movable atoms are bit of an issue due to deletion and movement
About the pull request
This PR is a partial revival of #4584 in addition to just a general refactor of the code it was affecting. Now after every blend or getFlatIcon call there is a CHECK_TICK. Various loops use the
as anything
usage as possible to help with type checking. Additionally, the descriptions for mobs is a little more fluid, and now there is actually a description for a photo with no mobs in it.Explain why it's good for the game
This should hopefully mitigate issues where photos cause the server to stutter, but hard to know for sure without testing on live. Also the description was annoyingly rigid.
Testing Photographs and Procedure
Screenshots & Videos
(There was an additional space in this photo's description that was since removed)
Changelog
🆑 Drathek
refactor: Refactored camera code to be less blocking, use typechecks less often, and provide somewhat more fluid descriptions to photos.
/:cl: