[ioquake3] force someone to spectator

2010-05-31 Thread Brandon Tanner
I am working on the sv_ccmds.c file, and trying to force a person to spectator. cl is the pointer to the person I want to force to spec, but I'm not sure of the proper way to do it. In game as an admin I could do something like "/rcon forceteam clientNumber spectator". I tried the following, which

Re: [ioquake3] The Glorious hack of Inverse Square Root by Carmack [or that other guy]

2010-05-31 Thread Michael Menegakis
On Mon, May 31, 2010 at 10:02 AM, Matthias Bentrup wrote: > the "fast" approximate sqrt may not be so fast on current CPUs. The > fast sqrt has to move the value from an FPU or SSE register into an integer > register and back, and these instructions have a high latency, while the > built-in sqrt (

Re: [ioquake3] The Glorious hack of Inverse Square Root by Carmack [or that other guy]

2010-05-31 Thread Matthias Bentrup
2010/5/29 Michael Menegakis > On Sat, May 29, 2010 at 4:55 PM, Thilo Schulz wrote: > > the max. relative error is 0.175% over all floats. > > OK, that's relatively, not completely marginal. If one is going to go > with a 'safe' approach (since I noticed if it's replaced with sqrt() > benchmarkin