BuIlDaLiBlE / BetterHI3Launcher

A much better Honkai Impact 3rd launcher.
The Unlicense
104 stars 18 forks source link

Implementation of Parallel Download Mechanism #39

Closed neon-nyan closed 2 years ago

neon-nyan commented 2 years ago

Pull Request Overview

This pull request introduces the initial implementation of Parallel Download mechanism, which is using multiple sessions at the same time. This method is quite similar to what IDM used, which may help to improves the download speed quite a bit for user who doesn't have a good network performance while downloading using single session connection.

Major Changes

Minor Changes

Uncompleted

Benchmark

Specifications

Before Changes (using legacy download method - Single Session)

Download Speed (after 5 Mins): 23.44 Mb/s (2.93 MB/s)

image

After Changes (using Parallel Download method - Multiple Sessions)

Download Speed (after 5 Mins): 72 Mb/s (9 MB/s)

image

Note [CANCELLED]

To use this method, you have to enable Use Parallel Download in the Options button or just simply pressing Ctrl+Shift+D on your keyboard.

As per latest changes, This feature will be used by default unless you need to use Legacy Download method, you have to switch UseLegacyDownload in registry to 1.

neon-nyan commented 2 years ago

Based on our conversation in Discord, We will make this feature to be used by default. It will keep Legacy Download method but you need to switch the UseLegacyDownload in registry first to 1 to use it.