remove layer usage to reduce vram consumption

This commit is contained in:
2026-10-03 20:26:00 +02:00
parent fc672924d1
commit dc99d6677c
20 changed files with 1455 additions and 114 deletions
+3 -1
View File
@@ -285,13 +285,15 @@ QSGNode* WallpaperImage::updatePaintNode(
Q_UNUSED(oldNode);
if (m_hasPending) {
qDebug() << "pending format" << m_pendingImage.format()
<< double(m_pendingImage.sizeInBytes()) / 1048576.0 << "MB";
if (m_previousTexture) {
delete m_previousTexture;
m_previousTexture = nullptr;
}
m_previousTexture = m_texture;
m_texture = window()->createTextureFromImage(
m_pendingImage, QQuickWindow::TextureHasAlphaChannel);
m_pendingImage, QQuickWindow::TextureIsOpaque);
m_pendingImage = QImage();
m_hasPending = false;