Raytracing speed again, this time with gdc. -- "oops" remedied
downs
default_357-line at yahoo.de
Thu Nov 8 09:15:17 PST 2007
downs wrote:
> Jascha Wetzel wrote:
>> also curious: why does the C++ version call Sphere::intersect 12 times
>> more often than the D version?
>
> I'd like to know that as well. Far as I know, the algorithm's the same.
> I'll add debugging code to find out.
> --downs
Okay, it's some weird floating point effect around this line: "disc=b*b - v.dot(v) + radius*radius;".
It only happens in very specific conditions; x=430, y=379, d=11.
So whatever it is, responsible for three seconds it is not.
--downs
More information about the Digitalmars-d-learn
mailing list