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

使用软件内存占用过大,并造成卡顿 #2

Open
taijifeng opened this issue Jul 1, 2023 · 1 comment
Open

使用软件内存占用过大,并造成卡顿 #2

taijifeng opened this issue Jul 1, 2023 · 1 comment

Comments

@taijifeng
Copy link

操作系统W11,使用64位软件包,我偶然看了下内存占用,加载几个图片后,占用达到了500M,加载越多占用越大,这是很不正常的,希望可以查看下原因所在;我也在看您的代码,学到很多东西,谢谢!

@zdy1988
Copy link
Owner

zdy1988 commented Jul 2, 2023

内存占用高正常,毕竟WPF嘛...
程序里我只设计了一个简单的5张图片的缓存池,但是短时间切换大量图片势必会占用大量缓存,不过还有一个后台清缓存的线程,你不切换图片等一会,内存占用会慢慢下去...
如果在win11里面拖动卡顿,说明是galsseswindow的在win11支持的不好的缘故,换成familwindow吧,也就是不启用背景透明可能会好点儿!

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

No branches or pull requests

2 participants