modmanager icon indicating copy to clipboard operation
modmanager copied to clipboard

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

Open LLLingMo opened this issue 3 years ago • 5 comments

(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 时它的图标刚刚被加载。最好缓存图标。

LLLingMo avatar Oct 03 '21 13:10 LLLingMo

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

Hendrix-Shen avatar Oct 03 '21 13:10 Hendrix-Shen

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

LLLingMo avatar Oct 03 '21 13:10 LLLingMo

1338个mod?你是认真的吗

kaniol-lck avatar Oct 03 '21 13:10 kaniol-lck

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

LLLingMo avatar Oct 03 '21 13:10 LLLingMo

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

kaniol-lck avatar Oct 03 '21 13:10 kaniol-lck