• Advertisement
  • entries
    627
  • comments
    1447
  • views
    1008923

Tasty, tasty raytracing!

Sign in to follow this  

1106 views

As threatened, I've been working on a raytracer implemented entirely in Epoch. The results so far are promising:

Raytracer prototype.png

Render times are hovering around 1.8 seconds for a 300x300 pixel image. Considering that the image itself should be drawable in basically real-time, there's obviously a lot of room for improvement in the VM.

However, that 1.8 second figure is already down from over 8 seconds when I started on the raytracer project, so I'd say I've already accomplished some pretty decent speedups in the VM just from playing around with this.


I also haven't turned on JIT native code generation for any part of this (the JITter needs a lot of love) so there's a good chance I can speed it up another order of magnitude by executing native code instead of running everything on the VM.


All in all, not a bad bit of work, I must say. It's fun by itself to work on raytracing again, but I get to intermingle that with working on my own compiler and language, so I've been having a blast :-)
Sign in to follow this  


2 Comments


Recommended Comments

I love reading about your progress on Epoch, designing and implementing a language is something I've always wanted to do but never did because of the potentially huge scope of such a project. It's amazing to see that you can actually do someting useful with your own language.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement