History

Application: re-worded presentCount comments

Anthony J. Thibault committed 10 years ago

Commit 08c16be1 parent 11cd8e01 file · +4 −4Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+4−4
@@ -2455,16 +2455,16 @@ void Application::idle(uint64_t now) { · 2454 unmodified lines
2455 _renderedFrameIndex = INVALID_FRAME;2455 _renderedFrameIndex = INVALID_FRAME;
2456 }2456 }
2457 2457
2458 // Don't saturate the main thread with rendering, no paint calls until the last one is complete2458 // Don't saturate the main thread with rendering and simulation,
2459 // Also no paint calls until the display plugin has increased by at least one frame2459 // unless display plugin has increased by at least one frame
2460 // (don't render at 90fps if the display plugin only goes at 60)
2461 if (_renderedFrameIndex == INVALID_FRAME || presentCount > _renderedFrameIndex) {2460 if (_renderedFrameIndex == INVALID_FRAME || presentCount > _renderedFrameIndex) {
2462 // Record what present frame we're on2461 // Record what present frame we're on
2463 _renderedFrameIndex = presentCount;2462 _renderedFrameIndex = presentCount;
2464 2463
2465 // But when we DO request a paint, get to it as soon as possible: high priority2464 // request a paint, get to it as soon as possible: high priority
2466 postEvent(this, new QEvent(static_cast<QEvent::Type>(Paint)), Qt::HighEventPriority);2465 postEvent(this, new QEvent(static_cast<QEvent::Type>(Paint)), Qt::HighEventPriority);
2467 } else {2466 } else {
2467 // there's no use in simulating or rendering faster then the present rate.
2468 return;2468 return;
2469 }2469 }
2470 2470

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t