-
-
Notifications
You must be signed in to change notification settings - Fork 480
[Tech] System info cache #1897
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
[Tech] System info cache #1897
Conversation
That 11 second metric seemed a bit high for me, so I've had a look into the Maybe we should someday implement this on our own, using Win32 API calls and/or WMI queries (there are npm modules for making both of those things easy, as far as I know). Those should be significantly faster |
I was getting 5-10 seconds improvements consistently. Might be some user error in those numbers. Only tested on windows too There's still no need for getSystemInfo to be synchronous and not cached. The only improvement we'd get by making the getSystemInfo call faster is if the app opens faster than getSystemInfo runs and the user launches a game before it finishes. In that case, we'd run getSystemInfo twice and the first game open would be slow. The app doesn't open that fast and I think most users won't launch a game in the first second the app opens. It's also only used for logging so if this edge case becomes problem, we could disable system info logging on game launch since it's already logged on app start. |
To clarify, I was not at all questioning your measurements, I was just observing & suspecting what the reason for a difference this significant might be
This might happen when games are launched via the protocol
This might be a bad idea, since users usually share just the game log & not the general one |
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.
Looks good 👍🏽
This improves game launch speed by caching system info that won't change while the app is running.
Time to launch was reduced from 20 seconds to 9 seconds with League of Legends on Windows.
It also speeds up Heroic launch time by ~5 seconds. Before, we were unnecessarily awaiting getSystemInfo before launching the main window. Now it runs asynchronously.
Use the following Checklist if you have changed something on the Backend or Frontend: