[GEM-dev] Problem with textures on Ubuntu
cyrille henry
cyrille.henry at la-kitchen.fr
Wed Jun 24 16:50:36 CEST 2009
IOhannes m zmoelnig a écrit :
> 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.
oups, yes, right.
> a better solution (portable to Pd-vanilla) would be to use [r initbang]
> and just send a bang to initbang when creation has finished.
or send a loadbang message to the abstraction...
>
>> it look like a nice feature to document on the help file...
>
> yeah, i gonna add the [thread $1( message to the docs.
ok, thanks
c
>
> fgadsmr
> IOhannes
>
More information about the GEM-dev
mailing list