newvie problems: threads?

Started by cvcMateu, April 09, 2008, 14:58:10

Previous topic - Next topic


I've been working in a lwjgl project. This project requires a lot of really fast texture loading.
I wanted to try DevIl (I suppose that as it is a system dependent library will be faster than java) to load textures.

My first versions are not working; I get many java virtual machine crashes. My software uses threads to load the images. I possible that this is the problem? In other words, can DevIl be used by many threads?



I made it work.

T suppose that I can not use the multiple threats to use devil to load images, so I created a single thread that loads the images, and other threads use this (single) one to load the textures. Therefore, there is only one thread using devil and no more problems appear.