Make resolution configurable
Fix "optmized too many times" bug with dat.gui