[sldev] GUI prototype speedup tricks

Lawson English lenglish5 at cox.net
Tue Sep 4 21:46:31 PDT 2007


OK, A trick Benjamin turned me onto is to type cmd/cntrl-t at the login 
screen. This evokes a floater window that is defined by 
floater_test.xml, which allows you to prototype GIU-related stuff 
without logging into the server.

One problem though: The login process still takes you out to the 
internet and tries to grab a web-page, which makes the turnaround for 
GUI testing rather slow, even still.

I browsed around and found that if you change a 1 to a zero in this line:

#define LL_LIBXUL_ENABLED        0

in llpreprocessor.h, line 56, will bypass compiling  the browser code on 
the Mac client and eventually set mHtmlAvailable = FALSE; in the login 
floater.

This is a good thing, if you're trying to shorten the cycle for 
compiling and testing GUI and related code, and don't need access to the 
browser or the client, at least in the beginning stages because it 
brings the login window much closer to my greatly desired hello world 
GUI prototyping window. The drawback is that the constant is defined in 
the precompiled header, so changing it requires a recompile of all 
sources which is itself rather slow. The best bet seems to be to define  
two builds, I guess. One with the constant defined as 0 for GUI testing, 
and one with the constant defined as 1 for full-blown client testing, 
including the browser. The client will run without the browser code 
defined, but I didn't test for stability if you try to use the browser 
in-world.



Just a heads up.








More information about the SLDev mailing list