-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
High memory usage on Windows #328
Comments
Do the
In any case, I don't believe we have code that could cause the renderer to leak or allocate memory like that. I will try to investigate further. |
Yeah, I am running the latest graphics drivers and have the newest library versions too. I did some quick profiling of the app in Visual Studio (while selecting text, just as in the GIF above) and found that it spends most of its time in the event loop, drawing: Maybe the app enqueues too many events and thereby overloads the queue since the loop cannot keep up? |
I think this is unlikely. The queue is drained before drawing every time and we are not seeing increased latency. Does the memory usage decrease once you stop moving the mouse? It would help me if you could answer my other questions:
And additionally:
|
None of the examples (neither here, nor in Thank you! |
@hecrj I am having the same problem with the
Demo |
@fwcd Can you please reopen the issue since I am experiencing the same problem using the latest Iced version 😟 |
|
@sum-elier I'm sorry, I don't see the issue in your demo. This memory usage looks pretty normal to me. |
@fwcd I am sorry, you are right. I was looking at the cpu usage though. I guess that is normal then? |
@hecrj As @fwcd pointed out, my memory usage is alright. I was confused and was looking at the cpu usage. Tried the demos from wgpu-rs (cube and hello-triangle) and they seem to consume around 31% of cpu so I guess what I saw here is normal |
@sum-elier Are you running in We currently call |
@hecrj Yes, |
First of all, thanks for making this amazing crate! Having a modern GUI library is definitely a great step forward towards building desktop applications in Rust.
I've noticed though that the default renderer on Windows allocates very large amounts of memory (sometimes even causing the app to crash), specifically when clicking and dragging with the mouse:
Any ideas on this?
The text was updated successfully, but these errors were encountered: