Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

Very Ram Hungry #25

Closed
RinMaru opened this issue May 28, 2018 · 12 comments
Closed

Very Ram Hungry #25

RinMaru opened this issue May 28, 2018 · 12 comments
Labels

Comments

@RinMaru
Copy link

RinMaru commented May 28, 2018

Im not sure if this is an issue or is intended but ive seen this program take up about 2gb of ram. seems a bit much for a frontend

Windows 10 x64
i5 6402P 8GB DDR4
AMD RX 480 4GB

@valters-tomsons
Copy link
Owner

Never had such a huge ram usage. How many games do you have in your library?

Could you try changing BitmapScalingMode in advanced.ini to options listed here and take a note if memory usage changes?

@RinMaru
Copy link
Author

RinMaru commented May 29, 2018

about 140+ games changing image quality will drop it to about 1.7GB

@valters-tomsons
Copy link
Owner

Never had a library anywhere near that size, but that still sounds way too much.

Could you tell me the size of your Resources/Configs folder? It could be that all the images loaded really do take up that size.

@RinMaru
Copy link
Author

RinMaru commented May 29, 2018

145mb

@valters-tomsons
Copy link
Owner

Could you archive your Resources/Configs folder and upload it somewhere so I can test? Don't worry, it doesn't include any personal information other than game file path.

@RinMaru
Copy link
Author

RinMaru commented May 29, 2018

@valters-tomsons
Copy link
Owner

valters-tomsons commented May 30, 2018

Thanks! 2GB indeed!

Looks like there's a memory leak in unmanaged code sections, I'll try to find the cause of it.

Edit: Turns out, the "memory leak" happens when streaming bitmap images. Not sure how to even fix this.

@RinMaru
Copy link
Author

RinMaru commented May 30, 2018

Using Minimem seems to clear out some of the leak but it don't always work

Edit: Im no dev or anything but would making a cache file of all the images fix it? sorta like what dolphin does with its game DB

@valters-tomsons
Copy link
Owner

valters-tomsons commented May 30, 2018

Issue has been fixed in ee07b4b

I have one more idea to improve performance and you should expect an updated release in upcoming days.

Edit: Just for notes, your library now uses around 80Mb.

@RinMaru
Copy link
Author

RinMaru commented May 30, 2018

awesome thanks ^^ I look forward to the update

@valters-tomsons
Copy link
Owner

@RinMaru
Copy link
Author

RinMaru commented Jun 4, 2018

awesome works like a charm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants