renderer: improve modeset timings (#11461)
some CRTCs will just happily eat frames and we can't do much. Some will eat one. Adds a 5-frame buffer to DPMS and Added animations. Better than nothing.
This commit is contained in:
parent
251288ec59
commit
0840103ae0
3 changed files with 38 additions and 8 deletions
|
|
@ -1310,7 +1310,7 @@ void CHyprRenderer::renderMonitor(PHLMONITOR pMonitor, bool commit) {
|
|||
else
|
||||
g_pHyprOpenGL->m_renderData.mouseZoomFactor = 1.f;
|
||||
|
||||
if (pMonitor->m_zoomAnimProgress->isBeingAnimated()) {
|
||||
if (pMonitor->m_zoomAnimProgress->value() != 1) {
|
||||
g_pHyprOpenGL->m_renderData.mouseZoomFactor = 2.0 - pMonitor->m_zoomAnimProgress->value(); // 2x zoom -> 1x zoom
|
||||
g_pHyprOpenGL->m_renderData.mouseZoomUseMouse = false;
|
||||
g_pHyprOpenGL->m_renderData.useNearestNeighbor = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue