[info-performer] Loading pfTextures using threads

Date view Thread view Subject view Author view

From: Pramod (pramodreddy++at++gmail.com)
Date: 09/08/2005 22:00:17


Hi,

I have a Performer app which has to load thousands of heavy textures
to display an animation. Though all of them will fit into system RAM,
loading them at startup is taking too much time. Since there are 6
processors on my Onyx350(IRIX 6.5) I tried to load them using threads
( tried using pthreads & sproc ). But the textures that were
simultaneously loaded are getting corrupted - i see jagged lines in
the images when they are displayed.
When the textures are loaded sequentially only by one thread at a
time, no such problem is visible.

My question is this: Is it possible using Performer to do
"pfTexture->loadFile("abc.rgb")" with multiple threads ?

P.S: I tried the solution that was given in the list before - loading
one texture at a time in the draw callback - but the display becomes
too jerky because each texture is about 5 MB.

Any suggestion will be helpful.

Pramod.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Sep 08 2005 - 22:00:33 PDT