LWJGL
May 22, 2012, 03:18:48 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: newvie problems: threads?  (Read 6685 times)
cvcMateu
Newbie
*
Posts: 5


« on: April 09, 2008, 07: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.
Logged
cvcMateu
Newbie
*
Posts: 5


« Reply #1 on: April 10, 2008, 05: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!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!