Qt 5.6.2 open very slowly in release mode (32bit/64bit)



  • Hi.
    I release my application and when i run, my application open very slowly.
    But when i run in compatibility mode my application open fast.
    Please help me.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What OS ?
    What kind of application ?
    What modules are you using ?
    Are you tied to that old version of Qt ?



  • Sorry!

    I use Windows 10 for develop my application.
    I build with MSVC2013(32bit/64bit) and MinGW(32bit) but release mode open slowly,

    .pro file

    QT       += core gui sql
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    CONFIG += c++11
    
    TARGET = HandyKaraoke
    TEMPLATE = app
    
    SOURCES += main.cpp\
            MainWindow.cpp \
            ...
    
    HEADERS  += MainWindow.h  \
            ...
    
    win32 {
        LIBS += -lwinmm
        SOURCES += Midi/rtmidi/RtMidi.cpp
        HEADERS  += Midi/rtmidi/RtMidi.h
        INCLUDEPATH += $$PWD/Midi/rtmidi
    
        contains(QT_ARCH, i386) {
            message("32-bit")
            LIBS += -L$$PWD/BASS/bass24/ -lbass
            LIBS += -L$$PWD/BASS/bassmidi24/ -lbassmidi
            LIBS += -L$$PWD/BASS/bass_fx24/ -lbass_fx
            LIBS += -L$$PWD/BASS/bassmix24/ -lbassmix
            LIBS += -L$$PWD/BASS/bass_vst24/ -lbass_vst
    
            QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
        } else {
            message("64-bit")
            LIBS += -L$$PWD/BASS/bass24/x64/ -lbass
            LIBS += -L$$PWD/BASS/bassmidi24/x64/ -lbassmidi
            LIBS += -L$$PWD/BASS/bass_fx24/x64/ -lbass_fx
            LIBS += -L$$PWD/BASS/bassmix24/x64/ -lbassmix
            LIBS += -L$$PWD/BASS/bass_vst24/x64/ -lbass_vst
        }
        INCLUDEPATH += $$PWD/BASS/bass24
        INCLUDEPATH += $$PWD/BASS/bassmidi24
        INCLUDEPATH += $$PWD/BASS/bass_fx24
        INCLUDEPATH += $$PWD/BASS/bassmix24
        INCLUDEPATH += $$PWD/BASS/bass_vst24
    
        RC_ICONS = icon.ico
    }
    

  • Lifetime Qt Champion

    What is this bass library ?



  • @SGaist
    BASS is an audio library


  • Lifetime Qt Champion

    Does it do any lengthy initialisation/device detection/etc. ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.