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
It still takes a long time to load into the game #21
Comments
Having the same issue, same load times on every start |
Same here. faq is somewhat unclear when it says "slow first load".. as in first time you load each launch? or first ever launch with the mod? |
When I first installed (1.14) it loaded in 19 seconds om every load after
first after install
…On Fri, Jul 30, 2021, 18:55 Ehkoh ***@***.***> wrote:
Same here. faq is somewhat unclear when it says "slow first load".. as in
first time you load each launch? or first ever launch with the mod?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUBDU3EDPKGFICZ4OZ4GXTT2MUUVANCNFSM5BEKAAGA>
.
|
thanks for the info, can confirm this as an issue then. |
same issue here too any idea how to fix it? |
Unfortunately I dont have any windows experience but I have two guesses.
One is theres a bug in the way requests are cached or looked up in the DB,
and two is that there is a bug in reading the json file for how long to
store cached values.
…On Sun, Aug 1, 2021, 08:22 pheizaut ***@***.***> wrote:
same issue here too any idea how to fix it?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUBDU42OV5MNF7O6WNEE43T2U375ANCNFSM5BEKAAGA>
.
|
hey sorry for the late reply. yes, the load times are slower. With the new caching strategy, we sacrifice some speed for the sake of consistency. By sending out every request, the requests initiated on startup change. To optimize it, it'd take more fine tuning by analyzing each request which can be time-consuming. So I suggest heading on over to https://github.com/optix2000/totsugeki and trying that out, as long as you're aware that it edits memory. |
Thank you. Would you mind describing the new caching process vs the old one?
Seeing the issues on totsugeki makes me want to stick with this version.
…On Mon, Aug 2, 2021, 12:53 cybermelon ***@***.***> wrote:
hey sorry for the late reply. yes, the load times are slower. With the new
caching strategy, we sacrifice some speed for the sake of consistency. By
sending out every request, the requests initiated on startup change.
To optimize it, it'd take more fine tuning by analyzing each request which
can be time-consuming. So I suggest heading on over to
https://github.com/optix2000/totsugeki and trying that out, as long as
you're aware that it edits memory.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUBDUYOHOYERWH25D6IUULT23ERNANCNFSM5BEKAAGA>
.
|
Sure. Take a look at this block: https://github.com/tsaibermelon/gg-struggle/blob/main/server/gg-struggle.js#L102
With this addition in 1.5, we send unconditionally send out the game's request when they were previously dropped on cache-hits, leading to rank updates not registering. During development, I noticed this could change the start-up requests, resulting in a cache-miss to wait for the real server data. But it it doesn't make sense that this change would change the start-up requests if they're cached for a few hours. It could also be an issue with the reconfigured cache-policy settings. Try editing
See if that speeds things up |
I'm having the same issue and changing that line didn't improve the load time :/ |
Is the cache being used at all?
…On Mon, Aug 9, 2021, 18:19 DJKero ***@***.***> wrote:
Sure. Take a look at this block:
https://github.com/tsaibermelon/gg-struggle/blob/main/server/gg-struggle.js#L102
// store the response if cache policy says so
let fetchCallback = this.shouldCache(gameReq.url) ? storeIfExpired : doNothing
...
this.fetchGg(gameReq, fetchCallback)
With this addition in 1.5, we send unconditionally send out the game's
request when they were previously dropped on cache-hits, leading to rank
updates not registering. During development, I noticed this could change
the start-up requests, resulting in a cache-miss to wait for the real
server data. But it it doesn't make sense that this change would change the
start-up requests if they're cached for a few hours.
It could also be an issue with the reconfigured cache-policy settings. Try
editing local.json to change a setting from 5 mins to 3 hours
"/api/sys/.*": "3 hours",
See if that speeds things up
I'm having the same issue and changing that line didn't improve the load
time :/
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUBDU2IYIJRKKI3QQEOUBDT4BH6HANCNFSM5BEKAAGA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
It seems that the api/statistics requests aren't being cached or something else is wrong, I tried by going back to the title screen and entering again and all of them are reporting cache miss. Second login attempt: |
Thank you. Yes not a single Hit except one for login... Which means at this point its probably slower to use this than regularly logging on |
I fixed it. I noticed %TEMP%\gg-struggle\dumps had 13000 entries so I deleted everything in the folder. I also deleted the gg-struggle.db file, and ran the uninstaller and reinstalled. Here is the log for attempt 2: Here are my guesses:
|
Can confirm Raghavs fix made the game launch almost instantly. I would guess that this brings the rank issues back but Im locked at max rank regardless. |
Ok so I've done a LOT of testing and I've narrowed it down to this: there's
something wrong with the way the dumps are made after the second launch.
Here's an experiment to try (and also the workaround:)
1) Clear (optionally back up) everything inside %TEMP%\gg-struggle
2) Launch gg-struggle.exe and Strive. Connect to the game and quit once at
Main Menu (wait for all saving/WiFi icons to disappear)
3) Make a copy of %TEMP%\gg-struggle\dumps. I made a folder called
"FirstRun" inside the gg-struggle temp directory and put it there.
4) Before launching gg-struggle next time, replace the dumps directory with
the one from step 3
I have tried manually editing the DB to delete all entries from the second
run, and deleting all the dumps created during the second run and its still
much slower than copying the original dumps. No clue why. But at least we
know the problem.
…On Fri, Aug 13, 2021, 18:35 pheizaut ***@***.***> wrote:
Can confirm Raghavs fix made the game launch almost instantly. I would
guess that this brings the rank issues back but Im locked at max rank
regardless.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUBDUZOADKQ5F7XJFAPZ23T4WMZVANCNFSM5BEKAAGA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
I think the issue is here: https://github.com/cybermelons/gg-struggle/blob/main/server/gg-struggle.js#L94 try negating the conditional, like: if (**!**this.isItemExpired(ggResp)) Tell me if it works! |
Nvm just saw that it's just a node server, I'm trying it out. Edit: |
I've been toying with this issue, and it seems that the statistics keys aren't consistent between launches (maybe they patched client+server to rotate the keys with time?) |
@cybermelons do you have any updates? |
Even after the first attempt to get in, it still takes about 4 minutes to get into the game when I close and re-open. Is this necessary to prevent the issues from the last version? I've included a screenshot of what's happening for refs
The text was updated successfully, but these errors were encountered: