Jump to content

  • Log In with Google      Sign In   
  • Create Account

Epoch Realtime Raytracing Demo

Posted by ApochPiQ, 02 December 2012 · 1,056 views

As I've written about in the past couple of weeks, I've been investing a heavy amount of time into the Epoch programming language, particularly in the realm of runtime performance. Most of the work has gone into implementing native code generation via LLVM so that Epoch programs aren't bottlenecked by the rather flimsy virtual machine.

All this has culminated in a rather successful thrust to build a comparatively fast raytracer in Epoch. The feature set is pretty limited (one sphere lit by a single light source) but the code is simple enough and the results are satisfactory. I can run a 600x600 pixel scene at about 16-17 FPS on my development laptop, which makes me very very happy. (Keep in mind that at the beginning of this enterprise, the same image at 300x300 was taking 8 seconds to render.)

If I get the energy over the next couple of days, I'm going to write up a wiki article with a development postmortem and maybe shove it around the internet a little bit and see what people think. In the meantime, consider it a tasty reward for following my GDNet journal.

Here's the download: Epoch Realtime Raytracer Demo

Grab it, give it a shot, let me know how well it runs! (Just beware the really nasty pauses that happen when the garbage collector fires.)

so, on my asus g74sx, i get between 15-25fps=-)

also, the light source seems to be dependent on where the cursor is on my entire desktop, rather than relative to the window.
This is looking good!

It's fascinating how you are developing this language, and it is always a brilliant read!

Well done!

Intel i5 2.4GHZ 18 fps average.
Consistent 10fps (besides GC) on Intel Xeon 2Ghz
Really nice.
~11 fps on a 3.2GHz AMD Phenom X4
Very cool! The FPS counter stutters between 20 and 25 on a 3.7GHz Intel SB (not enough accuracy for the timer?). It uses a lot of memory though. And yes, I also noted the same thing as slicer4ever.

October 2014 »

26272829 30 31