--
Two threads (at least) is running:
1. BamCache is loading a heavy model, and his ReMutexHolder "_lock" is being held for the multithreaded approach.
2. The main thread is trying to render the frame. When it comes in GraphicsEngine::render_frame(), the thread try to execute the line 641:
BamCache::consider_flush_index() uses the ReMutexHolder "_lock" as well, making it wait 'till the model loading is complete to only then release the lock.
Ubuntu 11.04 32, Panda3d nigthlybuild or cvs build or 1.8
There's some information and test code here: www.panda3d. org/forums/ viewtopic. php?p=86260# 86260
http://
The same problem happens here: www.panda3d. org/forums/ viewtopic. php?t=12710
http://
-- :render_ frame() , the thread try to execute the line 641:
Two threads (at least) is running:
1. BamCache is loading a heavy model, and his ReMutexHolder "_lock" is being held for the multithreaded approach.
2. The main thread is trying to render the frame. When it comes in GraphicsEngine:
Code: :get_global_ ptr(); consider_ flush_index( );
BamCache *cache = BamCache:
cache->
BamCache: :consider_ flush_index( ) uses the ReMutexHolder "_lock" as well, making it wait 'till the model loading is complete to only then release the lock.