>> On 5/30/13 9:26 PM, finalpatch wrote: >>> https://dl.dropboxusercontent.com/u/974356/raytracer.d >>> https://dl.dropboxusercontent.com/u/974356/raytracer.cpp >> >> Manu's gonna love this one: make all methods final. > > I have another suggestion. class Sphere and class Ray should be structs. > Neither class uses polymorphism in any way, so there's no reason to make > them classes with virtual functions. >I was about to write that too, but when the goal is to write a scenegraph polymorphism is what you want, i.e. Sphere is just one object and there is different lights. Ray already is a struct.
On 06/01/2013 08:22 PM, Walter Bright wrote:> On 5/30/2013 7:56 PM,
Andrei Alexandrescu wrote:
- Re: Slow performance com... Jacob Carlborg
- Re: Slow performance com... Peter Alexander
- Re: Slow performance com... Manu
- Re: Slow performance com... Joseph Rushton Wakeling
- Re: Slow performance com... Simen Kjaeraas
- Re: Slow performance com... Steven Schveighoffer
- Re: Slow performance com... Dicebot
- Re: Slow performance com... Manu
- Re: Slow performance com... Steven Schveighoffer
- Re: Slow performance com... Steven Schveighoffer
- Re: Slow performance compared to C++, ide... Martin Nowak
- Re: Slow performance compared to C++, ideas? FeepingCreature
- Re: Slow performance compared to C++, ideas? FeepingCreature
- Re: Slow performance compared to C++, ideas? finalpatch
- Re: Slow performance compared to C++, ide... Juan Manuel Cabo
- Re: Slow performance compared to C++,... finalpatch
- Re: Slow performance compared to C++,... Martin Nowak
- Re: Slow performance compared to C++, ideas? nazriel
- Re: Slow performance compared to C++, ideas? Juan Manuel Cabo