Data Flow of Distributed Objects

2 messages Options
Embed this post
Permalink
Hanno Hugenberg

Data Flow of Distributed Objects

Reply Threaded More More options
Print post
Permalink
Hi there,

i have a short question about the data transfer order.

I want to use a init function to create some eq::Objects, and use 1 additional render node.
I create 2 objects, and want to update them inside the render (channel::frameDraw) function.
My current programm does something like that:

[appNode]             -           [node]
init:                                  init:
create object1
register object1
create object2
register object2

draw:                                draw:
commit object1                   if (!object1) create object1; map object1;
commit object2                   if (!object2) create object2; map object2;
                                       sync object1;
                                       sync object2;

exit:                                 exit:
- cleanup                          - cleanup

AFAIK the object data will be send after commiting by appNode AND mapping the objects to the node.

Assuming that the object creation may take some time. Object1 is created and registered, but not mapped! Can the object data be transferred to all nodes during creation of object2 to save some time?

[appNode]             -           [node]
init:                                  init:
create object1
register object1
commit object1 ->               [object1Data]
create object2
register object2
commit object2 ->               [object2Data]

draw:                                draw:
commit object1                   if (!object1) create object1; map object1; (use prior transmitted data)
commit object2                   if (!object2) create object2; map object2; (use prior transmitted data)
                                       sync object1;
                                       sync object2;

exit:                                 exit:
- cleanup                          - cleanup

Is it possible to send the data WITHOUT mapping the objects on the nodes? So the buffered [object1Data] and [object2Data] will be transmitted before map was called?

Greetings from Magdeburg,
Hugie

Stefan Eilemann

Re: [eq-dev] Data Flow of Distributed Objects

Reply Threaded More More options
Print post
Permalink
Hi,

Delta and instance type objects save previous object data, by default  
one version. See setAutoObsoleteCount and the version parameter of  
mapObject.

With the default setup you will get the version from the last commit  
or register, but you can save more versions and then sync forward.


Hth,

Stefan.