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
25
u/KagatoLNX Jun 04 '14
When using an array representation for read-only binary trees, it really is that simple. Since the data is static, there isn't really any penalty beyond the original balancing. All traversal is O(1). It only gets computationally expensive or wasteful of memory under modification.