2014-12-15 16:47:30 +01:00
|
|
|
/*
|
|
|
|
* =====================================================================================
|
|
|
|
*
|
|
|
|
* Filename: main.cpp
|
|
|
|
*
|
2018-06-05 01:24:54 +02:00
|
|
|
* Description:
|
2014-12-15 16:47:30 +01:00
|
|
|
*
|
|
|
|
* Created: 13/12/2014 20:49:00
|
|
|
|
*
|
2018-06-14 03:19:35 +02:00
|
|
|
* Author: Quentin Bazin, <quent42340@gmail.com>
|
2014-12-15 16:47:30 +01:00
|
|
|
*
|
|
|
|
* =====================================================================================
|
|
|
|
*/
|
2019-01-09 20:44:58 +01:00
|
|
|
#include "ClientApplication.hpp"
|
2014-12-15 16:47:30 +01:00
|
|
|
|
2020-01-26 15:54:59 +09:00
|
|
|
// Use discrete GPU by default in Windows
|
|
|
|
// from https://gist.github.com/statico/6809850727c708f08458
|
|
|
|
// Thanks to Hopson for pointing this out
|
|
|
|
#ifdef _WIN32
|
|
|
|
extern "C" {
|
|
|
|
// http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
|
|
|
|
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
|
|
|
|
|
|
|
|
// https://gpuopen.com/amdpowerxpressrequesthighperformance/
|
|
|
|
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-06-14 02:38:02 +02:00
|
|
|
int main(int argc, char **argv) {
|
2019-01-09 20:44:58 +01:00
|
|
|
ClientApplication app(argc, argv);
|
2018-06-14 02:38:02 +02:00
|
|
|
app.run();
|
2018-06-05 01:24:54 +02:00
|
|
|
|
2014-12-15 16:47:30 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|