Bogdanp/ymage — pull request #2 by cuchac (2011-11-07 08:37:03+00:00)
Title: Implement preloading

Hi, could you please test this branch? It should preload images in the background thread, but I experience segmentation fault on Nvidia drivers. ATI drivers are OK, so could you please just test that it will show images? On my nvidia box it segfault after just a second, before any image is shown. The problematic line is slideshow.py:198 - creating texture from loaded image.

I have not much experience with OpenGL, so I don't know whether there are some limitations for OpenGL operations from different thread. I have read about having different contexts in different threads with shared resources, but I dont know how to implement it in pyglet . Or maybe I do some initializations in a wrong way.