frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

A time-travelling door bug in Half Life 2

https://mastodon.gamedev.place/@TomF/115589875974658415
218•AshleysBrain•1d ago

Comments

Panzerschrek•1d ago
It seems to be typical - some calculations break while switching from x87 to SSE. The same happened with TF2 too - it's ammo calculation code worked slightly differently on GNU/Linux build of the game, because it was built with SSE instructions (Windows version still used x87).
arcfour•1d ago
I think the only visible effect from that was the Engineer's metal, giving +40 or +41 from a small box, depending on the server platform (all classes technically do have metal, but the others can't use it).

It was always fun to play on a new server and check what OS it was running that way, too. :-)

stoltzmann•1d ago
And IIRC ammo for heavy and health for soldier!
MBCook•21m ago
I’m surprised to hear the ammo calculation code would use floats.
netsharc•1d ago
Meta: I'm going to make a Twitter clone that bans you if you use it as a multi-paragraph blogging platform... god damn !#@#%!!!.
fragmede•1d ago
I'll make one that's the opposite (your post must be at least two paragraphs and an LLM is going to judge your text to make sure it's not lorum Ipsum) if you'll help me get users.
viraptor•1d ago
Do you actively want the linked thread to not exist? Because not having this posting option does not mean it would appear anywhere else.
bathtub365•1d ago
Here’s a link with the thread unrolled onto a single page: https://mastoreader.io/?url=https%3A%2F%2Fmastodon.gamedev.p...
Wowfunhappy•1d ago
Wait, so is that "beta" of Half Life 2 VR a thing I can play? If it is, how did I not know about this, and if not... why not?

I'd also love to play Portal, actually. They say it makes you sick, but to my knowledge I'm immune from VR motion sickness, so worth a try...

aranelsurion•1d ago
I don’t know about the beta, but there’s an excellent HL2 VR conversion mod you can play today. It feels just right and got me to play HL2 again after all these years.
davepdotorg•1d ago
There’s a great VR mod for Portal 2. Played it all the way through. Surprisingly comfortable to play too.
nasretdinov•1d ago
I wonder how on earth stuff like x86->ARM translation works so well if games break even after switching from x87 registers to SSE preserving all the logic otherwise...
toast0•20h ago
I think x87 fpu is the only 'weird' floating point units left. I think if you stick with 64-bit double precision floats or 32-bit single precision floats, where the registers are also 64 or 32 bits, all the modern stuff behaves the same. x87 is just weird because registers are 80-bits ... the idea was to have more accurate results from more precision, but it ends up weird because if you run out of registers and have to spill to memory, you typically lose precision.
ErroneousBosh•1h ago
It's probably because you have to have weird precision issues where the numbers are calculated ever so slightly differently, and some other effect like a guard being slightly too close and getting clipped by a door where that difference matters.

I debugged some software synthesizer code a while back (like 20 years or so now I think of it) where a build of it on one platform failed because of a precision bug. I can't remember the details, but there was a lot of "works fine on my machine" type discussion around it. Anyway it relied on a crude simulation of an RC circuit reaching very close to 0 asymptotically to trigger a state change, but on something like 64-bit Intel with a specific processor it never quite made it low enough to trip the comparison because of something to do with not flushing denormals.

From an electronic standpoint, making it simulate "it's high enough" as being about 0.7 and " it's low enough" being about 0.01 was far closer to the instrument they were trying to simulate, and making it massively imprecise like that got it going on everything.

HelloUsername•1d ago
DOOR STUCK

https://www.youtube.com/watch?v=dBIh06_bmq0

g7r•13h ago
Ah, nice story!

This reminds me of another story with FPU involved. I was a game developer once. We were making a game that consistently triggered assertion failures related to FPU calculations, but only on a single PC in the whole office. The game was explicitly setting FPU precision to 32 bits at the start to make all calculations more consistent. However, on that particular PC, there was a fancy hand writing input software that injected its DLL into every process. As you've probably already guessed, that DLL did FPU mode reset to the default in the event handling loop (i.e., main thread). I had to shift FPU mode setting code from process initialization to the event handling loop to be able to deal with the damage that third party DLLs could inflict.

djmips•7h ago
nice detective work. Global FPU state had sure caused a lot of headaches.

Fran Sans – font inspired by San Francisco light rail displays

https://emilysneddon.com/fran-sans-essay
223•ChrisArchitect•3h ago•28 comments

Native Secure Enclave backed SSH keys on macOS

https://gist.github.com/arianvp/5f59f1783e3eaf1a2d4cd8e952bb4acf
214•arianvanp•3h ago•84 comments

Calculus for Mathematicians, Computer Scientists, and Physicists [pdf]

https://mathcs.holycross.edu/~ahwang/print/calc.pdf
151•o4c•4h ago•28 comments

780k Windows Users Downloaded Linux Distro Zorin OS in the Last 5 Weeks

https://blog.zorin.com/2025/11/18/test-the-upgrade-from-zorin-os-17-to-18-and-celebrating-1-milli...
34•m463•1h ago•12 comments

Shaders: How to draw high fidelity graphics with just x and y coordinates

https://www.makingsoftware.com/chapters/shaders
284•Garbage•8h ago•67 comments

Show HN: Gitlogue – A terminal tool that replays your Git commits with animation

https://github.com/unhappychoice/gitlogue
16•unhappychoice•5d ago•1 comments

Racket v9.0

https://blog.racket-lang.org/2025/11/racket-v9-0.html
219•Fice•7h ago•72 comments

Mount Proton Drive on Linux using rclone and systemd

https://github.com/dadtronics/protondrive-linux
70•cf100clunk•5h ago•25 comments

"Good engineering management" is a fad

https://lethain.com/good-eng-mgmt-is-a-fad/
71•jkbyc•1h ago•17 comments

Editing Code in Emacs

https://redpenguin101.github.io/html/posts/2025_11_23_emacs_for_code_editing.html
88•redpenguin101•6h ago•22 comments

A time-travelling door bug in Half Life 2

https://mastodon.gamedev.place/@TomF/115589875974658415
218•AshleysBrain•1d ago•17 comments

Court filings allege Meta downplayed risks to children and misled the public

https://time.com/7336204/meta-lawsuit-files-child-safety/
258•binning•6h ago•110 comments

A monopoly ISP refuses to fix upstream infrastructure

https://sacbear.com/xfinity-wont-fix-internet/
549•vedmed•20h ago•278 comments

Pyrotechnic Display Design Software

https://github.com/giuseppe-coco/FireShow
25•Giuseppe_Coco•6d ago•9 comments

HumanLayer (YC F24) Is Hiring Founding Engineers

https://www.ycombinator.com/companies/humanlayer/jobs/oBCZzc7-founding-product-engineer
1•dhorthy•4h ago

Terence Tao: At the Erdos problem website, AI assistance now becoming routine

https://mathstodon.xyz/@tao/115591487350860999
108•dwohnitmok•1d ago•12 comments

Spectral rendering, part 2: Real-time rendering

https://momentsingraphics.de/SpectralRendering2Rendering.html
42•todsacerdoti•1w ago•12 comments

MCP Apps: Extending servers with interactive user interfaces

http://blog.modelcontextprotocol.io/posts/2025-11-21-mcp-apps/
140•mercury24aug•17h ago•98 comments

Forever Object: The Staple-Less Oceanus Brass Stapler

https://www.core77.com/posts/139027/Forever-Object-The-Staple-less-Oceanus-Brass-Stapler
5•surprisetalk•4d ago•2 comments

SVG.js v3.2

https://svgjs.dev/docs/3.2/
64•eustoria•3h ago•9 comments

Garibaldi, history's sexiest revolutionary?

https://www.historyextra.com/period/victorian/historys-sexiest-revolutionary-meet-the-mesmerising...
71•thomassmith65•1w ago•51 comments

Unusual circuits in the Intel 386's standard cell logic

https://www.righto.com/2025/11/unusual-386-standard-cell-circuits.html
198•Stratoscope•17h ago•48 comments

The Inference Economy: Why demand matters more than supply

https://frontierai.substack.com/p/the-inference-economy-part-ii
13•cgwu•1w ago•2 comments

Almost all Collatz orbits attain almost bounded values

https://mathvideos.org/2023/terence-tao-almost-all-collatz-orbits-attain-almost-bounded-values/
87•measurablefunc•6d ago•27 comments

Apple to focus on 'quality and underlying performance' with iOS 27 next year

https://9to5mac.com/2025/11/23/apple-focusing-on-software-quality-improvements-ios-27-next-year-r...
41•jb1991•3h ago•15 comments

GCC SC approves inclusion of Algol 68 Front End

https://gcc.gnu.org/pipermail/gcc/2025-November/247020.html
210•edelsohn•19h ago•88 comments

After my dad died, we found the love letters

https://www.jenn.site/after-my-dad-died-we-found-the-love-letters/
680•eatitraw•12h ago•322 comments

Meet the AI workers who tell their friends and family to stay away from AI

https://www.theguardian.com/technology/2025/nov/22/ai-workers-tell-family-stay-away
4•breve•23m ago•0 comments

sit: Create StuffIt archives on Unix systems

https://github.com/thecloudexpanse/sit
50•classichasclass•6d ago•6 comments

Tosijs-schema is a super lightweight schema-first LLM-native JSON schema library

https://www.npmjs.com/package/tosijs-schema
39•podperson•7h ago•24 comments