mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Use Multicore JIT
This commit is contained in:
parent
f76c6a47d2
commit
ed99f26699
@ -4,6 +4,7 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime;
|
||||
using osu.Framework;
|
||||
using osu.Framework.Platform;
|
||||
using osu.Game.IPC;
|
||||
@ -15,6 +16,8 @@ namespace osu.Desktop
|
||||
[STAThread]
|
||||
public static int Main(string[] args)
|
||||
{
|
||||
useMulticoreJit();
|
||||
|
||||
// Back up the cwd before DesktopGameHost changes it
|
||||
var cwd = Environment.CurrentDirectory;
|
||||
|
||||
@ -47,5 +50,15 @@ namespace osu.Desktop
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
private static void useMulticoreJit()
|
||||
{
|
||||
var profilesFolder = Path.Combine(Environment.CurrentDirectory, "Profiles");
|
||||
if (!Directory.Exists(profilesFolder))
|
||||
Directory.CreateDirectory(profilesFolder);
|
||||
|
||||
ProfileOptimization.SetProfileRoot(profilesFolder);
|
||||
ProfileOptimization.StartProfile("Startup.Profile");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user