compile sprites only if needed