vMix Forums
»
General
»
General Discussion
»
Global Triggers. Is it possible.
Rank: Member
Groups: Registered
Joined: 5/9/2021(UTC) Posts: 15 Location: Thessaloniki Thanks: 2 times
|
Is it possible to run a script every time any input is push into program?
I know I can do that for every input, but is it possible to define global triggers?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Why not the opposite and let a script constantly poll for a change ?
|
|
|
|
Rank: Member
Groups: Registered
Joined: 5/9/2021(UTC) Posts: 15 Location: Thessaloniki Thanks: 2 times
|
Originally Posted by: doggy Why not the opposite and let a script constantly poll for a change ? This is indeed a solution. Just a CPU intensive one.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: buffos This is indeed a solution. Just a CPU intensive one.
Very @@ and calling one isn't ?
|
|
|
|
Rank: Member
Groups: Registered
Joined: 5/9/2021(UTC) Posts: 15 Location: Thessaloniki Thanks: 2 times
|
Originally Posted by: doggy Originally Posted by: buffos This is indeed a solution. Just a CPU intensive one.
Very @@ and calling one isn't ? If I understand correctly, you say have a script in a never-ending loop that checks if the program has changed and does what it needs to do. This is definitely much more CPU intensive than an event-driven solution which runs what it needs to run only when an event occurs. (I guess this is what triggers do) In an event-driven implementation, you have a single loop for the events that spawn registered callbacks.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: buffos
If I understand correctly, you say have a script in a never-ending loop that checks if the program has changed and does what it needs to do.
This is definitely much more CPU intensive than an event-driven solution which runs what it needs to run only when an event occurs. (I guess this is what triggers do)
In an event-driven implementation, you have a single loop for the events that spawn registered callbacks.
Frankly i don't care. Question was if it was possible and indeed there is a solution How much CPU % will it add for the practical convenience ?
|
|
|
|
Rank: Member
Groups: Registered
Joined: 5/9/2021(UTC) Posts: 15 Location: Thessaloniki Thanks: 2 times
|
Originally Posted by: doggy Originally Posted by: buffos
If I understand correctly, you say have a script in a never-ending loop that checks if the program has changed and does what it needs to do.
This is definitely much more CPU intensive than an event-driven solution which runs what it needs to run only when an event occurs. (I guess this is what triggers do)
In an event-driven implementation, you have a single loop for the events that spawn registered callbacks.
Frankly i don't care. Question was if it was possible and indeed there is a solution How much CPU % will it add for the practical convenience ? Sorry, the question was if there are global triggers. A solution that will make the CPU jump to 100% (of the thread since I guess the execution is per thread) Anyway. Thank you for your help.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: buffos A solution that will make the CPU jump to 100% (of the thread since I guess the execution is per thread)
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Global Triggers. Is it possible.
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close