summaryrefslogtreecommitdiff
path: root/src/render
Commit message (Collapse)AuthorAgeFilesLines
* internal: unify VT gettingvaxerski2025-08-141-5/+3
|
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-148-74/+74
|
* renderer: minor fixups to uv calcs (#11375)Vaxry2025-08-081-9/+12
| | | Fixes #11374
* popup: imorove logging, use fadeAlpha for opacityVaxry2025-08-031-1/+7
|
* renderer: fix snapshot coordsVaxry2025-08-031-1/+2
|
* renderer: add popup fade-in-out (#11313)Vaxry2025-08-033-3/+103
| | | Adds xdg popup fade-in and fade-out
* renderer: apply default luma for reverting back to srgbVaxry2025-08-021-5/+8
| | | | fixes #11315
* screencopy: un-hdr screencopy buffers for cm-unaware clients (#11294)Vaxry2025-07-312-5/+11
|
* opengl: improve render fn arg clarity (#11286)Vaxry2025-07-318-159/+260
|
* renderer: use CRegion foreach over getRects (#10980)Tom Englund2025-07-303-39/+35
| | | | instead of allocating and returning a vector, use forEach to directly call a function on the rects.
* core: disable esync for non-linux kernelsVaxry2025-07-291-0/+5
| | | | ref #10437, BSD doesn't support timeline fds
* ci: correct tar command for xz compression & fix typos (#11213)xqso2025-07-254-5/+5
|
* core: move workspace ptrs to weak (#11194)Vaxry2025-07-241-5/+4
| | | | Fixes some race conditions that come up in tests. We only clean up workspaces when we render a frame. With this, they are always cleared instantly.
* renderer: implement wp-color-management-v1 transfer functions (#11084)Thomas Müller2025-07-201-69/+157
|
* internal: replace unsafe strcpy with snprintf (#11128)MirzaSamadAhmedBaig2025-07-201-2/+1
|
* systeminfo: print more render infoVaxry2025-07-201-3/+3
|
* renderer: Add cursor:invisible to allow to hide the cursor (#11058)Mozzarella322025-07-201-1/+2
|
* opengl: detect android fence support and disable explicit if it's missing ↵Vaxry2025-07-193-6/+36
| | | | | (#11077) Checks for explicit sync support via the android fences, and falls back to implicit sync if it isn't
* config: disable hw on mgpu nvidia by default (#11018)Vaxry2025-07-162-0/+9
|
* renderer: use makeUnique for session-lock render passes (#11019)Maximilian Seidler2025-07-141-3/+3
| | | Fixup for a merge conflict introduced by #10865.
* session-lock: don't render workspaces when locked (#10865)Maximilian Seidler2025-07-142-46/+58
| | | Avoid rendering the workspace behind if we are locked
* presentation: move to unique ptrsTom Englund2025-07-101-2/+2
| | | | less refcounting, move by rvalue.
* renderpass: use unique ptr instead of shared ptrTom Englund2025-07-1010-41/+41
| | | | | lets use unique ptrs instead of refcounting shared ptr when its not needed, use rvalue reference to construct in vector directly.
* renderer: Added a pointer position uniform to the screen shader. (#10821)FrancisTheCat2025-07-082-3/+20
|
* core: use new typed signals from hu (#10853)outfoxxed2025-07-081-1/+1
|
* Renderer: Implement new render scheduling (#10936)Vaxry2025-07-082-8/+8
| | | | | | | | | Implements a new render scheduling method, where we triple buffer when necessary. Enabled by default, improves FPS on underpowered devices. --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* opengl: avoid reallocations in EGLImage (#10960)Tom Englund2025-07-071-21/+24
| | | | | use a std::array instead of vector and avoid reallocations. it should at most be 49 entries, so make the array 50. and RASSERT check it incase more entries gets added in the future.
* pass: overload TexPass constructorTom Englund2025-07-075-7/+12
| | | | | overload it with a rvalue to allow us to move the data directly avoiding an extra copy. because SRenderData is not trivially copyable.
* renderer: move render calculation behind if caseTom Englund2025-07-071-6/+6
| | | | | | the durationUs is not used unless debug overlay is enabled, lets not calculate it each call to rendermonitor if not enabled. same with renderStart.
* plugins: made currentWindow available in RENDER_PRE_WINDOW (#10957)jmanc32025-07-071-3/+3
|
* texture: zero out the cached states in destroy (#10954)Tom Englund2025-07-071-0/+1
| | | | if destroyTexture is called outside of the texture destructor we need to empty out the cached states.
* renderer: add mouse zoom animations (#10882)aphelei2025-07-011-4/+5
| | | Adds animations for the mouse zoom effect.
* opengl: add missing skipcm if case (#10888)Tom Englund2025-07-011-0/+6
| | | | | missing skipcm if case so the CM uniforms where never added on the gradient2 renderBorder case, until the non gradient2 one had run atleast once. causing it to not render on first launch/delayed.
* shader: replace texture2d with texture (#10893)Tom Englund2025-07-018-26/+24
| | | | | | | | | | * shader: replace texture2d with texture remove unused v_color and replace deprecated texture2d with texture. * shader: use the more modern essl3 extension GL_OES_EGL_image_external_essl3 provides support for samplerExternalOES in texture function, aquamarine already use it. apply it here too.
* renderer: reduce a lot of glcalls and cache various states (#10757)Tom Englund2025-06-2524-886/+856
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* renderer/cm: Add automatic hdr (#9785)UjinT342025-06-231-17/+30
|
* renderer: add wrapping options to renderTextureWithBlur method (#10807)zacoons2025-06-212-6/+8
|
* config: nuke explicit_sync settingsVaxry2025-06-192-32/+0
| | | | were not used anymore, explicit is on by default
* renderer: make lock fail textures dynamically loadedVaxry2025-06-193-13/+41
| | | | this should reduce idle vram usage by a whopping 16MB, but also might fix the tty unknown issue.
* grpupbar: Add config options to color inactive and locked groupbar titles ↵Jacob Ilias Komissar2025-06-162-8/+26
| | | | (#10667)
* config/monitor: Add monitor v2 HDR rules (#10623)UjinT342025-06-153-9/+6
|
* opengl: use a stack for storing monitor transform enabledVaxry2025-06-156-28/+46
| | | | fixes #10487
* internal: clean up dead snapshot codeVaxry2025-06-152-49/+4
|
* renderer: fixup some missing fadeout cases with specialVaxry2025-06-111-28/+31
| | | | | | | | | | fixes some fadeout missing cases: - closing last window - closing above fs - closing in general fixes #10283
* renderer: refuse rendering invalid resolutionsVaxry2025-06-111-0/+5
| | | | sometimes a driver fails to assign any reasonable mode in which case we might render 0x0 which will make us crash. Don't do that. Part 1 of #10678
* internal: Fix HyprError not displaying at startup (#10606)Kamikadze2025-06-011-1/+0
|
* internal: refactor to use empty() (#10599)Kamikadze2025-05-313-8/+8
|
* refactor: use std::ranges whenever possible (#10584)Kamikadze2025-05-304-19/+17
|
* groupbar: force recalc on visibility changesvaxerski2025-05-282-5/+15
| | | | fixes #10566
* pass/surface: make sure popup blurs are marked for require live blurVaxry2025-05-251-0/+6
| | | | fixes #10535