PeterAce said:Any guesses on which precision the NV40 will render Doom3 at (FP16 or FP32)?
Will the NV40 have a specific code path or will it run the ARB2 path?
float InvSqrt (float x)
{
float xhalf = 0.5f*x;
int i= *(int*)&x;
i = 0x5f3759df - (i >> 1); // This line hides a LOT of math!
x = *(float*)&i;
x = x*(1.5f - xhalf*x*x); // repeat this statement for a better approximation
return x;
}
DemoCoder said:
AFAIK that code is from Michael AbrashDemoCoder said:ARB2 will probably run "full speed", but remember, JC is the guy who wrote
It's a function that accepts a floating point number as an argument and then return another floating point number as it's result, after some dead hard maths are done it.991060 said:Somebody explain DC's code line by line? 8)
Diplo said:It's a function that accepts a floating point number as an argument and then return another floating point number as it's result, after some dead hard maths are done it.
To be fair at the moment I can't say where or when I read/heard that code isDemoCoder said:Really? I always suspected that, but I could never find any attribution except to Quake3 src.
That code takes a positive float number as input and return its inverse squared root (f(x) = 1/sqrt(x)).991060 said:Somebody explain DC's code line by line?
bloodbob said:NV30 path or ABR2 path which is faster because they have comparble quality but we are talking about fps here folks 300 fps always looks better then 270 fps.
991060 said:Would it be possible to add a "soft shadow" path for NV40 & R420 because of their massively increased fillrate?
991060 said:Would it be possible to add a "soft shadow" path for NV40 & R420 because of their massively increased fillrate?