-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
save a whopping 12 bytes from Color struct #3621
save a whopping 12 bytes from Color struct #3621
Conversation
memory usage must be efficient of course ;) |
well yes but actually no |
12 bytes is 12 bytes, imagine everything you can do with it. Jokes aside, even saving 12 bytes is worth it, any and all optimizations, as long as they don'truin the codebase, should be made if someone has the time. |
Honestly i wish the modern gaming industry cared that much but they only care with money and in saving em (optimization and time is a waste of money for em, sadly) |
10^(10^30.052154446) is quite a big number, I'm pretty sure you can't store it using just 12 bytes |
It's indeed pretty big. My calculator gives me an error when trying to do it. (Both my actual calculator and the one on my phone) |
12 bytes = 12*8 = 96 bits = 2^96 = 7.9228163e+28 |
7.9228163e+28!! ≈ 10^(10^30.052154446) |
i think he is talking about all the possible combinations of 12 bytes. that number makes more sense. |
No I'm not, 7.9228163e+28!! ≈ 10^(10^30.052154446) |
If you do the math, it does add up to 79 octillion. Which makes sense considering a 64 bit number is ≈ 15 quintillion (iirc). And 128 bits ≈ 340 undecillion. |
|
Come on guys, obviously it can store 12 cuz each byte is either 0 or 1 :p |
me when byte != bit |
Ops, i forgot that bit XD |
LMFAO, I love that dad joke. Made me chuckle so hard |
how generous of us ;)