Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Question/Informational: child nodes allocation permanent ressources? #40

Open
ozett opened this issue May 5, 2016 · 2 comments
Open

Comments

@ozett
Copy link

ozett commented May 5, 2016

hi,
i am using the room-cycling example (from here) and added two nodes, playing a video in a loop.
i am not aware, if the looping video blocks permanent ressources, it the room-cycling.lua switches the nodes. to put it the other way: are the nodes allocating resources on my raspberry, even if i dont see them? or only, if they are switched on?

i ask this, because i considered as a next step to have more nodes with playing video-files and cylcle/switch trough them on my raspberry.

i observed somehow display-issues/performance lacks

while playing 8 rtsp-streams simultaneously, while the same streams played fine with omxplayer. maybe this is another issue, but you could help me in advising how to cycle through videos with saving resouces. (may to release/kill them, but can i still switch to nodes with looping videos?

@dividuum
Copy link
Owner

dividuum commented May 6, 2016

Yes. All nodes are consuming resources. Video that are not stopped continue playing, even if they are not displayed anywhere. If you want to avoid that, you have to explicitly :stop() and later :start() them. Additionally every loaded video, even if paused consumes GPU memory and other resources. I don't recommend opening more than 4-5 videos at once. While child nodes make things easier, they are not very good if performance is critical: Have a look at https://info-beamer.com/blog/introducing-nested-nodes

Here is example code that shows how to switch between multiple videos: https://github.com/dividuum/info-beamer-nodes/tree/master/videolist

@ozett
Copy link
Author

ozett commented May 6, 2016

hey, thanks 😃
i looked up your links and articles with great interest.
i will give it a big try, as i am a little noob in coding,
but i guess your hints will help me a lot..
thanks again,
👍

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

No branches or pull requests

2 participants