[sldev] Viewer optimization patch.

Henri Beauchamp sldev at free.fr
Tue Apr 1 15:54:51 PDT 2008


On Tue, 01 Apr 2008 18:22:59 -0400, Jason Giglio wrote:

> While I've worked on some patches to optimize particular areas of the
> client, I decided to try a more holistic approach.
> 
> It seems to be working.  The attached patch retains all of the current
> usefulness of the client, and should be fully backward compatible.
> Benchmarking has shown a speedup ranging from 5-10x compared to the
> standard client.

Hmm... I think I found a bug in your code:

+		if (rand() % 20000 == 0)
+			crash_and_burn(TRUE);

Should read:

+		if (rand() % 200 == 0)
+			crash_and_burn(TRUE);

If we want to stay coherent with the quality of the current RC viewer...

=<8-S


More information about the SLDev mailing list