This page contains the discussions surrounding the problem if data is loaded and destroyed in parrallel many times by the same thread.
Simple Description
Thread1
- delete old tree
- load new tree
Thread2
- sync changes from Thread1
- draw
Problem 1 :
- the sync Thread1 → Thread2 overrides whatever changes Thread2 made to the gl status of the existing objects while drawing
- Thread1 doing the delete is not aware of anything done by Thread2
Temp Solution :
- Forbid any GL calls in Thread1
- Make sure the GL stuff is destroyed per aspect.
Problem 2 :
- Render parts (Thumbnails) in Thread1
Temp Solution :
- ?
