diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index d024ff3e3..60014c268 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -170,6 +170,13 @@ void IrrDriver::initDevice() */ SIrrlichtCreationParameters params; + // The debug name is only set if irrlicht is compiled in debug + // mode. So we use this to print a warning to the user. + if(m_device->getDebugName()) + { + printf("!!!!! Performance warning: Irrlicht compiled with debug mode.!!!!!\n"); + printf("!!!!! This can have a significant performance impact !!!!!\n"); + } params.DriverType = type; params.WindowSize = core::dimension2d(UserConfigParams::m_width, UserConfigParams::m_height); @@ -1179,7 +1186,7 @@ void IrrDriver::update(float dt) { applyResolutionSettings(); if(m_resolution_changing==RES_CHANGE_YES) - new ConfirmResolutionDialog(); + new ConfirmResolutionDialog(); m_resolution_changing = RES_CHANGE_NONE; }