Application: reduced idle PROFILE_RANGE spam

This commit is contained in:
Anthony J. Thibault 2016-03-23 17:12:48 -07:00
parent 8bb387dc74
commit cec6e7dd8d

View file

@ -2496,8 +2496,6 @@ static uint32_t _renderedFrameIndex { INVALID_FRAME };
void Application::idle(uint64_t now) {
PROFILE_RANGE(__FUNCTION__);
if (_aboutToQuit || _inPaint) {
return; // bail early, nothing to do here.
}
@ -2550,6 +2548,8 @@ void Application::idle(uint64_t now) {
return;
}
PROFILE_RANGE(__FUNCTION__);
// We're going to execute idle processing, so restart the last idle timer
_lastTimeUpdated.start();
@ -3140,7 +3140,7 @@ void Application::updateDialogs(float deltaTime) {
void Application::update(float deltaTime) {
PROFILE_RANGE_EX(__FUNCTION__, 0xffff0000, (uint64_t)getActiveDisplayPlugin()->presentCount());
PROFILE_RANGE_EX(__FUNCTION__, 0xffff0000, (uint64_t)_frameCount + 1);
bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings);
PerformanceWarning warn(showWarnings, "Application::update()");