RenderThread

From RifidiWiki

Revision as of 23:20, 3 June 2008 by Jochen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
THIS PAGE NEEDS A REWORK, THE DIAGRAMS ARE NOT UP TO DATE

Renderthread.png
javadoc
The RenderThread is instantiated and started after a new scene got loaded.
The WorldService is responsible for controlling the states of this thread.
As syncExec has a little problem with deadlocks (we got this from some newsgroup posts, we could never confirm this but as we were facing some deadlocks we eliminated all possible sources) we have to use asyncExec and a control variable in renderThread (running) to check if a RenderRunnable is currently running.
The RenderRunnable is responsible for acquiring the lock that is shared with the UpdateThread to prevent simultanious operations of both on the scene graph.
RenderRunnable.png

Personal tools