mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 17:05:37 +00:00
Possible performance improvement.
This commit is contained in:
parent
09e6d60293
commit
84f0ff047f
|
@ -76,8 +76,10 @@ namespace Examples.WinForms
|
||||||
if (d != null)
|
if (d != null)
|
||||||
++supported;
|
++supported;
|
||||||
|
|
||||||
backgroundWorker1.ReportProgress((int)(((float)i / all) * 100.0f),
|
//if (i % 500 != 0)
|
||||||
String.Format("({0}/{1}) {2}:\t{3}", (++i).ToString(), all, d != null ? "ok" : "failed", f.Name));
|
backgroundWorker1.ReportProgress((int)(((float)i / all) * 100.0f),
|
||||||
|
String.Format("({0}/{1}) {2}:\t{3}", i.ToString(), all, d != null ? "ok" : "failed", f.Name));
|
||||||
|
++i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception expt)
|
catch (Exception expt)
|
||||||
|
@ -87,9 +89,11 @@ namespace Examples.WinForms
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<string> items = new List<string>();
|
||||||
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
||||||
{
|
{
|
||||||
listBox1.Items.Add(e.UserState as string);
|
items.Add(e.UserState as string);
|
||||||
|
//listBox1.Items.Add(e.UserState as string);
|
||||||
/*
|
/*
|
||||||
if ((e.UserState as string).Contains("failed"))
|
if ((e.UserState as string).Contains("failed"))
|
||||||
{
|
{
|
||||||
|
@ -106,6 +110,7 @@ namespace Examples.WinForms
|
||||||
|
|
||||||
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
|
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
|
||||||
{
|
{
|
||||||
|
listBox1.Items.AddRange(items.ToArray());
|
||||||
this.Text = String.Format("{0}: {1}/{2} OpenGL functions supported.",
|
this.Text = String.Format("{0}: {1}/{2} OpenGL functions supported.",
|
||||||
driver, supported, all);
|
driver, supported, all);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue