OpenGL rebuild project start!

This commit is contained in:
Nitload
2023-04-29 03:06:32 +08:00
parent 7dba067146
commit 4dd3f4f6d1
263 changed files with 51374 additions and 1522 deletions
+14 -10
View File
@@ -1,25 +1,28 @@
using StgSharp;
using StgSharp.Geometries;
using StgSharp.Math;
using StgSharp.Optimization;
using System;
using System.Diagnostics;
using System.Runtime.Intrinsics.X86;
internal class Program
{
private unsafe static void Main(string[] args)
{
/*
/**/
double time;
TimeSpan span;
for (int i = 0; i < 1000; i++)
m128 m = new m128();
float mf = 1.2e10f;
m.float0 = mf;
for (int i = 0; i < 100; i++)
{
Stopwatch stopwatch01 = Stopwatch.StartNew();
stopwatch01.Start();
for (int t = 0; t < 1000000; t++)
{
float a = Calc.Sqrt(t);
mf = MathF.Sqrt(t);
}
stopwatch01.Stop();
span = stopwatch01.Elapsed;
@@ -30,17 +33,18 @@ internal class Program
stopwatch02.Start();
for (int t = 0; t < 1000000; t++)
{
float a = MathF.Sqrt(t);
mf = Calc.Sqrt(t);
}
stopwatch02.Stop();
span = stopwatch02.Elapsed;
time = span.TotalMilliseconds;
Console.WriteLine(time);
}
*/
Console.WriteLine(StgSharp.Optimization.SSE.Sqrtss(25.0f));
Console.WriteLine();
}
/**/
}
}