Jump to content

April 2017 »

23 242526272829
- - - - -

Epoch Realtime Raytracing Demo

4: Adsense

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.)

Dec 03 2012 04:52 AM
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.
Dec 03 2012 10:36 AM
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.
Dec 03 2012 02:24 PM
Consistent 10fps (besides GC) on Intel Xeon 2Ghz
Dec 03 2012 06:40 PM
Really nice.
~11 fps on a 3.2GHz AMD Phenom X4
Dec 04 2012 01:46 AM
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.

Note: GameDev.net moderates comments.