Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Opengl top example, keeps cooking despite cookEveryFrame = 0

General discussion about anything TouchDesigner

Opengl top example, keeps cooking despite cookEveryFrame = 0

Postby barakooda » Tue Oct 02, 2018 1:53 pm

Opengl top example, keeps cooking despite cookEveryFrame = false
all i did is
modify this line : "ginfo->cookEveryFrame = false;"

attached video showing the behavior:
https://ufile.io/nxlbq

Keep up the good work

Barak
User avatar
barakooda
 
Posts: 531
Joined: Fri Nov 27, 2009 5:08 pm

Re: Opengl top example, keeps cooking despite cookEveryFrame

Postby malcolm » Wed Oct 03, 2018 9:50 am

That already defaults to false, so settting it won't change things. That variable will force it to always cook no matter what, if set to true. The node can still cook for other normal reasons, outlined here:
https://docs.derivative.ca/Cook
User avatar
malcolm
Staff
 
Posts: 4147
Joined: Tue Nov 13, 2007 1:11 am

Re: Opengl top example, keeps cooking despite cookEveryFrame

Postby barakooda » Wed Oct 03, 2018 11:15 am

Hi Malcolm,
thanks for the reply,
If you notice in the video.

cookEveryFrame = 0
If i change parameter value with the keyboard
the node not cook every frame, as expected.
but,
If i do the same with the mouse - and stop changing the parameter -
the node keep cooking --- is it expected ?

this is the original sample that comes
with the cpp samples.
anyway - not looks consistent ...
User avatar
barakooda
 
Posts: 531
Joined: Fri Nov 27, 2009 5:08 pm

Re: Opengl top example, keeps cooking despite cookEveryFrame

Postby barakooda » Thu Oct 11, 2018 6:43 am

I still think its a bug :roll: .
I`m not able to work around it.
User avatar
barakooda
 
Posts: 531
Joined: Fri Nov 27, 2009 5:08 pm

Re: Opengl top example, keeps cooking despite cookEveryFrame

Postby malcolm » Thu Oct 11, 2018 8:19 am

If you can email in your .toe file we can take a closer look at the issue.
User avatar
malcolm
Staff
 
Posts: 4147
Joined: Tue Nov 13, 2007 1:11 am

Re: Opengl top example, keeps cooking despite cookEveryFrame

Postby barakooda » Mon Oct 15, 2018 4:11 am

Hi Malcolm,
you can reproduce it with opengl top sample.
check this video ( fast forward if needed)
https://drive.google.com/file/d/1QmJTlP ... sp=sharing
User avatar
barakooda
 
Posts: 531
Joined: Fri Nov 27, 2009 5:08 pm

Re: Opengl top example, keeps cooking despite cookEveryFrame

Postby malcolm » Mon Oct 15, 2018 1:59 pm

Thanks for the example. I found that the TOP_GeneralInfo::cookEveryFrameIfAsked variable was left uninitialized by accident, so sometimes it would be true and other times it would be false, unless the code in getGeneralInfo() set it directly. This explains the inconsistent behavior you were seeing.

This will be fixed in the next build, for now you can just set info->cookEveryFrameIfAsked = false in getGeneralInfo() to avoid the bug. That line won't affect behavior in the next build where things are fixed, since that is what it should have been defaulting to anyways.

Thanks
User avatar
malcolm
Staff
 
Posts: 4147
Joined: Tue Nov 13, 2007 1:11 am

Re: Opengl top example, keeps cooking despite cookEveryFrame

Postby barakooda » Mon Oct 15, 2018 2:31 pm

thanks malcolm
just heads up
ib my code i already set it to false
and its still not consistent sometime.

i will share with you soon.
User avatar
barakooda
 
Posts: 531
Joined: Fri Nov 27, 2009 5:08 pm


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: Google [Bot] and 3 guests