Digital Art Zone

 
   
3 of 3
3
Saving data with new format.
Posted: 21 December 2012 10:12 AM   [ Ignore ]   [ # 31 ]
Member
Rank
Total Posts:  89
Joined  2010-12-31
Vasily Levin - 20 December 2012 07:19 PM

I managed to move significantly futher in my save/load code.

Now I have a question, can I control order of finalize calls for sibling nodes? Or maybe there is some guaranteed order of calls to apply instance, finalize instance?

All the apply instance calls are done in a batch and then all the finalize instance calls are done. 

Do you need something after that? 
You could delay whatever you need to do until your stuff actually gets used(such as being drawn).

Or you could setup a timer that fires every second until dzScene->isLoading() returns false. 

Or you could watch sceneLoaded on dzScene.  Make sure you check dzScene->isLoading() as files get loaded during a load.

Profile
 
 
Posted: 23 December 2012 12:59 PM   [ Ignore ]   [ # 32 ]
New Member
Total Posts:  16
Joined  2009-07-27

I meant order inside apply and finalize call,

say on apply stage it could be that parent apply is called before child apply and for children it is called in same order as in scene.
Is something like that fixed, or not?

Profile
 
 
   
3 of 3
3