Search Results

Found 1 results for "822ac52f8d1bb20f7012c543d44b39a1" across all boards searching md5.

Anonymous /v/716220554#716247143
7/23/2025, 9:31:23 PM
>>716244130
Literally just pregenerate a lookup table, you fucking retard. Why complicate it?
The maximum 32 bit integer you can have it 4,294,967,295, which is all you will ever need.
You want an array of 4,294,967,295 elements of size 1.
4,294,967,295*8/1024/1024/1024=31.99GB
Every PC can handle this much. If you have this in memory, you can index into it very easily and get the right value (// 1 - even // 0 - odd). You could also create a switch statement out of it and make it part of the game to make sure it is loaded automatically by Windows as your game is loaded, instead of putting it into a different file. The table is still literally a fraction of the size of an average game in 2025. You might say it's wasteful but you're wrong. Even people who haven't worked for Blizzard for 7 years would know this is the right way. No need to complicate things.

tl'dr eat my entire ass.