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

Memory allocation #6

Open
rdob opened this issue May 26, 2015 · 2 comments
Open

Memory allocation #6

rdob opened this issue May 26, 2015 · 2 comments

Comments

@rdob
Copy link

rdob commented May 26, 2015

Hi,

I want to ask if it possible to implement an offload routine.
The goal is to load threaded the next or the next few images into memory, and at the same time it shoud free up the memory from the previous image, or the image before the previous.

I have done some tests with approx. 200 FullHD images, which consumes about 1,5GB memory, i want to use it on a raspi2 with only 1GB memory available.

Thanks in advance,

@chriship
Copy link

I have recently run into the same issue. To get round it I added the following at the bottom of the loadFrame method:

if (imageIndex > 1){
sequence[imageIndex - 1].clear();
}

A better method would be to only load a few frames initially (it still loads all of the frames then unloads them as it plays) but this is a quick 2 min fix.

@antimodular
Copy link

have you guys worked out a method to "only load a few frames initially" ... ?

i think i am loading too many sequences at the same time and might be creating a memory problem or there are too many thread that mess each other up.

thx

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