Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

2D canvas should be hw accelerated too on most browsers.


Yes, however the raycasting is drawing pixel by pixel. That part is not hardware accelerated, and that is the expensive part. That is that part that shaders speedup a lot, by delegating a lot of the work to the GPU.

Just compare with this pure fragment shader demo: https://www.shadertoy.com/view/MsS3W3


That page froze my browser (Firefox 29) and started leaking oodles of memory until I killed it (along with a bunch of other shit I was working on), so I guess I'll count that as a point in favor of software raycasting.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: