#1
|
|||
|
|||
Error when loading a lot of avatars
Hi,
in one of the scripts i try to run, i want to load around 27-30 different avatars. I'm bumping into 2 problems, and i wonder if they're solvable: 1. The main problem - i get an error : "Runtime error! This application has requested the Runtime to terminate it in an unusal way". I assume that the program runs out of resources. Is it possible to get around it? 2. It takes a very very long time to load all the avatars - is there any possible way to speed it up? |
#2
|
|||
|
|||
Not so sure about the first problem, to me it sounds like it might be a program priority issue if you're running Vista, because I've had it say similar things to me before. Open up task manager, set the program priority to real-time by right clicking winviz.exe and it's more liberal with the memory it allocates. It might not do much for you but it worked slightly better after for me.
With regards to the second issue, it might just be a memory capacity issue, unless you're loading the avatars on events, for example loading them when you enter a room. If that is the case, load them at the start before the event and make them invisible to start with then visible on the event. As the geometry is pre-loaded it saves you time. Hope this helps in some way. |
#3
|
|||
|
|||
Do you only get the error when loading a large number of avatars? Does the avatar use large textures or a high polygon mesh? I just tested loading 1000 avatars and it took 3 seconds and my program did not error, but the framerate is very low. It's hard to tell what the problem is without more information.
|
#4
|
|||
|
|||
Errors with multiple avatars
I only get the error when i try to load more than 20 something avatars.
I am using the Complete Characters high poly characters. I'm running the public_speaking Demo which was given to us during installation of vizard, but i changed it to accomadate more avatars, and made some other changes to it. The load time with 20 avatars ( when there is no error, it is 250 seconds ) It is much faster with one avatar( load time of 4.77 seconds) Let me know if there is any furtther information which i could supply... |
#5
|
|||
|
|||
How much RAM does your computer and GPU have? Can you provide a simple script that reproduces the crash?
|
#6
|
|||
|
|||
samle script
Before we bought the computer, we consulted vizard, so basically is should be okay
We have 2 GB of RAM. I'm not completely sure how GPU is checked , but if GTX is the right thing to look at, then we have 8800 GTX. attached is a sample script of when vizard crashes when trying to add more than 20 something avatars. trying to add a few less results in just a very long load time. (a few minutes) : import viz viz.go() AVATAR_MODEL_LIST = ['../art/avatars/male/casual01_m_highpoly.cfg',\ '../art/avatars/male/casual02_m_highpoly.cfg',\ '../art/avatars/male/casual03_m_highpoly.cfg',\ '../art/avatars/male/casual05_m_highpoly.cfg',\ '../art/avatars/male/casual08_m_highpoly.cfg',\ '../art/avatars/male/casual09_m_highpoly.cfg',\ '../art/avatars/male/casual11_m_highpoly.cfg',\ '../art/avatars/male/casual13_m_highpoly.cfg',\ '../art/avatars/male/casual14_m_highpoly.cfg',\ '../art/avatars/male/casual15_m_highpoly.cfg',\ '../art/avatars/male/casual17_m_highpoly.cfg',\ '../art/avatars/female/casual01_f_highpoly.cfg',\ '../art/avatars/female/casual02_f_highpoly.cfg',\ '../art/avatars/female/casual03_f_highpoly.cfg',\ '../art/avatars/female/casual04_f_highpoly.cfg',\ '../art/avatars/female/casual17_f_highpoly.cfg',\ '../art/avatars/female/casual18_f_highpoly.cfg',\ '../art/avatars/female/casual24_f_highpoly.cfg',\ '../art/avatars/female/casual25_f_highpoly.cfg',\ '../art/avatars/female/casual26_f_highpoly.cfg',\ '../art/avatars/female/sportive02_f_highpoly.cfg',\ '../art/avatars/female/sportive03_f_highpoly.cfg',\ '../art/avatars/female/sportive04_f_highpoly.cfg',\ '../art/avatars/female/sportive05_f_highpoly.cfg',\ '../art/avatars/female/sportive06_f_highpoly.cfg'] print(len(AVATAR_MODEL_LIST)) for i in range(1,len(AVATAR_MODEL_LIST)): avatar = viz.add(AVATAR_MODEL_LIST[i]) avatar.translate(0+i,0,0) |
#7
|
|||
|
|||
Hey
So any progress on understanding why this might happen?
dan |
#8
|
|||
|
|||
Problem fixed
Hi, the problem seemed to have been solved, relatively - The thing that
was slowing down everything was that every avatar had 80 animations or so. Since we are only using about 20, then cutting the rest of the animations from the CFG file, also took down significantly the load time ( and fixed the refresh rate ). It still takes about 15-20 seconds to load, but that's bearable... |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
avatars | dig | Vizard | 4 | 09-20-2007 03:29 PM |
Avatars in an array and link/unlink | betancourtb82 | Vizard | 7 | 09-05-2006 04:06 PM |
loading motion data for avatars | dellatails | Vizard | 2 | 02-13-2006 12:51 PM |
python dicts and vizard world loading... | vsully | Vizard | 1 | 09-26-2005 09:17 AM |
loading anacapa avatars? | shai | Vizard | 3 | 04-24-2005 05:36 PM |