improve setRenderArgs performance