mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
dedicated gfx device surpression
augments $Video::forceDisplayAdapter = -1; to force usage of GFXAdapterType::NullDevice skips trying to open a splash window for dedicated servers bypasses guicanvas window display if window does not exist
This commit is contained in:
parent
328319b853
commit
98a4e7fb12
3 changed files with 18 additions and 12 deletions
|
|
@ -1,10 +1,6 @@
|
|||
$Core::windowIcon = "data/icon.png";
|
||||
$Core::splashWindowImage = "data/splash.png";
|
||||
|
||||
// Display a splash window immediately to improve app responsiveness before
|
||||
// engine is initialized and main window created.
|
||||
displaySplashWindow($Core::splashWindowImage);
|
||||
|
||||
// Console does something.
|
||||
setLogMode(6);
|
||||
|
||||
|
|
@ -20,6 +16,13 @@ ModuleDatabase.setModuleExtension("module");
|
|||
ModuleDatabase.scanModules( "core", false );
|
||||
ModuleDatabase.LoadExplicit( "CoreModule" );
|
||||
|
||||
// Display a splash window immediately to improve app responsiveness before
|
||||
// engine is initialized and main window created.
|
||||
if ($Server::Dedicated == false)
|
||||
displaySplashWindow($Core::splashWindowImage);
|
||||
else
|
||||
$Video::forceDisplayAdapter = -1;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Load any gameplay modules
|
||||
ModuleDatabase.scanModules( "data", false );
|
||||
|
|
@ -42,6 +45,7 @@ else
|
|||
}
|
||||
}
|
||||
|
||||
closeSplashWindow();
|
||||
if ($Server::Dedicated == false)
|
||||
closeSplashWindow();
|
||||
|
||||
echo("Engine initialized...");
|
||||
Loading…
Add table
Add a link
Reference in a new issue