Hyprland/src/protocols/core
Tom Englund 7c7a84ff60
internal: more profiling less calls and local copies (#8300)
* compositor: reduce amount of window box copies

mousemoveunified can call this very frequently, the cbox copying
actually shows up as an impact in such cases, move it down in the scope
and only do it when necessery.

* core: constify and reference frequent calls

profiling shows these as frequent called functions try to reduce the
amount of copies with references and const the variables.

* pointermgr: remove not used local copy, const ref

remove unneded local copies and const ref cursorsize.

* inputmgr: reduce amount of calls to vectortowindow

the amount of calls to g_pCompositor->vectorToWindowUnified fast ramps
up in cpu usage with enough windows existing and moving the mouse, move
the PWINDOWIDEAL up and reuse it if its already the same.

* protocol: compositor remove unused local copy

remove unused local copy of accumulateCurrentBufferDamage and const
previousBuffer.

* renderer: reduce scope of variables and refactor

move a few variables down in their scopes to reduce the amount of calls
and copies when not needed, also add one more for loop in
renderWorkspaceWindows and store the windows in a vector with
weakpointers that should be rendered, this adds a loop but reduces the
amount of repeated calls to shouldRenderWindow and also makes the rest
of the loops go over way smaller vector when many windows exist.
2024-10-30 23:20:32 +00:00
..
Compositor.cpp internal: more profiling less calls and local copies (#8300) 2024-10-30 23:20:32 +00:00
Compositor.hpp internal: few more marginal optimisations from profiling (#8271) 2024-10-28 18:02:52 +00:00
DataDevice.cpp internal: Move CMonitor to SP (#8178) 2024-10-19 23:03:29 +01:00
DataDevice.hpp internal: Move CMonitor to SP (#8178) 2024-10-19 23:03:29 +01:00
Output.cpp internal: cleanup CMonitor usage and fix a few ref hogs 2024-10-26 02:06:13 +01:00
Output.hpp internal: cleanup CMonitor usage and fix a few ref hogs 2024-10-26 02:06:13 +01:00
Seat.cpp seat: avoid sending pointless 'keymap' and 'repeat_info' events (#8276) 2024-10-28 19:25:27 +00:00
Seat.hpp seat: avoid sending pointless 'keymap' and 'repeat_info' events (#8276) 2024-10-28 19:25:27 +00:00
Shm.cpp shm: send a static list of shm formats 2024-09-20 22:56:15 +01:00
Shm.hpp Core: Move to aquamarine (#6608) 2024-07-21 13:09:54 +02:00
Subcompositor.cpp misc: constify the remaining for loops (#7534) 2024-08-26 20:24:30 +02:00
Subcompositor.hpp wayland/surface: fixup self-owning surface roles 2024-08-03 17:58:06 +02:00