@CurcuitStore
  @CurcuitStore
Curcuit Store | Lagged Pearl Vanilla Example @CurcuitStore | Uploaded 1 year ago | Updated 7 hours ago
I've been having A Time, and after some consideration I think I want to start uploading smaller videos here. I keep too much locked behind unlisted videos, private chats, and my brain(the least trustworthy!!), and that just feels unfair. But I suppose that should include publishing all my unlisted videos too, even if old stuff might be kinda wrong or cringe. So here you go ❤️ Smthn smthn growing as a person new year new me.

Original Title: pearl discrepancy with velocity scoreboards

Original Upload Date: Jun 18, 2022

Original Description: N/A

Notes:
This is an example of a phenomenon I've dubbed "lagged pearls," for a lack of a better term. The original goal of this video was just to prove that they existed in vanilla, but I think it does a good job of showing it in general. At least until I understand/document it further.

When you throw a pearl(or any projectile), your current velocity gets added into to the projectile's initial velocity. An extremely common example of this is jumping and throwing a pearl. You jump, giving the player upwards velocity, and then transfer that velocity to the pearl by throwing it. Pearls of course lose velocity much slower than the player(1% per tick vs 9%), so this lets the pearl go much farther.

Now ideally you would transfer the full jump velocity to the pearl(e.g. 0.42m/t vertically). But even if you throw the pearl the exact next tick, this doesn't necessarily work out. In fact most of the time your velocity gets updated by gravity and physics first, so it's only 0.33m/t by the time its transferred to the pearl. This is what happens to the Standard Pearl on the left side of the video. However, seemingly very rarely, you can actually throw the pearl before your jump velocity gets physics'd. This lets you throw a pearl with the full jump velocity like we wanted, and is what happens with Lagged Pearls, as shown on the right side of the video.

There's actually a third option too, perhaps as common as the standard pearl, where your velocity get's physics'd twice by the time you can throw the pearl. I simply called this a “reverse lagged pearl” for convince. I don't think I was aware of that option when I made this original video, but I thought I'd mention it anyway. There are of course other ways to get different velocities at mismatched points in your jump, but that’s a bit outside the scope of this video.

I really don't have any understanding of why any of this is the case. I want to say lag makes lagged pearls more common, but I don't really have any evidence for that. I know LOTAS’s tick advance seems to make them more common, but I have no idea why. I'll explain my current theory for them in case anyone knows anything, but again all I have to back this up is intuition and what I've physically observed:

Based on how the velocity is only ever off by one degree in either direction, it leads me to believe that things are just executed non-sequentially within the tick. We know physics/gravity happen every tick because it doesn’t drift at all over time, but yet it doesn’t always seem to align. In other words, it seems that jumping or spawning the pearl can happen either before or after gravity/physics are calculated in their respective ticks.

So to transfer our full velocity to a pearl(lagged pearl), we need to both jump and throw a pearl before physics are calculated. To do this, on the firsr tick our jump has to happen after the physics are calculated. That way going into the next tick our jump velocity is unchanged. Then on that next tick we need to spawn the pearl before the physics are calculated. That way the jump velocity is still unmodified when it’s transferred to the pearl.
And to get a reverse lagged pearl, the opposite has to happen. We jump before the physics are caclulated he on the first tick, but then get physics’d again on the second tick before we can spawn the pearl.

Any other combination of orders of course just results in the expected standard pearl, where the velocity only gets physics’d once in between jumping and spawning the pearl.

Is this true? Who knows! But it’s fun to headcannon physics isn’t it? And why these things wouldn’t be consistent, or at least consistently random, is beyond me.
Lagged Pearl Vanilla ExampleDamage Tick Offset DemonstrationPreserving Velocity Over an EdgeTorch Portal Alternative w/ Double Place

Lagged Pearl Vanilla Example @CurcuitStore

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER