Smart Speed Limiter – Intelligent Velocity Constraint Tool for Trajectory Actions

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.

  1. 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.
  2. calculate the min_deltas for a whole stroke (minimum-minimum or maximum-maximum)
  3. Im not sure how the script would perform in following cases: Acceleration points in stretches with fast actions. Vibration Patterns.
  4. 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.

I think it’s fixed in v1.0.3, you can try that version.

But… you know, in the end, it’s still computed by the algorithm, and for some very complex scripts, it still doesn’t handle them perfectly. Maybe I should position this script as a tool for end users, not for script creators. Let me give an example: suppose someone’s device cannot run extremely high‑speed scripts, which might cause damage or no response, yet they still want to keep the original amplitude. Or someone just want to reduce speed but keep the original amplitude (to my knowledge, there is currently no tool that can do that.) In that case, this tool can be useful.

Unlike the tool on funscript..io, their limiter simply brute‑force caps the amplitude to meet the requirement, which reduces the amplitude. My tool prioritizes preserving the amplitude, but reduces the repetition frequency. Now it reads the entire script from the start, then analyzes the overall pattern, and decides what to do with each part based on that pattern. For example, if a motion (which may consist of multiple points) repeats regularly six times, it will try to remove one motion, and then scale the remaining five motions proportionally so that the end point of the fifth motion after scaling matches the original end point (which was the end of the sixth motion). If the stretched five motions still exceed the set speed limit (default 600), it continues removing another motion and scaling the rest, until the speed is no longer exceeded. Only for irregular motions does it adopt the amplitude‑limiting strategy.

This is also why I think this script may never be perfect, but only roughly okay. Finding the pattern is the difficult part. In version 1.0.2, I spent some time studying Fourier transforms and calculus, but I found that I didn’t need them (or I didn’t know how to use them, haha). Still, that version made pattern discovery possible. In version 1.0.3, I think this is probably the limit of what I can achieve – I optimized the algorithm a bit and tested it on a complex script, and the final result looked reasonably acceptable.

Below here:
Before
original.funscript (52.2 KB)

After
output.funscript (57.7 KB)

1 Like

Thanks for your ideas, that a good suggestion! In the latest version, I fixed lot of issues, and it’s a big update compare to the original version.

And there is why I made this tool:

For quite a long time, I had made quite a few iterations to my script speed-limiting tool, but they were not released. So this looks like a major update. In this version, it has become more stable and fixed more issues that existed in previous versions, such as inaccurate recognition of repeated waveforms, corrupting actions, and so on.

In my latest version, I tested it across multiple scripts, including some with very complex actions, random scripts, scripts with a random mix of irregular and regular patterns, and scripts with continuous overspeed. In these tests, the tool performed very well.

I recommend that you use this new version of the script. Below are some examples I used for testing. You can use my tool to process the original scripts and get the same results.

In the case of this random waveform, its processing effect is as follows.
Before
cassie-cage-ponytail-facefuck-alt_1080p.funscript (1.2 KB)
After
output.funscript (1023 Bytes)

In the case of complex interleaved actions, its processing effect is as follows:
Before
1000 Bekscript special HMV (Hardcore).funscript (52.2 KB)
After
output.funscript (38.0 KB)

In cases where regular and irregular patterns alternate and mix randomly, its processing effect is as follows:
Before
zzbusio - I love HENTAI #9 (Hardcore).funscript (22.4 KB)
After
output.funscript (22.3 KB)

The overspeed value of 613 here is because 610 is the maximum tolerance, while the 3 is a rounding precision issue; in practice, it still meets the requirements.If you are still not satisfied with this value, you can make adjustments in the tool.
Before
overspeed.funscript (1.3 KB)
After
output.funscript (537 Bytes)