Hello Guest

newvie problems: threads?

  • 1 Replies
  • 17433 Views
newvie problems: threads?
« on: April 09, 2008, 14:58:10 »
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?

Thanks.

Re: newvie problems: threads?
« Reply #1 on: April 10, 2008, 12:00:06 »
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.

Thanks!