summaryrefslogtreecommitdiff
path: root/src/debug/HyprNotificationOverlay.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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-3/+3
|
* 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-2/+2
|
* refactor: use std::ranges whenever possible (#10584)Kamikadze2025-05-301-1/+1
|
* 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-2/+2
| | | | | * render: refactor class member vars * render: fix clang format
* helpers: refactor class member vars (#10218)davc0n2025-04-301-5/+5
|
* compositor: refactor class member vars (#10141)davc0n2025-04-221-1/+1
|
* debug: refactor class member vars (#10130)davc0n2025-04-211-53/+53
|
* renderer/internal: stop using box pointersVaxry2025-01-261-3/+3
| | | | in favor of const refs
* core: move all shared_ptrs from the STL to hyprutils (#9143)Vaxry2025-01-231-1/+1
|
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-171-0/+4
| | | Cleanup some unneeded includes to speed up compilation
* Renderer: rewrite render scheduling (#8683)Vaxry2024-12-221-2/+7
| | | This rewrites renderer scheduling. Occlusion is now unified in a new Pass type.
* internal: Make static analysis more happy (#8767)Ikalco2024-12-191-1/+1
| | | | | | | | | * make functions used in 1 file static * fix invalid substr param -1 * give default initializer to borderGradier * move RASSERT from printf to std::print
* core: drop using deques in favor of vectorsVaxry2024-12-161-9/+9
| | | | No point in most of these.
* core: move colorspace handling to oklab (#8635)Vaxry2024-12-031-2/+2
| | | | | | | | | | | * Meson: add hyprgraphics * Nix: add hyprgraphics * CI/setup_base: get hyprgraphics-git --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* internal: Move CMonitor to SP (#8178)Vaxry2024-10-191-3/+3
| | | | | * move monitors to sp * XD
* notif-overlay: add a bit of padding for iconsVaxry2024-10-131-1/+1
|
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-261-2/+2
| | | now we roll loops at blazing constified speed.
* core: Move to hyprutils for MathVaxry2024-06-191-1/+1
| | | | | | Moves CRegion, CBox and Vector2D over to hyprutils. Requires hyprutils>=0.1.4
* wayland/core: move to new impl (#6268)Vaxry2024-06-081-3/+5
| | | | | * 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-57/+52
| | | | (#6138)
* internal: fix a few asan reported leaks on exit of hyprland (#5852)Tom Englund2024-05-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * notifications: free cairo images on destruction asan reports a leak on exit if we dont free the image we created in the draw function. add a destructor and free images on exit. * compositor: destroy wlroots types on exit there are a few types not being destroyed on exit and causing a leak on exit in wlroots reported by asan, add those. * cursormgr: ensure we destroy cursor mgr on exit add a destructor and call wlr_xcursor_manager_destroy on the manager on destruction, leak reported by asan. * keybindmgr: free state and keymap add missing keymap_unref on creation, and add a destructor and free the state on exit. leak reported by asan. * skeyboard: add destructor and free state free the state on destruction of keyboard, reported as leak by asan
* HookSystem: improve callback safetyVaxry2024-04-201-1/+1
|
* notifications: fix notifications on manually rotated monitor (#5599)FUFSoB2024-04-151-6/+9
|
* notify: Add custom fontsize support for notifications (#4981)ItsDrike2024-03-061-17/+15
| | | | | | | | | | | | | * Add custom fontsize support for notifications * Remove debug stuff * Use original default font size * Handle fontsize as keyword arg * Use CVarList::join instead of for loop * Use size_t for msgidx
* notifs: Implement notification dimissing (#4790)ItsDrike2024-03-021-0/+12
|
* renderer: don't set solitary on present notificationsvaxerski2024-02-141-0/+4
| | | | fixes #4647
* Internal: Hyprland box implementation (#3755)Vaxry2023-11-041-4/+4
| | | | | | | * box impl * remove unused operators * missed applyfromwlr
* hooksystem: add callbackinfo struct and cancellable eventsVaxry2023-10-211-1/+1
|
* notifications: Schedule a frame on notification creation (#3556)Michał Lewandowski2023-10-131-0/+4
|
* notifs: use empty color for autovaxerski2023-03-201-1/+1
|
* feat: add pretty notificationsvaxerski2023-03-201-8/+78
|
* Plugin System (#1590)Vaxry2023-02-271-0/+155
--------- Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>