private void TryUpdateProgress(int progress, int total) { if (progress % 10 == 0) { progressBar.Draw(progress, total, "Render Progress"); } }