[GEM-dev] Problem with textures on Ubuntu

IOhannes m zmoelnig zmoelnig at iem.at
Wed Jun 24 16:33:01 CEST 2009


cyrille henry wrote:
> 
> 
> IOhannes m zmoelnig a écrit :
> 
>>
>> anyhow, what comes to my mind is, that on linux, images are usually 
>> loaded in a separate thread (one thread for each [pix_image]!) - thus 
>> you will create 300 threads (which is not that much; but the only 
>> thing i can think of). you can turn off the threaded loading by 
>> sending a [thread 0( message to [pix_image] (e.g. at [initbang] time)
> 
> why did the thread did not stop once the image is loaded?

good question. i guess it's there to minimize the overhead of 
thread-creation each time you load a new image.
another option would be to have a single thread running all the time and 
serving all [pix_image]s; but image the synch-problems...

> do you really need initbang, or loadbang is ok?

[loadbang] won't work here as the patches are created dynamically.
a better solution (portable to Pd-vanilla) would be to use [r initbang] 
and just send a bang to initbang when creation has finished.

> it look like a nice feature to document on the help file...

yeah, i gonna add the [thread $1( message to the docs.

fgadsmr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20090624/a8e6cc3a/attachment.bin>


More information about the GEM-dev mailing list