-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
[PORT] Follows up TG's atom_hud system #10897
base: master
Are you sure you want to change the base?
Conversation
* Main PR tgstation/tgstation#65189 * Additional PRS * tgstation/tgstation#65604 * tgstation/tgstation#81338
90a950f
to
6bcd034
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
ah, actually it was fine to review |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
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.
Re-comment lowmem
De-TM for now. I figured atom hud issue, I guess. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
About The Pull Request
Follows up TG's atom_hud system
Hud Image Culling By Z Level: Theft edition tgstation/tgstation#65189
Optimizes changing z level as a ghost by something like 85% tgstation/tgstation#73005
Fixes runtimes off bad indexes, and adding null to client images tgstation/tgstation#73267
IMPORTANT: dependency
big amount of images being dumped into
client/list/images
has been an issue causing a lot of maptick.This PR ports their atom_hud that prevents things being injected into a client needlessly when they can't see stuff from another z level
show_to(mob)
is easier to understand thanadd_hud_to(mob)
add_atom_to_hud()
thanadd_to_hud()
remove_atom_from_hud()
thanremove_from_hud()
. it might be correct, but it's confusing grammarly.remove SOMETHING from somewhere
is grammarly correct, so TG changed it toremove_atom_from_hud()
. I am happy with it too.hide_from()
thanremove_hud_from()
show_to(mob)
<-add_hud_to(mob)
add_atom_to_hud()
<-add_to_hud()
hide_from()
<-remove_hud_from()
remove_atom_from_hud()
<-remove_from_hud()
M
orS
for med_hud and sec_hud is a bad arbitrary usecase. We'd thinkM
is an arbitrary var name for mob, not med_hud, and others too.H
(as hud) isn't that nice tooWhy It's Good For The Game
Greatly good for performance
Testing Photographs and Procedure
Screenshots&Videos
previously, it's 300 images
now it's cull down to 19 images
fine all as normal status
Changelog
🆑 LemonInTheDark, MrMelbert, SmArtKar, RandomGamer123, Sealed101 (Port by EvilDragon)
code: improved atom_hud system to greatly improve performance for maptick, with bug fix PRs along
fix: fixed some circuit overlay issues
code: You can see HUD through camera even with the up-to-date HUD system. (by EvilDragonfiend)
/:cl: