mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +02:00
MS14615: Prevent memory overuse when minimized
This commit is contained in:
parent
46a6334c72
commit
259803f856
2 changed files with 1 additions and 4 deletions
|
@ -4238,7 +4238,7 @@ bool Application::acceptSnapshot(const QString& urlString) {
|
||||||
static uint32_t _renderedFrameIndex { INVALID_FRAME };
|
static uint32_t _renderedFrameIndex { INVALID_FRAME };
|
||||||
|
|
||||||
bool Application::shouldPaint() const {
|
bool Application::shouldPaint() const {
|
||||||
if (_aboutToQuit) {
|
if (_aboutToQuit || _window->isMinimized()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,9 +30,6 @@ void Application::editRenderArgs(RenderArgsEditor editor) {
|
||||||
|
|
||||||
void Application::paintGL() {
|
void Application::paintGL() {
|
||||||
// Some plugins process message events, allowing paintGL to be called reentrantly.
|
// Some plugins process message events, allowing paintGL to be called reentrantly.
|
||||||
if (_aboutToQuit || _window->isMinimized()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_renderFrameCount++;
|
_renderFrameCount++;
|
||||||
_lastTimeRendered.start();
|
_lastTimeRendered.start();
|
||||||
|
|
Loading…
Reference in a new issue