[sldev] Is there a way to compile the viewer faster?

Callum Lerwick seg at haxxed.com
Wed Mar 14 01:33:27 PDT 2007


On Tue, 2007-03-13 at 16:23 -0400, Tobias Lang wrote:
> Hello,
>  
> I would be interested how you folks are dealing with the very long
> compilation time of the SL viewer. I understand that the initial
> compilation takes 30 min, but the linking process always takes minutes
> on my P4. How are you guys developing like this? Better machines, very
> careful programming? Or is there a magic switch?

I have ccache integrated into my customized 'mock' build system. And am
working on setting up distcc.

But that's just a band-aid over the real problem. Maybe its just gcc,
but as a friend put it, "SL requires more memory to compile than some
small countries". (He's on OSX, I'm on Linux) It took me *hours* to
compile with "only" 1gb RAM, because it was *swapping*. I upped my
machine to 2gb, it still swaps a bit but its a lot faster. It seems to
be specific source files that eat gobs of RAM. I need to figure out how
to instrument the build system to log how much RAM each source file
takes up while compiling... (Dear lord WTF is this
llviewerprecompiledheaders.h thing and why do I get the feeling its
causing more harm than good...)

I never noticed linking to be near as much a problem, personally.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070314/844255d6/attachment.pgp


More information about the SLDev mailing list