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

Simply enlarge the window, and the memory will increase exponentially. #5280

Open
LeeeSe opened this issue May 21, 2024 · 3 comments
Open

Simply enlarge the window, and the memory will increase exponentially. #5280

LeeeSe opened this issue May 21, 2024 · 3 comments

Comments

@LeeeSe
Copy link

LeeeSe commented May 21, 2024

more_memory.mp4

If this is normal, please close this issue.

@LeeeSe
Copy link
Author

LeeeSe commented May 21, 2024

slint = "1.5"
macOS = "14.5 (23F79)"
default_backend ( slint? )

@tronical
Copy link
Member

tronical commented Jun 4, 2024

I suspect that this is similar to #4079 , except for macOS. Could you try enabling the renderer-skia feature? That would flip to metal layering - I wonder if that reproduces it.

@LeeeSe
Copy link
Author

LeeeSe commented Jun 4, 2024

During the waiting period for a reply, I also noticed that with the increase in the number of conversation turns, the memory usage of the application increases rapidly. When I ask the LLM to “tell me a 1000-word story” three times, the memory usage directly increases by 60MB.

However, when I enable the renderer-skia feature, this issue basically disappears, and the memory usage only increases slightly with each conversation turn. But the memory change caused by zooming remains the same.


I mentioned in another issue that my application is an LLM client. Based on the information you provided, I conducted the above tests and obtained these results. The complete code can be found at dali.

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

No branches or pull requests

2 participants