"the computation stops at that point in that particular path of execution"
"speculative execution" is great, though; why simply check if you have 100 gold before doing work, if you can do all the work, notice you can't afford it, and then unwind all of it? absolute genius here
RE: https://bsky.app/profile/did:plc:xsshawkhr7rn4bcfd2snwblt/post/3n2z4xq44qs2q
1 Boost
0 Likes
i'm just sitting here imagining something programmed entirely in this style. you fire a bullet. the game engine expertly calculates the trajectory of your projectile, and with its modified hitscan determines you would blow the orc's brains out at 1000m. but you have no ammo, so oops, nevermind that.
ok well like. in a carefully selected context it actually is a good thing, such as when combating input latency. let's say that each frame you calculate what would happen both if the player fired a bullet and if they didn't. then when they do, it appears instant
in that case your client should go "oh, it looks like you have 0 ammo. i won't fire the gun"
this is an utterly fascinating way to program anything: do it first, then if it fails, roll back everything. there's all sorts of exciting things you can do in this context, like "what if you're relying on an external system for literally anything". hope that also works entirely in theoreticals