[sldev] Reformatting Textures for the cache

Dale Glass dale at daleglass.net
Fri Mar 23 05:39:26 PDT 2007


В сообщении от 23 марта 2007 06:06 Tim Shephard написал(a):
> On 3/22/07, Jason Giglio <gigstaggart at gmail.com> wrote:
> > Tim Shephard wrote:
> > >> /cache/6c/48/94/6c489466-3058-6475-6b1b-e5fc1d49f1f3.tga
> > >
> > > You want to open a file for every texture you need to decode? 
> > > Yiiikes.
> >
> > That is how it works now, and it's a lot faster than the crappy
> > VFS. The textures are not relational data, a relational database
> > would be a stupid addition.
>
> Really?   Yoiks.   Isn't the limit on XP 512 open file handles?  
> Stay away from those big clothing stores I guess..

Why would you keep them all open? You need texture X? Open file, read, 
close file.

You can also reduce the performance hit from trying to open inexistent 
files by keeping around a list of the textures you have cached, as I 
explained in another post.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070323/05a79837/attachment-0001.pgp


More information about the SLDev mailing list