Magic

Music Visuals
https://magicmusicvisuals.com/forums/

Best Way to Save GPU Memory

https://magicmusicvisuals.com/forums/viewtopic.php?f=2&t=2639

Page 1 of 1

Best Way to Save GPU Memory

Posted: Tue Aug 17, 2021 4:41 pm
by chabuku
I am switching between different scenes using OSC combined with playlist function.

I would like to be able to also disable any graphics that are loaded from other scenes when I switch. I know that I can turn off "Load all scenes into graphics memory" but in doing so it will break SpoutSender connections I have set up with OBS.

So the question is: what can I disable that will save graphics memory? Forgive me if this stuff is covered in the users manual. If so please let me know what section covers memory management because I would love to make sure I'm handling it properly.

I've heard that simply disabling from a null will not unload anything from graphics memory.

1. When I disable something such as turning off the last node in a line does it free any memory?
2. Does disabling the first node free any memory?
3. Does disabling a scene node (importing a scene into another) stop it from using memory?

Re: Best Way to Save GPU Memory

Posted: Tue Aug 17, 2021 11:20 pm
by Sadler
Put your spout senders in their own scenes (e.g Hose-A and Hose-B) and attach a scene input to each sender. Keep Hose-A and Hose-B in memory and use them in all your other scenes (not stored in memory). Perhaps that should maintain the Spout connections and save you some GBs. Does this work for you?

Also, there's a new Spout plugin for OBS that, apparently, has better management for multiple Spout connections.

Re: Best Way to Save GPU Memory

Posted: Fri Aug 20, 2021 4:30 pm
by chabuku
Sadler wrote:Put your spout senders in their own scenes (e.g Hose-A and Hose-B) and attach a scene input to each sender.

Also, there's a new Spout plugin for OBS that, apparently, has better management for multiple Spout connections.


Will disabling the scene node stop it from using any memory?

What is the Spout Plugin you are referencing? I am using one from Leadedge that was posted in another thread and links here:
https://github.com/leadedge/leadedge.gi ... Sender.dll

Is that the same you are talking about? That is the one I am using.

Re: Best Way to Save GPU Memory

Posted: Fri Aug 20, 2021 10:54 pm
by Eric
Are you having problems with not enough memory? Otherwise don't worry about it.

Re: Best Way to Save GPU Memory

Posted: Tue Aug 24, 2021 1:23 am
by chabuku
Eric wrote:Are you having problems with not enough memory? Otherwise don't worry about it.


Yes, I am. Having issues when running MMV & TouchDesigner together. I have done what Sadler has suggested, and spent a lot of time optimizing TD - it took me a while, but I have been able to reduce usage to around 80% total GPU.

Also for my own awareness I wanted to know what exactly happens when you disable a node, whether it is a scene node, a beginning generating node, a null node, or the last node in a pathway.

Re: Best Way to Save GPU Memory

Posted: Wed Aug 25, 2021 2:50 pm
by Eric
Disabling nodes does free their GPU memory. You can watch this in real-time if you have memory monitoring enabled.

All times are UTC
Page 1 of 1