-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Updater freezes screen when computing checksums #1041
Comments
I reported it a long time ago, the performance error.
In v8, data.zip libzip is used, With my limited knowledge of C++ at that time, I thought of passing an array as an argument in the |
I changed my mind for now hahahaha. I started a implementation using zip file but I think this may be worse in some cases (like where only few files are changed), which maybe is the most common case. Now I'm changing the updater to:
I'm using the following configuration for necessary folders: The rest remains the same. This improved the freezing time on the screen (didn't removed it all) and now it's under an acceptable time because it will complete faster. Here's the code I changed on resourcemanager.cpp:
A better async implementation would be using callbacks like how the http is made, but that would require more changes. It now receives the paths to search, which means the updater.lua must send the |
Priority
Low
Area
What happened?
I'm using the updater and when executing it, the screen freezes until the checksum is generated in the resourcemanager.cpp. I see my disk usage increasing by the otclient process, and the client keeps totally freezed while it is generating it.
Ps.: usually this process is very fast, but since I'm running it in the sources folder, it is generating the checksum for all directories (including folders like build, VS, etc). But this should never freeze the client, right?
What OS are you seeing the problem on?
Windows
Code of Conduct
The text was updated successfully, but these errors were encountered: