aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/helpers/BezierCurve.cpp
AgeCommit message (Collapse)Author
9 daysanimationmgr: fixup stack-use-after-returnVaxry
9 dayscore: drop using deques in favor of vectorsVaxry
No point in most of these.
2024-11-22bezier: optimize setup of bezier curves (#8528)Tom Englund
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"
2024-08-26misc: constify the remaining for loops (#7534)Tom Englund
now we roll loops at blazing constified speed.
2024-07-31internal: some minor fd/socket cleanups and make logging thread safe (#7123)Tom Englund
* 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.
2023-09-16bezier: Optimize CBezierCurve::getYForPoint (#3321)Dickby
2023-09-06internal: Formatter rework (#3186)Vaxry
2023-08-07internal: cleanup headers in helpers/vaxerski
2023-03-03Bezier: Fix incorrect binary search in bezier approxvaxerski
2023-03-03Up the bezier bake countvaxerski
2023-03-03fix bezier step approxvaxerski
2023-01-31Unbreak build with libc++ (#1457)Jan Beich
2022-12-16Added clang format (#1239)Vaxry
* clang-format stuff and format files
2022-05-17fix some memory issuesvaxerski
2022-05-12Improve bezier baking & approxvaxerski
2022-04-23Bake 200, more infovaxerski
2022-04-23Added bezier curvesvaxerski