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
24552455 _renderedFrameIndex = INVALID_FRAME;
24562456 }
24572457
2458− // Don't saturate the main thread with rendering, no paint calls until the last one is complete
2459− // Also no paint calls until the display plugin has increased by at least one frame
2460− // (don't render at 90fps if the display plugin only goes at 60)
2458+ // Don't saturate the main thread with rendering and simulation,
2459+ // unless display plugin has increased by at least one frame
24612460 if (_renderedFrameIndex == INVALID_FRAME || presentCount > _renderedFrameIndex) {
24622461 // Record what present frame we're on
24632462 _renderedFrameIndex = presentCount;
24642463
2465− // But when we DO request a paint, get to it as soon as possible: high priority
2464+ // request a paint, get to it as soon as possible: high priority
24662465 postEvent(this, new QEvent(static_cast<QEvent::Type>(Paint)), Qt::HighEventPriority);
24672466 } else {
2467+ // there's no use in simulating or rendering faster then the present rate.
24682468 return;
24692469 }
24702470

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