» IDXDeviceService and IMainLoop
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

IDXDeviceService and IMainLoop

for some advanced plugin usage scenarios we introduced two new interfaces in the upcoming 28 release of vvvv:

the device service can be used to enumerate all directx9 devices created by vvvv (for example through a renderer) or to get notified when a device was created or destroyed. this might come in handy if plugins do some kind of background work using a directx9 device (like texture preloading) and need to know when a device got lost in order to stop all processing scheduled for that device. another future use case would be for some sort of directx9 sink node, like a pipet for example, which needs a device in order to be able to evaluate its inputs.

the second interface can be used to get various notifications about all the different stages the main loop goes through when computing one frame. a possible use case could be a custom set of classes/nodes running in some kind of special "subgraph".

both can either be imported or retrieved via two new properties on the IHDEHost.

Elias, Monday, Jul 23rd 2012 Digg | Tweet | Delicious 5 comments  
elliotwoods 06/07/2013 - 11:10

Can you confirm whether the events are fired before or after or unknown?
i.e. OnRender occurs after all textures are rendered? or before?

To note (for others), the way to get these is to use:

[Import]
IHDEHost FHDEHost;

but then you can't use FHDEHost in your constructor

so inherit

IPartImportsSatisfiedNotification

and start using them like:

public void OnImportsSatisfied()
{
    FHDEHost.MainLoop.OnPresent += MainLoop_Present;
    FHDEHost.MainLoop.OnRender += MainLoop_OnRender;
}
elio 29/07/2013 - 15:14
elliotwoods said
Can you confirm whether the events are fired before or after or unknown?
i.e. OnRender occurs after all textures are rendered? or before?

Me too, I'm interested in when ecactly the events are fired. I hope that this could help me with shared texture read/write synchronisation.

microdee 22/11/2014 - 04:59

Just to clarify: which event the Evaluate() of IPluginEvaluate is invoked on?

Elias 24/11/2014 - 22:48

Well all nodes which need to be evaluated every frame (auto evaluate = true) are subscribed to the prepare graph event. The evaluation of their inputs leads to further evaluation calls on nodes upstream.

  • 1

anonymous user login

Shoutbox

~9h ago

Yoctopory: The EDSDK (DX11) doesn't seem to work with the newe r Canon EOS 2000D. The same patch works with the older EOS 1200D Any Ideas?

~13h ago

levi: Any one knows of solutions for large touch surfaces (fingers)? 5 meters or so ?

~2d ago

CeeYaa: https://www.youtube.com/watch?v=OkzfYQCLrCE thanks for the insights, impressive stuff @mediadog yes, it is a very nice CAVE

~2d ago

mediadog: @CeeYaa Why I'm learning Unreal, now if I could just afford wrap-around LED walls! Can do in vvvv too, it's just a CAVE

~3d ago

kleinkariert: @tonfilm any hint on how to generate Mel-Frequency images out of audio for mel-GAN in v4

~3d ago

joreg: @mediadog we're aware of this, see: https://discourse.vvvv.org/t/visual-c-2008-this-download-is-no-longer-available/17895 and i now also fixed the resp. links on the download page.

~3d ago

mediadog: FYI VC redist 2008 links bad in 38.1 installer and on web page

~4d ago

joreg: Reminder: Intro workshop to the all-new vvvv this Tuesday before the #vvvv meetup in #berlin. Signup here: https://nodeforum.org/announcements/2020-series-of-2h-introduction-workshops-to-vvvv-gamma/