-
Notifications
You must be signed in to change notification settings - Fork 3
Tips and Common Mistakes
Younguk Kim edited this page May 12, 2018
·
2 revisions
Panda3D has BamCache to cache model files, shader files, etc. However, BamCache has global lock, which may cause blocking.
In Render Pipeline, some shaders are loaded with a little delay (~ 1 seconds). Therefore, in initializing duration, asynchronous loading for heavy model may block loading the shaders. And this blocks MainThread and causes the lag of rendering window.
This issue can be avoided using some tricks:
- Use
LoaderOptions::LF_no_disk_cache
for loader option. This is effective using Bam model file. - Use
do_method_later
in initializing duration.