summaryrefslogtreecommitdiff
path: root/src/debug/HyprDebugOverlay.cpp
Commit message (Collapse)AuthorAgeFilesLines
* debug/overlay: optimize rendering, cleanup and nicetify (#14097)Vaxry2026-04-161-268/+0
| | | | optimizes the rendering, drops direct cairo, fixes up api. Also improves the visuals etc of the overlay
* renderer: refactor Texture, Framebuffer and Renderbuffer (#13437)UjinT342026-03-061-10/+2
| | | Part 1 of the renderer refactors
* compositor: Configurable behavior when window to be focused conflicts with ↵Nikolai Nechaev2025-11-251-1/+2
| | | | | | | | | | fullscreen (#12033) Renames `misc:new_window_takes_over_fullscreen` into `misc:on_focus_under_fullscreen` and implements the following behavior: - By default, when a tiling window is being focused on a workspace where a fullscreen/maximized window exists, respect the `misc:on_focus_under_fullscreen` config variable.
* input: Add fully configurable trackpad gestures (#11490)Vaxry2025-08-281-1/+1
| | | Adds configurable trackpad gestures
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-141-7/+7
|
* debugOverlay: fix tick measurementVaxry2025-07-121-1/+1
|
* renderpass: use unique ptr instead of shared ptrTom Englund2025-07-101-1/+1
| | | | | lets use unique ptrs instead of refcounting shared ptr when its not needed, use rvalue reference to construct in vector directly.
* pass: overload TexPass constructorTom Englund2025-07-071-1/+1
| | | | | overload it with a rvalue to allow us to move the data directly avoiding an extra copy. because SRenderData is not trivially copyable.
* renderer: reduce a lot of glcalls and cache various states (#10757)Tom Englund2025-06-251-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * opengl: cache viewport state according to nvidia docs calling glViewPort unnecessarily on the same already set viewport is wasteful and can cause state changes when not needed. cache it in a struct and only call it when the viewport is actually changing. * opengl: cache glenable/gldisable state avoid making multiple glenable/gldisable calls on already set caps, can cause state changes and incur driver overhead. * opengl: cache glscissor box only call glscissor if the box actually has changed, try to avoid state changes. * opengl: cache gluniform calls cache the gluniform calls, the uniform values are cached in driver per program only the drawcalls setting the uniform yet again with the same value on same location is causing more overhead then caching it ourself and just no oping on it if no changes. * shader: rewrite handling of uniforms and state this is way faster as we don't need to mess with maps (hashing, etc) and instead can just use an array * opengl: stuff and 300 shaders * opengl: typo * opengl: get the uniform locations properly now that the legacy shaders are gone get the uniformlocations for SKIP_CM etc, so they can be properly set and used depending on if cm_enabled is set to false or true, before it was falling back to a legacy shader that didnt even have those uniforms. * opengl: check epsilon on float and remove extra glcall seems an extra unset glcall was added, remove it. and check the float epsilon on the glfloat. * opengl: remove instanced shader draw remove the instanced boolean from the vertex shader, might be neglible differences, needs more benchmark/work to see if its even worth it. * texture: cache texture paramaters parameters where occasionally set twice or more on same texture, short version wrap it and cache it. and move gpu churn to cpu churn. add a bind/unbind to texture aswell. * texture: use fast std::array caching cache the texparameter values in fast array lookups and incase we dont want it cached, apply it anyways. * shader: fix typo and hdr typo actually use Matrix4x2fv in the 4x2fv cache function, and send the proper float array for hdr. * texture: make caching not linear lookup make caching of texture params not linear. * minor style changes * opengl: revert drawarrays revert the mostly code style reduce loc change of drawarrays, and focus on the caching. its a if else case going wrong here breaking blur/contrast amongst others drawing. --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
* internal: refactor to use empty() (#10599)Kamikadze2025-05-311-4/+4
|
* core: drop the legacy renderer (#10408)Tom Englund2025-05-151-3/+0
| | | | | | | | | | | * core: drop the legacy renderer the legacy renderer is broken and barely used, drop it. * Nix: drop support for legacyRenderer --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* render: refactor class member vars (#10292)davc0n2025-05-051-3/+3
| | | | | * render: refactor class member vars * render: fix clang format
* managers: refactor class member vars (#10242)davc0n2025-05-021-1/+1
|
* helpers: refactor class member vars (#10218)davc0n2025-04-301-9/+9
|
* compositor: refactor class member vars (#10141)davc0n2025-04-221-4/+4
|
* debug: refactor class member vars (#10130)davc0n2025-04-211-58/+58
|
* renderer/internal: stop using box pointersVaxry2025-01-261-2/+2
| | | | in favor of const refs
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-171-0/+1
| | | Cleanup some unneeded includes to speed up compilation
* debug: fix overlay not renderingvaxerski2024-12-261-2/+6
|
* core: drop using deques in favor of vectorsVaxry2024-12-161-3/+33
| | | | No point in most of these.
* internal: Move CMonitor to SP (#8178)Vaxry2024-10-191-9/+9
| | | | | * move monitors to sp * XD
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-261-1/+1
| | | now we roll loops at blazing constified speed.
* core: make most for loops use const references (#7527)Tom Englund2024-08-261-4/+4
| | | | why not let the compiler optimise things for us at hyprspeeds when we can.
* core: fix data race and a unsigned int rollover (#7278)Tom Englund2024-08-121-8/+8
| | | | | | | | | | | | | | | | | | * keybindmgr: avoid uint rollover on mouse keycode mouse keycode is 0, and the switch case checks for 0 - 8 and rolls over, just return early if keycode is 0. * watchdog: avoid data races in watchdog asan thread sanitizer reported data races in the watchdog from reading and setting the bool variables make them std::atomic bools. also add a atomic bool for the main thread to wait for to avoid data race when reading the config values. * hyprdebug: change non unicode character to name asan created false positives and didnt like this bit, so for the sake of easier debugging rename it to something unicode.
* wayland/core: move to new impl (#6268)Vaxry2024-06-081-3/+7
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* renderer: render fonts with pango, add global `font_family` config option ↵giskard2024-05-221-55/+56
| | | | (#6138)
* cursor: move to a hyprland implVaxry2024-05-091-1/+1
| | | | | | | This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
* Internal: Hyprland box implementation (#3755)Vaxry2023-11-041-1/+1
| | | | | | | * box impl * remove unused operators * missed applyfromwlr
* logging/format: use std::format_string to catch formatting string errors at ↵memchr2023-09-201-5/+5
| | | | | | | compile time (#3377) * fix(log): use constexpr format string * deprecate getFormat
* internal: Formatter rework (#3186)Vaxry2023-09-061-5/+5
|
* Update the debug overlayvaxerski2023-03-031-6/+57
|
* use sans for fonts instead of noto sansvaxerski2023-02-211-1/+1
|
* Normalize color storagevaxerski2023-01-051-1/+1
| | | | | | Colors are now normalized to 0 - 1 values instead of 0 - 255 causes calculations to be simpler and generally cleans up the codebase.
* Added clang format (#1239)Vaxry2022-12-161-12/+18
| | | * clang-format stuff and format files
* added DPMSvaxerski2022-07-271-6/+6
|
* mordernize pointersvaxerski2022-06-301-4/+4
|
* Added rendertime no overlayvaxerski2022-05-281-0/+27
|
* Added a debug overlayvaxerski2022-05-281-0/+154