2 ms·
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
by notpopcorn 5y 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/blob/master/tier0/threadtools.cpp#L99 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.
- donkarma 5y agoit'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