Set the system timer precision to 1 ms while encoding, because this seems to improve encoding performance quite a bit. Will be reset to default, when encoding is done, so LameXP won't "eat the battery" while idle.

This commit is contained in:
LoRd_MuldeR 2014-12-06 22:05:35 +01:00
parent b704d5161f
commit f064187bb1
3 changed files with 9 additions and 4 deletions

View File

@ -33,7 +33,4 @@ Global
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(Performance) = preSolution
HasPerformanceSessions = true
EndGlobalSection
EndGlobal EndGlobal

View File

@ -35,7 +35,7 @@
#define VER_LAMEXP_MINOR_LO 1 #define VER_LAMEXP_MINOR_LO 1
#define VER_LAMEXP_TYPE Beta #define VER_LAMEXP_TYPE Beta
#define VER_LAMEXP_PATCH 5 #define VER_LAMEXP_PATCH 5
#define VER_LAMEXP_BUILD 1619 #define VER_LAMEXP_BUILD 1621
#define VER_LAMEXP_CONFG 1558 #define VER_LAMEXP_CONFG 1558
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -75,6 +75,10 @@ AbstractTool::AbstractTool(void)
{ {
s_jobObjectInstance.reset(new JobObject()); s_jobObjectInstance.reset(new JobObject());
s_startProcessTimer.reset(new QElapsedTimer()); 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_jobObjectInstance.reset(NULL);
s_startProcessTimer.reset(NULL); s_startProcessTimer.reset(NULL);
if(!MUtils::OS::reset_timer_resolution())
{
qWarning("Failed to reset system timer resolution!");
}
} }
} }