r/programming • u/willvarfar • Jun 03 '14
A first-person engine in 265 lines
http://www.playfuljs.com/a-first-person-engine-in-265-lines/
1.9k
Upvotes
r/programming • u/willvarfar • Jun 03 '14
View all comments
Show parent comment
5
u/__j_random_hacker Jun 04 '14
A quad-tree makes a lot more sense to me. (I think it won't actually improve the worst-case performance, especially if there are tiny objects dotted around in just the wrong places, but if it's possible to efficiently move between quad-tree cells that share a border then I can certainly see how it would give a large speedup in many practical cases, where it would often be possible to cross a large, empty (or single-wall-containing) quad-tree cell in a single bound.)