karansher / computer-graphics-ray-tracing

Computer Graphics Assignment about Ray Tracing
0 stars 0 forks source link

Extremely slow for mirror and bunny #29

Open guyuli2002 opened 2 years ago

guyuli2002 commented 2 years ago

I am using an i5 9600k CPU and my max recursive for the raycolor is only 2. Even use the build release, it still takes around 3, 4 hours to render mirror or bunny

ValentinaManferrari commented 2 years ago

Same problem here! I can run mirror within a reasonable amount of time but for some reason bunny takes forever... I left my laptop running all night but in the morning still nothing. Does anyone have any optimization tips for Windows systems? (I already reduced the width and height sizes in main.cpp and I can quickly see a miniature version of the bunny so I know my code works but I would love to see in the appropriate dimensions)

panuelosj commented 2 years ago

Could you try building with the precompiled binaries. I'm suspecting you might be looping through the set of triangles twice nested somewhere when checking for collisions.

rainyu7246 commented 2 years ago

Hi, I'm having the same issue. And when i try to build with the precompiled binaries I'm getting linking problem. Does anyone have any idea of how to tackle this?