Skip to content
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

updates rust_g; adds rustg-based icon_states; fixes unit tests #5644

Merged
merged 6 commits into from
Jun 26, 2023

Conversation

silicons
Copy link
Contributor

@silicons silicons commented Jun 22, 2023

so back when i did inventory slot refactor i added this thing called a render state cache
it basically allows for lazy people to default when needed and don't default when not needed

problem is
to facilitate this we need to icon_states
which seems to be using just an exorbitant amount of memory.

byond icon_states bad
replaced with rustg icon states
there's a massive footgun in that it's obviously going to be slow due to the fcopy() but for the use case of inventory it should be fine.

frees about 400MB.

also fixes us just having bad shuttle paths

@silicons silicons marked this pull request as ready for review June 22, 2023 07:15
@github-actions github-actions bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 22, 2023
Copy link
Contributor

@timothyteakettle timothyteakettle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(this is an extremely dangerous PR)

@github-actions github-actions bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 23, 2023
@silicons silicons changed the title reduces server memory costs by 400MB by obliterating the inventory default state cache (this is an extremely dangerous PR) reduces server memory costs by 400MB by obliterating the inventory default state cache (this is an extremely dangerous PR); also fixes unit tests Jun 23, 2023
@silicons silicons changed the title reduces server memory costs by 400MB by obliterating the inventory default state cache (this is an extremely dangerous PR); also fixes unit tests updates rust_g; adds rustg-based icon_states; fixes unit tests Jun 23, 2023
@silicons silicons requested a review from Zandario as a code owner June 23, 2023 09:45
@ktoma36 ktoma36 merged commit eda3428 into Citadel-Station-13:master Jun 26, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants