Re: [opendemo-devel] zlib
Status: Beta
Brought to you by:
girlich
From: Dr. U. G. <Uwe...@ph...> - 2002-01-11 13:31:00
|
Hello! > As I said in my earlier message, we could just move everything inside the > mod's game directory and use them just for quake3 mods. Is the stuff in > there really that useful outside of quake3? You're totally right. A memory buffer, file-buffer or a XML parser aren't so special. There are other full-featured software projects out there dealing only with this kind of stuff. We could equally put everything in the main game directory. > > > The zlib stuff shares some functionality with > > > od_filebuf.c, so maybe the reimplimentation could combine the two. > > I think odFread() should be replaces by gzread() and nothing more. This > > can easily be done before or after the ring-buffer comes in place. > I had thought that zlib kept its own buffer for decompressed data, but it > appears that it does not. Even if it keeps its own buffer, the API is gzread() only. I'm sure zlib has a backlog buffer; thats the base idea of decompression: pointer to already found material some bytes ago. If you increase this window, you get better compression but the zlib standard API is gzread() as a direct replacement for read(). > I'll commit my code if you commit yours... :) I have one hour this evening and maybe two tomorrow. This should be enough. > I'll move the zlib code over from the test mod to the opendemo tree (in > opendemo/src/libs) tomorrow. I think you just convinced me, that opendemo/src/q3a/opendemo/game/zlib is a better place? But it is your code and your directory layout anyway. Bye, Uwe |