Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-04-21 17:38:54 +0400
committerTon Roosendaal <ton@blender.org>2004-04-21 17:38:54 +0400
commit9722b256377ac47a8f357caafdf37d309f0fb5bd (patch)
tree5ed7bb194a787c7d2634627b334f723c8b1f6061 /source/creator
parent6d9b6ccbbfb2cceddc14bef61bfe0067d8131b48 (diff)
Fix for slow starting of Blender.
This was caused by calling sound_init_audio() at startup. In situations where Blender was first started, or when other applications used memory, this could take 5-15 seconds. I have moved the init call to 'start ketsji', and made sure any call to an audio play routine will invoke an init as well. Tested with engine and loading/play sound in F10 menu. I don't know how the BlenderPlayer handles it... should be investigated. Result: At OSX Blender starts in a second again! :)
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 0bc922e2d04..48aa5afcb84 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -414,6 +414,7 @@ int main(int argc, char **argv)
}
}
+printf("before BPY_start_python\n");
BPY_start_python();
/**
@@ -421,8 +422,9 @@ int main(int argc, char **argv)
* at least on FreeBSD.
*/
- sound_init_audio();
-
+//printf("before init_audio\n");
+// sound_init_audio();
+printf("before BIF_init\n");
BIF_init();
/**
@@ -438,10 +440,12 @@ int main(int argc, char **argv)
}
else {
BPY_start_python();
- SYS_WriteCommandLineInt(syshandle,"noaudio",1);
- audio = 0;
- sound_init_audio();
- if (G.f & G_DEBUG) printf("setting audio to: %d\n", audio);
+
+ // (ton) Commented out. I have no idea whats thisfor... will mail around!
+ // SYS_WriteCommandLineInt(syshandle,"noaudio",1);
+ // audio = 0;
+ // sound_init_audio();
+ // if (G.f & G_DEBUG) printf("setting audio to: %d\n", audio);
}
RE_init_filt_mask();