Hyprland/src/managers
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
..
eventLoop internal: more profiling less calls and local copies (#8300) 2024-10-30 23:20:32 +00:00
input internal: more profiling less calls and local copies (#8300) 2024-10-30 23:20:32 +00:00
AnimationManager.cpp core: move internal structures to monitor pointers (#8266) 2024-10-27 18:45:38 +00:00
AnimationManager.hpp internal: new shared_ptr and weak_ptr implementation (#5883) 2024-05-05 17:16:00 +01:00
CursorManager.cpp internal: Move CMonitor to SP (#8178) 2024-10-19 23:03:29 +01:00
CursorManager.hpp cursormgr: fix cursor gsettings on session change (#7295) 2024-08-13 18:27:00 +01:00
EventManager.cpp core: Include cstring whenever strncpy is used (#7267) 2024-08-10 21:09:12 +01:00
EventManager.hpp core: move to hyprutils for utils (#6385) 2024-06-11 17:17:45 +02:00
HookSystemManager.cpp misc: constify the remaining for loops (#7534) 2024-08-26 20:24:30 +02:00
HookSystemManager.hpp internal: new shared_ptr and weak_ptr implementation (#5883) 2024-05-05 17:16:00 +01:00
KeybindManager.cpp group: fix moveWindowIntoGroup (#8297) 2024-10-30 10:00:58 +00:00
KeybindManager.hpp hyprctl: move setprop into dispatchers (#8275) 2024-10-28 18:18:58 +00:00
LayoutManager.cpp hyprctl: Add 'layouts' command (#3895) 2023-11-21 18:43:38 +00:00
LayoutManager.hpp hyprctl: Add 'layouts' command (#3895) 2023-11-21 18:43:38 +00:00
PointerManager.cpp internal: more profiling less calls and local copies (#8300) 2024-10-30 23:20:32 +00:00
PointerManager.hpp internal: cleanup CMonitor usage and fix a few ref hogs 2024-10-26 02:06:13 +01:00
ProtocolManager.cpp internal: Move CMonitor to SP (#8178) 2024-10-19 23:03:29 +01:00
ProtocolManager.hpp internal: Move CMonitor to SP (#8178) 2024-10-19 23:03:29 +01:00
SeatManager.cpp input: try to refocus a focusable window when seat grabs are reset (#7669) 2024-09-07 01:06:55 +01:00
SeatManager.hpp input: Fix VRR for constrained cursors (#6877) 2024-10-12 01:29:51 +01:00
SessionLockManager.cpp internal: Move CMonitor to SP (#8178) 2024-10-19 23:03:29 +01:00
SessionLockManager.hpp renderer: better lockscreen dead behavior (#7574) 2024-08-29 23:30:12 +02:00
ThreadManager.cpp core: fix a few small memory leaks on exit (#6470) 2024-06-13 12:08:02 +02:00
ThreadManager.hpp Added clang format (#1239) 2022-12-16 17:17:31 +00:00
TokenManager.cpp internal: Remove some unused lambda captures (#8218) 2024-10-24 13:12:41 +01:00
TokenManager.hpp core: move to steady_clock where applicable 2024-06-25 16:05:47 +02:00
XCursorManager.cpp xcursor: don't crash on broken permissions in X themes 2024-10-12 15:18:39 +01:00
XCursorManager.hpp xcursormgr: dont apply scale on gsettings (#7316) 2024-08-16 17:00:59 +01:00
XWaylandManager.cpp core: move internal structures to monitor pointers (#8266) 2024-10-27 18:45:38 +00:00
XWaylandManager.hpp wayland/core: move to new impl (#6268) 2024-06-08 10:07:59 +02:00