![]() |
|
#1
|
|||
|
|||
I'm already preloading the avatars, but I still need to initialize the code around the avatar, this involves creating some additional helper object on the avatar together with some other time consuming code. In all it takes between 5 to 7 ms to construct an avatar making loading even 1 avatar per frame noticeable. Using the director method it take 70 ms but the framerate is influenced a lot less. I assumed the async methods of Vizard would work well with Vizard?
|
#2
|
|||
|
|||
Most Vizard commands are not thread safe, especially when it comes to adding/removing objects from different threads. The viz.director function mainly exists for backwards compatibility reasons, and is only intended to be used to perform non-Vizard related operations (e.g. file/socket IO).
Having said that, loading models in director threads can work. You just need to be very careful not to add/remove other models while the asynchronous operation is being performed. Additionally, the model should be added to a dummy scene when being loaded asynchronously, to avoid adding the model while the active scene is rendering. Vizard 5 will have built-in support to load models/avatars asynchronously, and all the threading issues will be handled automatically. |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
random coding | Saz | Vizard | 1 | 05-27-2010 05:44 PM |
random speed and associated coding | Saz | Vizard | 1 | 05-20-2010 04:03 AM |
custom avatar random walk | krimble | Vizard | 2 | 03-20-2007 03:23 AM |
Random head movements | VR_enthusiast | Vizard | 2 | 07-19-2006 11:59 AM |
Random Seeds | Vygreif | Vizard | 1 | 04-27-2006 09:21 PM |