removing some commented-out code
using renderer.setSize correctly
setting the magic numbers so to have decent performance