Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Window COMP "onstart" parameter

Discuss help and learning documents. Submit your ideas for future tutorials and documents

Window COMP "onstart" parameter

Postby rawbengal » Tue Dec 15, 2015 4:15 pm

The Window COMP wiki page https://www.derivative.ca/wiki088/index.php?title=Window_COMP says this parameter exists...

Open on Start onstart - Sets the state of the window when the application is first loaded

It doesn't seem to actually exist in the latest build. I was hoping to be able to set this to cause one of my windows to open on program start.

How do people handle opening multiple windows and putting TD into "perform" mode on program start? I was able to solve it with an Execute DAT node but that seems overkill for something as simple as "put my multi-window project into perform mode on startup." It seems logical to me that we should be able to designate any number of windows as "perform" windows instead of just one. I'll admit I'm a n00b at TD so I could just be missing something basic.

Rob
rawbengal
 
Posts: 4
Joined: Thu Nov 19, 2015 11:55 pm

Re: Window COMP "onstart" parameter

Postby nettoyeur » Tue Dec 15, 2015 6:55 pm

You can set it here:
http://www.derivative.ca/wiki088/index. ... ent_Dialog

You should always use only one window, the perform window.
Also if you have multiple screens/projectors you still make only one window, which is as big as all the monitors combined. This performs much, much faster than multiple windows.

Use containers in this perform window to make controlpanels appear on one monitor and your output on the other monitors/projectors.

see also here:
https://www.derivative.ca/wiki088/index ... rform_Mode

and tutorials here
http://matthewragan.com/2015/03/29/ame- ... hdesigner/

http://matthewragan.com/2015/04/10/thp- ... hdesigner/
Idzard Kwadijk | freelance TouchDesigner consultant | LinkedIn
nettoyeur
 
Posts: 721
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands

Re: Window COMP "onstart" parameter

Postby rawbengal » Thu Dec 31, 2015 1:22 am

So I've reviewed all the pages cited in the previous response.

While I continue to see things that say you will get better performance by putting everything in a single "perform" window that spans all displays...

1) There is never an explanation as to why this might be.
2) More importantly, the system is clearly designed to allow multiple, independent windows without restrictions (even if, as a designer, you understand you may not get optimal performance). In my test design, I was getting perfectly fine performance for my needs.
3) The documented "onstart" parameter under Window COMPs doesn't seem to actually exist.
4) The idea of designating a single window as the "perform" window *seems* to be tied to a pre-Window-COMP world. You should be able to designate any number of windows as ones that open in perform mode and any number of windows as ones that open on startup.

So... either this is a documentation problem (documented feature doesn't exist) or the feature should be added. I ended up using a DAT to open my windows when playback is started.

Rob
rawbengal
 
Posts: 4
Joined: Thu Nov 19, 2015 11:55 pm

Re: Window COMP "onstart" parameter

Postby malcolm » Thu Dec 31, 2015 11:09 am

The reason why a single window is better is because of the way a window's content is updated with vsync. Often, but not always, only one window at a time will be updated on a monitor refresh. This means if you have two windows open and are running at 60hz, one window could update on one refresh, then another on the next refresh. This results in the windows updating at 30hz instead.

The documentation is out of date and I'll update it today, sorry about that.

Using one window is definitely the way to go. We specifically changed the Window COMP parameters to make it harder to fall into the trap of using multiple windows.
User avatar
malcolm
Staff
 
Posts: 3855
Joined: Tue Nov 13, 2007 1:11 am

Re: Window COMP "onstart" parameter

Postby rawbengal » Sat Jan 02, 2016 6:40 pm

Is the specific limitations of how vsync and multiple monitors work documented somewhere? Perhaps there is a good thread someone can point me to? In my experience it is typical to sync video updates to a single monitor and let the other monitors free run (essentially synched to the main monitor). There are so many ways to implement this functionality that it would be illuminating to know how TD does it at a broad level.

Again, in my specific case I had NO noticeable problems with tearing or performance running on two monitors (in this case both driven from the same graphics card). Being able to drive multiple monitors without the need for external hardware is a pretty nice feature of TD.

thanks!
Rob
rawbengal
 
Posts: 4
Joined: Thu Nov 19, 2015 11:55 pm


Return to TouchDesigner Documentation

Who is online

Users browsing this forum: No registered users and 1 guest