more logging on program startup
parent
e696d659d4
commit
0d37d86cda
|
@ -123,7 +123,6 @@ namespace MoonWorks.Audio
|
|||
AudioTweenManager = new AudioTweenManager();
|
||||
VoicePool = new SourceVoicePool(this);
|
||||
|
||||
Logger.LogInfo("Setting up audio thread...");
|
||||
WakeSignal = new AutoResetEvent(true);
|
||||
|
||||
Thread = new Thread(ThreadMain);
|
||||
|
|
|
@ -57,6 +57,7 @@ namespace MoonWorks
|
|||
bool debugMode = false
|
||||
)
|
||||
{
|
||||
Logger.LogInfo("Initializing frame limiter...");
|
||||
Timestep = TimeSpan.FromTicks(TimeSpan.TicksPerSecond / targetTimestep);
|
||||
gameTimer = Stopwatch.StartNew();
|
||||
|
||||
|
@ -67,6 +68,7 @@ namespace MoonWorks
|
|||
previousSleepTimes[i] = TimeSpan.FromMilliseconds(1);
|
||||
}
|
||||
|
||||
Logger.LogInfo("Initializing SDL...");
|
||||
if (SDL.SDL_Init(SDL.SDL_INIT_VIDEO | SDL.SDL_INIT_TIMER | SDL.SDL_INIT_GAMECONTROLLER) < 0)
|
||||
{
|
||||
Logger.LogError("Failed to initialize SDL!");
|
||||
|
@ -75,13 +77,16 @@ namespace MoonWorks
|
|||
|
||||
Logger.Initialize();
|
||||
|
||||
Logger.LogInfo("Initializing input...");
|
||||
Inputs = new Inputs();
|
||||
|
||||
Logger.LogInfo("Initializing graphics device...");
|
||||
GraphicsDevice = new GraphicsDevice(
|
||||
Backend.Vulkan,
|
||||
debugMode
|
||||
);
|
||||
|
||||
Logger.LogInfo("Initializing main window...");
|
||||
MainWindow = new Window(windowCreateInfo, GraphicsDevice.WindowFlags | SDL.SDL_WindowFlags.SDL_WINDOW_HIDDEN);
|
||||
|
||||
if (!GraphicsDevice.ClaimWindow(MainWindow, windowCreateInfo.PresentMode))
|
||||
|
@ -89,6 +94,7 @@ namespace MoonWorks
|
|||
throw new System.SystemException("Could not claim window!");
|
||||
}
|
||||
|
||||
Logger.LogInfo("Initializing audio thread...");
|
||||
AudioDevice = new AudioDevice();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue