somewhat optimized Engine.draw to avoid drawing useless things