GIANT refactoring of renderDataStructures
(glad i have frontend regression tests)