summaryrefslogtreecommitdiff
path: root/src/helpers/BezierCurve.cpp
Commit message (Collapse)AuthorAgeFilesLines
* core: move parts of the animation system to hyprutils (#8868)Maximilian Seidler2025-01-071-90/+0
| | | | | | | | | | | | | * core: change animation manager to use Hyprutils::Animation * config: move animation config to hyprutils animation tree * use g_pAnimationManager->createAnimation and the new PHLANIMVAR template * core: use CGenericAnimatedVariabled::{enabled,setConfig,getStyle} and adapt callbacks * core: adapt animated variable usage (dereference the shared pointer) * misc: bump CMakeLists to hyprutils 0.3.3
* animationmgr: fixup stack-use-after-returnVaxry2024-12-161-3/+3
|
* core: drop using deques in favor of vectorsVaxry2024-12-161-8/+8
| | | | No point in most of these.
* bezier: optimize setup of bezier curves (#8528)Tom Englund2024-11-221-14/+25
| | | | | | | | | | avoid reallocations by resizing and copy the pVec into the resized m_dPoints, reduce the amount of calculations in baking to only do it once per iteration instead of twice. precompute in getYforT and getXforT return early in getYForPoint if x is equal or below 0. and use const references where we can. these changes we are now down to an average of "time to bake: 2.50µs." on my machine compared to before average of "time to bake: 11.15µs"
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-261-1/+1
| | | now we roll loops at blazing constified speed.
* internal: some minor fd/socket cleanups and make logging thread safe (#7123)Tom Englund2024-07-311-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bezier: dont loop on float values Using a floating-point loop variable with a fixed increment can cause precision errors over time due to the nature of floating-point arithmetic. and cause undesired effects. ex iteration 1 = 0.10000000149011611938 iteration 2 = 0.20000000298023223877 eventually.. iteration 8 = 0.80000001192092895508 iteration 9 = 0.89999997615814208984 * hyprctl: close sockets on destruction store socketpath and close the fd and unlink the socket path on exit. * eventloopmgr: close the timerfd close the timerfd on exit. * debug: make logging thread safe instead of opening and closing the logfile on each write open it on init and close it on compositor exit. also add a mutex so accidently using logging from a thread like the watchdog or similiar doesnt cause issues. * xwl: clean up fd logic check if the fd is actually opened before closing, and close the pipesource FD on exit.
* bezier: Optimize CBezierCurve::getYForPoint (#3321)Dickby2023-09-161-19/+17
|
* internal: Formatter rework (#3186)Vaxry2023-09-061-3/+3
|
* internal: cleanup headers in helpers/vaxerski2023-08-071-0/+3
|
* Bezier: Fix incorrect binary search in bezier approxvaxerski2023-03-031-8/+11
|
* Up the bezier bake countvaxerski2023-03-031-2/+2
|
* fix bezier step approxvaxerski2023-03-031-1/+1
|
* Unbreak build with libc++ (#1457)Jan Beich2023-01-311-0/+2
|
* Added clang format (#1239)Vaxry2022-12-161-9/+8
| | | * clang-format stuff and format files
* fix some memory issuesvaxerski2022-05-171-2/+2
|
* Improve bezier baking & approxvaxerski2022-05-121-10/+13
|
* Bake 200, more infovaxerski2022-04-231-9/+23
|
* Added bezier curvesvaxerski2022-04-231-0/+55