3 ms·
Code like this is painful to unit test, so it often plainly isn't unit tested. So then comes the question why was it not detected in production (there's a good
by tinco 11y ago
Code like this is painful to unit test, so it often plainly isn't unit tested.
So then comes the question why was it not detected in production (there's a good chance that there's games out there that have shipped with that line in there). Memcmp doesn't have any side effects, so instead of something updating, something just doesn't update. The function is called 'Optimize', perhaps it just calculates a more optimal dataset, and then does nothing with it, leaving the unoptimized data in there. No one would notice and some path would just be slightly less optimal.