Skip to content
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

Refreshing may cause a crash 刷新或导致崩溃 #4

Open
LLLingMo opened this issue Oct 3, 2021 · 5 comments
Open

Refreshing may cause a crash 刷新或导致崩溃 #4

LLLingMo opened this issue Oct 3, 2021 · 5 comments
Assignees

Comments

@LLLingMo
Copy link

LLLingMo commented Oct 3, 2021

(my English is poor) Currently I have two local mod folders. The first one only has one mod, but in the other one there are 1338 mods. When I refresh the second one, the program may crash without any information and I can't find the log. Sometimes it won't crash, but it will be very laggy for a few time. I guess the reason is that there are too many parallel tasks and my computer can't afford them. (CPU: Intel Celeron N3450 @ 1.1GHz)
Additional Information:
The only mod in the first folder is downloaded by the program and added a prefix by it. But in the second the mods are not. I have also added some prefixes to the filename(can be identified correctly). The first folder is on my SDD but the second one is on a U-disk.

By the way, I found that the icon loading in the local is very slow. However the icon is just loaded when I download it. It would be better to cache the icons.

(my Chinese is not good) 目前我有两个 mod 文件夹,第一个只有一个 mod,但第二个有 1338 个。当我刷新第二个的时候,程序可能崩溃,但没有任何信息,我并且找不到日志。有时也能加载出来,但是接下来一段时间很卡。我猜原因是并行任务数太多,我电脑负担不起。(CPU: Intel Celeron N3450 @ 1.1GHz)
附加信息:
第一个文件夹中唯一的那个 mod 是用这个程序下的,也是用这个程序加了前缀。但第二个里面不是,而且我还自行添加了前缀(不过它们能被正确识别)。第一个文件夹在我的 SSD 上,第二个在 U 盘上。

另外,我发现本地的图标加载极慢。可是当我下载一个 mod 时它的图标刚刚被加载。最好缓存图标。

@Hendrix-Shen
Copy link
Contributor

直接讲中文即可,开发者是国人。

@LLLingMo
Copy link
Author

LLLingMo commented Oct 3, 2021

发现当首次开这个本地时,显示为 0 个 mod,但 CPU 占用较高,是不是在后台加载但没有进度显示?现在感觉是不是重复加载导致的问题。

@kaniol-lck
Copy link
Owner

1338个mod?你是认真的吗

@LLLingMo
Copy link
Author

LLLingMo commented Oct 3, 2021

你好,我以前有收集癖,和现在有轻微的收集癖,,,
事实上有 1800 个,不过不在一个文件夹里

@kaniol-lck
Copy link
Owner

唔。。。你这真是给我程序做了很好的压力测试。。。我从来没想过会有这么多mod同时放一个文件夹,我目前只做了不同路径的协程加载,因为我一般一个文件夹也就100多个mod,所以没什么性能上的感知。之后我试着优化一下加载这样巨量mod的性能吧,以及加载的进度条

@kaniol-lck kaniol-lck self-assigned this Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants