Hacker News new | ask | show | jobs
by notpopcorn 1631 days ago
MAX_THREAD_IDS is defined as 128 in a file with a copyright notice of 2005, which was when the very first consumer dual core processors started getting released:

https://github.com/perilouswithadollarsign/cstrike15_src/blo...

Entirely reasonable that no one in 2005 would even consider the possibility of 128 core processors. I bet nobody reconsidered or even looked at that code ever since, until it started breaking because of today's extremely parallel cpus starting to get somewhat affordable for consumers.

1 comments

it's weird because they used to use regular TLS variables and then they swapped to this at some point, pretty sure TF2 uses regular ones