[sldev] Error (misspelling) in lltexturefetch.cpp
Robin Cornelius
robin.cornelius at gmail.com
Thu Jun 5 00:54:45 PDT 2008
> void relese() { --mActiveCount; }
>
> I searched the rest of the entire project, and found no other occurrences of
> "relese" - could this be a problem? Is something searching for "release" and
> not finding it, or has the function been deprecated?
Looks like a dead function, certainly nothing is trying to call it or
it would be a compile/link error.
Greping through the code mActiveCount does not appear to do anything
either, looks like it was trying to count the number of active texture
worker threads, it may be part of the "enable multiple threads" plan
which works to a point but some report deadlocks.
As for the caching of decoded files, my inital gut feeling is that you
can cache them in the WRITE_TO_CACHE state of the state machine, by
swapping out the mFormattedImage->getData() to the buffer that was
retrieved in DECODE_IMAGE and the reverse operation in
LOAD_FROM_TEXTURE_CACHE needs to load them into the raw image buffer
not the mFormattedImage, the recall will probably be a little harder
as you need to ensure the buffers are big enough and you will have to
rig the states so it can jump stright over to DONE after that and make
sure there are no mFormattedImage memory allocations left around.
Discard will just be ignored for a cache hit.
I've started looking but as usual time is the limiting factor.
Robin
More information about the SLDev
mailing list