Skip to content

WebReflection/raytrace

Repository files navigation

raytrace

A comparison between original raytrace.ts performance VS a hand-written JS port.

Live Test - both pages show render time in console

Licence

The original TypeScript version and this JS translation are licenced under the Apache-2.0 licence.

How to test locally

  • fork or clone this repo
  • enter raytrace directory (cd raytrace)
  • npm i
  • npm run build
  • run any local server to test raytracer.html or rt.vanilla.html on your localhost

Could the vanilla version have TS too?

Check the JSDoc TS annotated file which is fully compliant with TS and it still performs as good as the not-annotated file.

About

A performance comparison between TS and JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •