remove dead code
hex unpack
add clamp
batched line rendering
restore points, bring them halfway to line