36 lines
961 B
C++
Raw Normal View History

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
*
* Author: Quentin Bazin, <quent42340@gmail.com>
2014-12-15 16:47:30 +01:00
*
* =====================================================================================
*/
#include "ClientApplication.hpp"
2014-12-15 16:47:30 +01: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
int main(int argc, char **argv) {
ClientApplication app(argc, argv);
app.run();
2018-06-05 01:24:54 +02:00
2014-12-15 16:47:30 +01:00
return 0;
}