OSDN Git Service

Set the system timer precision to 1 ms while encoding, because this seems to improve...
authorLoRd_MuldeR <mulder2@gmx.de>
Sat, 6 Dec 2014 21:05:35 +0000 (22:05 +0100)
committerLoRd_MuldeR <mulder2@gmx.de>
Sat, 6 Dec 2014 21:05:35 +0000 (22:05 +0100)
LameXP_VS2013.sln
src/Config.h
src/Tool_Abstract.cpp

index da57aa1..aa056c2 100644 (file)
@@ -33,7 +33,4 @@ Global
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
        EndGlobalSection
-       GlobalSection(Performance) = preSolution
-               HasPerformanceSessions = true
-       EndGlobalSection
 EndGlobal
index a52c269..fa22099 100644 (file)
@@ -35,7 +35,7 @@
 #define VER_LAMEXP_MINOR_LO                                    1
 #define VER_LAMEXP_TYPE                                                Beta
 #define VER_LAMEXP_PATCH                                       5
-#define VER_LAMEXP_BUILD                                       1619
+#define VER_LAMEXP_BUILD                                       1621
 #define VER_LAMEXP_CONFG                                       1558
 
 ///////////////////////////////////////////////////////////////////////////////
index b4f3534..2d7a9bb 100644 (file)
@@ -75,6 +75,10 @@ AbstractTool::AbstractTool(void)
        {
                s_jobObjectInstance.reset(new JobObject());
                s_startProcessTimer.reset(new QElapsedTimer());
+               if(!MUtils::OS::setup_timer_resolution())
+               {
+                       qWarning("Failed to setup system timer resolution!");
+               }
        }
 }
 
@@ -89,6 +93,10 @@ AbstractTool::~AbstractTool(void)
        {
                s_jobObjectInstance.reset(NULL);
                s_startProcessTimer.reset(NULL);
+               if(!MUtils::OS::reset_timer_resolution())
+               {
+                       qWarning("Failed to reset system timer resolution!");
+               }
        }
 }