We all have our baggage to bear. Recognizing what is in there and owning up to the behavior are important steps to lighten it. I sincerely wish you well on your journey and hope you can see now that we did not attack you, but trying to engage in good faith, even if some were more abrasive than others. And I thank you for writing the text instead of using an LLM.
Talking about LLMs: I was ready to abandon this thread after reading the reply to my message; after seeing what nonsense the LLM cooked up as an answer to my question (noisy funscript data, really?), but wanted to see what followed. And thank you @ihavealittlejohn for your testing out the script.
It unfortunately confirms my suspicions and is coupled to my question about extrema detection. The quick fix they suggested might work without acceleration points, but from where I stand, the true issue might lie in the lack of qualitative context of the actions being deleted. Until now, the script searches for a single action maximizing the time saving potential without any other context about the stroke. Imo this optimization should occur over a whole stroke, including intermediate non-extrema points.
But this brings me to a more general point: What use-case is this logic - especially the continuous mode - for, exactly? To me the biggest priority in a script, that takes the most time to get right, is the timing of the actions. If actions are moved or deleted, then immersion breaks. So I would rather sacrifice range or detail, before I sacrifice timing. The same with music-based stuff, but I might be missing a lot of cases, where people might prefer this behavior.
When I first saw this topic my mind went to a special case of the action becoming so fast (high frequency), that it’s so close to the video framerate, that the actual moments of direction change are missed (akin to aliasing), where it would make sense to distribute the actions more uniformly to mimick the actual frequency of the movement. But I think that’s a whole different thing that would need more user input.
I don’t have the possibility to test right now, but I’ll just throw out a few thoughts and ideas and maybe if some make sense to you, you’ll incorporate them in the future. No pressure though, just suggestions.
- Context based shortening, instead of center-point. Usually BJ and HJ are more biased towards the tip, penetrative sex is usually more pronounced towards the base. Therefore, you could define the shortening in the same way. E.g. if the center point is above a certain threshold, then move up the lower point, if the centerpoint is below a certain threshold, then move the upper point down, and in between do the contraction around the center-point or even linearly interpolate between the thresholds. This way, the nature of the stroke, e.g. tip play or bounce is still preserved. While not all of the cases will be handled correctly, the results would be much improved.
- calculate the
min_deltasfor a whole stroke (minimum-minimum or maximum-maximum) - Im not sure how the script would perform in following cases: Acceleration points in stretches with fast actions. Vibration Patterns.
- Think about making the function more dynamic, e.g. by having user defined parameters like the speed limit being handed during the function call. Makes it more versatile.