{ \r
static_assert(sizeof(void*) == 4, "64-bit code generation is not supported.");\r
\r
- // Install structured exception handler.\r
- caspar::win32_exception::install_handler();\r
-\r
// Set debug mode.\r
#ifdef _DEBUG\r
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_ALWAYS_DF );\r
_CrtSetReportMode( _CRT_WARN, _CRTDBG_MODE_DEBUG );\r
_CrtSetReportMode( _CRT_ASSERT, _CRTDBG_MODE_DEBUG );\r
#endif\r
- \r
+\r
+ // Increase process priotity.\r
+ SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS);\r
+\r
+ // Install structured exception handler.\r
+ caspar::win32_exception::install_handler();\r
+ \r
// Increase time precision. This will increase accuracy of function like Sleep(1) from 10 ms to 1 ms.\r
struct inc_prec\r
{\r