Skip to content

removes chatsaving chug on 516 #8359

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

Merged
merged 7 commits into from
Feb 8, 2025

Conversation

hry-gh
Copy link
Member

@hry-gh hry-gh commented Feb 5, 2025

it loads an invisible iframe from the webroot cdn/some other specified path (like one hosted on gh pages). once that’s loaded, the iframe listens for “message” events, and the tgui window uses postMessage to send the get/set/whatevers over to the iframe

there’s no network activity happening after the iframe is loaded, we just need to escape from the localhost:bunch of numbers origin so we have a persistent indexeddb

of note, this only works on a server with the webroot cdn enabled, because we need something that isn't the dreamseeker webserver for our indexeddb's origin (though #8646 means it works locally, too, by hosting it on github pages)

tl;dr we don't use byondstorage for chat history as this is insaaanely slow and leads to 5s lag spikes if you have any amount of chat history

🆑
fix: 516 does not get laggier as the round goes on anymore
/:cl:

@cmss13-ci cmss13-ci bot added UI deletes nanoui/html Missing Changelog Maintainers always document their changes. labels Feb 5, 2025
cm13-github added a commit that referenced this pull request Feb 5, 2025
@hry-gh hry-gh added this to the 516 Compatibility milestone Feb 5, 2025
cm13-github added a commit that referenced this pull request Feb 5, 2025
cm13-github added a commit that referenced this pull request Feb 5, 2025
@cm13-issue-bot cm13-issue-bot mentioned this pull request Feb 5, 2025
@Willzadl Willzadl mentioned this pull request Feb 5, 2025
3 tasks
cm13-github added a commit that referenced this pull request Feb 5, 2025
cm13-github added a commit that referenced this pull request Feb 5, 2025
@cmss13-ci cmss13-ci bot added Fix Fix one bug, make ten more and removed Missing Changelog Maintainers always document their changes. labels Feb 5, 2025
cm13-github added a commit that referenced this pull request Feb 5, 2025
cm13-github added a commit that referenced this pull request Feb 5, 2025
cm13-github added a commit that referenced this pull request Feb 6, 2025
cm13-github added a commit that referenced this pull request Feb 6, 2025
cm13-github added a commit that referenced this pull request Feb 6, 2025
cm13-github added a commit that referenced this pull request Feb 6, 2025
cm13-github added a commit that referenced this pull request Feb 7, 2025
@Git-Nivrak Git-Nivrak added this pull request to the merge queue Feb 8, 2025
github-merge-queue bot pushed a commit that referenced this pull request Feb 8, 2025
tl;dr we don't use byondstorage for chat history as this is insaaanely
slow and leads to 5s lag spikes if you have any amount of chat history

of note, this only works on a server with the webroot cdn enabled,
because we need something that isn't the dreamseeker webserver for our
indexeddb's origin

:cl:
fix: 516 does not get laggier as the round goes on anymore
/:cl:

---------

Co-authored-by: harryob <[email protected]>
Merged via the queue into cmss13-devs:master with commit d7ab040 Feb 8, 2025
29 checks passed
cmss13-ci bot added a commit that referenced this pull request Feb 8, 2025
github-merge-queue bot pushed a commit to Aurorastation/Aurora.3 that referenced this pull request Mar 26, 2025
this is a bit of

cmss13-devs/cmss13#8646
cmss13-devs/cmss13#8875
cmss13-devs/cmss13#8606
cmss13-devs/cmss13#8607
cmss13-devs/cmss13#8359
cmss13-devs/cmss13#7860
( and thus ParadiseSS13/Paradise#25105
ParadiseSS13/Paradise#25205
ParadiseSS13/Paradise#25363
ParadiseSS13/Paradise#26423 and
ParadiseSS13/Paradise#26433 )
tgstation/tgstation#89766

in order to work properly - using the efficient storage method, instead
of the byond json method - github pages needs to be enabled and built
from the gh-pages branch. because yeah

---------

Co-authored-by: harryob <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Fix one bug, make ten more UI deletes nanoui/html
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants