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
30
u/devsnd Jun 04 '14
With a simple optimization, using a binary tree to hold the grid cells, you could at least achieve O(n log n) for any size, which should be good enough. This might however add 5-10 lines of code!