From d9f14cbed8125c596e50d4946d7176470fd7da62 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Mon, 20 Apr 2015 15:20:38 +0000 Subject: [PATCH] Reduced FFTW patience to 1 for debug builds for fastest startup Don't make proper Windows applications in debug builds. This means that the debug output now goes to the console and the program (wsjtx.exe) no longer detaches from the console. If you require a proper Windows executable, for instance if you are getting the debug output via the normal method of attaching a debugger, you can still do so by setting the CMake configuration option WSJT_CREATE_WINMAIN to ON for your debug build configuration on Windows. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5249 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- CMakeLists.txt | 13 ++++++++----- mainwindow.cpp | 7 +++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef161257e..e0722cb01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,12 +119,15 @@ CMAKE_DEPENDENT_OPTION (WSJT_QDEBUG_IN_RELEASE "Leave Qt debugging statements in CMAKE_DEPENDENT_OPTION (WSJT_ENABLE_EXPERIMENTAL_FEATURES "Enable features not fully ready for public releases." ON "is_debug_build" OFF) CMAKE_DEPENDENT_OPTION (WSJT_CREATE_WINMAIN - "The wsjtx target is normally built as GUI executable with a WinMain entry point on Windows, -if you want a console application instead then set this option to OFF. + "The wsjtx target is normally built as GUI executable with a WinMain +entry point on Windows, if you want a console application instead then +set this option to OFF. -If you just want to see the debug output from the application then the easiest way is to -attach a debugger which will then receive the console output inside its console." ON - "is_debug_build;WIN32" ON) +If you just want to see the debug output from the application then the +easiest way is to attach a debugger which will then receive the +console output inside its console. This option is off by default for +Debug configuration builds anyway." ON + "NOT is_debug_build;WIN32" OFF) # # decide if we are bundling kvasd (non-FOSS) diff --git a/mainwindow.cpp b/mainwindow.cpp index f4160eb44..726f28e5f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -407,8 +407,11 @@ MainWindow::MainWindow(bool multiple, QSettings * settings, QSharedMemory *shdme QStringList jt9_args { "-s", QApplication::applicationName () // shared memory key, // includes rig-name - - , "-w", "2" //FFTW patience +#ifdef NDEBUG + , "-w", "2" //FFTW patience - release +#else + , "-w", "1" //FFTW patience - debug builds for speed +#endif // The number of threads for FFTW specified here is chosen as // three because that gives the best throughput of the large