Testsetup for time
This commit is contained in:
parent
f525b88a3a
commit
f19aa0007e
@ -118,20 +118,16 @@ public class Server
|
|||||||
|
|
||||||
Queue<Thread> calcThreads = new();
|
Queue<Thread> calcThreads = new();
|
||||||
|
|
||||||
for (double roadLevelPriority = 0.016; roadLevelPriority < 0.02; roadLevelPriority += 0.0002)
|
for (double extraTime = 30; extraTime > 1; extraTime -= 1)
|
||||||
{
|
{
|
||||||
for (double maxAngle = 25; maxAngle < 35; maxAngle += 1)
|
double time = extraTime;
|
||||||
|
calcThreads.Enqueue(new Thread(() =>
|
||||||
{
|
{
|
||||||
double priority = roadLevelPriority;
|
Pathfinder testresult = new Pathfinder(workingDir, 0.0215, 30).AStar(start,
|
||||||
double angle = maxAngle;
|
finish, Tag.SpeedType.car, time);
|
||||||
calcThreads.Enqueue(new Thread(() =>
|
string fileName = $"time{time:0}.result";
|
||||||
{
|
testresult.SaveResult(Path.Join(parentFolder, fileName));
|
||||||
Pathfinder testresult = new Pathfinder(rm, priority, angle).AStar(start,
|
}));
|
||||||
finish, Tag.SpeedType.car);
|
|
||||||
string fileName = $"angle{angle:00}_level{priority:0.0000}.result";
|
|
||||||
testresult.SaveResult(Path.Join(parentFolder, fileName));
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int totalTasks = calcThreads.Count;
|
int totalTasks = calcThreads.Count;
|
||||||
|
Reference in New Issue
Block a user