im trying to zoom in and out the desktop would like some helps thanks #43
-
i added into Ecompositor.cpp void ECompositor::setupAutomaticZoom()
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It could be slow for two reasons:
Instead of changing the output scale, another approach could involve creating a root parent layer view and using |
Beta Was this translation helpful? Give feedback.
It could be slow for two reasons:
You're creating a scaled copy of the wallpaper texture each time
LOutput::resizeGL()
is called, just like the tutorial, which is slow but produces higher quality scaling. Instead, you could keep the texture intact and useLTextureView::setSrcRect()
andLTextureView::setDstSize()
to crop and scale the wallpaper view as desired without any performance penalty.Louvre uses oversampling by default when using fractional scales, which means it destroys and creates a new framebuffer each time you change the scale. You could disable it while doing the animation with
LOutput::enableFractionalOversampling()
. This way, everything is scaled and rendered directly …