Add optimizeHMD flag to Controller