mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 19:10:48 +02:00
Remove our idle() from paintGL now that it's in master
This commit is contained in:
parent
55894f2eee
commit
3a545399e3
1 changed files with 1 additions and 5 deletions
|
@ -1074,10 +1074,6 @@ void Application::paintGL() {
|
|||
if (_inPaint) {
|
||||
return;
|
||||
}
|
||||
|
||||
// this is a good idea
|
||||
idle();
|
||||
|
||||
_inPaint = true;
|
||||
Finally clearFlagLambda([this] { _inPaint = false; });
|
||||
|
||||
|
@ -2125,7 +2121,7 @@ void Application::idle(uint64_t now) {
|
|||
float secondsSinceLastUpdate = timeSinceLastUpdateUs / USECS_PER_SECOND;
|
||||
|
||||
if (isThrottled && (timeSinceLastUpdateUs / USECS_PER_MSEC) < THROTTLED_SIM_FRAME_PERIOD_MS) {
|
||||
//return; // bail early, we're throttled and not enough time has elapsed
|
||||
return; // bail early, we're throttled and not enough time has elapsed
|
||||
}
|
||||
|
||||
_lastTimeUpdated.start();
|
||||
|
|
Loading…
Reference in a new issue