Skip to content

feat: 启动游戏5秒内没下载好资源包则不再等待下载 #37

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dogdie233
Copy link

之前把下载任务放在主线程,现在把下载任务放在别的线程
主线程最多等待5秒下载,若5秒内没下载完则不再阻塞主线程,把合并和应用资源包放在下载完毕后的另一个线程执行

bug:这样做的话可能不会让游戏自动应用资源包,因为可能下载完之后options.txt已经加载完了

之前把下载任务放在主线程,现在把下载任务放在别的线程
主线程最多等待5秒下载,若5秒内没下载完则不再阻塞主线程,把合并和应用资源包放在下载完毕后的另一个线程执行

bug:这样做的话可能不会让游戏自动应用资源包,因为可能下载完之后options.txt已经加载完了
@dogdie233
Copy link
Author

效果:可以看到在游戏加载完毕后,才下载好,然后合并

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant