Closed Rylxnd closed 11 months ago
memory usage must be efficient of course ;)
well yes but actually no 1mb i would understand but 12 bytes? '_'
well yes but actually no 1mb i would understand but 12 bytes? '_'
12 bytes is 12 bytes, imagine everything you can do with it.
You could for example store the number 7.9228163e+28!!
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.
well yes but actually no 1mb i would understand but 12 bytes? '_'
12 bytes is 12 bytes, imagine everything you can do with it. You could for example store the number 7.9228163e+28!!
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)
You could for example store the number 7.9228163e+28!!
10^(10^30.052154446) is quite a big number, I'm pretty sure you can't store it using just 12 bytes
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)
You could for example store the number 7.9228163e+28!!
10^(10^30.052154446) is quite a big number, I'm pretty sure you can't store it using just 12 bytes
12 bytes = 12*8 = 96 bits = 2^96 = 7.9228163e+28
You could for example store the number 7.9228163e+28!!
10^(10^30.052154446) is quite a big number, I'm pretty sure you can't store it using just 12 bytes
12 bytes = 12*8 = 96 bits = 2^96 = 7.9228163e+28
7.9228163e+28!! ≈ 10^(10^30.052154446)
You could for example store the number 7.9228163e+28!!
10^(10^30.052154446) is quite a big number, I'm pretty sure you can't store it using just 12 bytes
i think he is talking about all the possible combinations of 12 bytes. that number makes more sense.
You could for example store the number 7.9228163e+28!!
10^(10^30.052154446) is quite a big number, I'm pretty sure you can't store it using just 12 bytes
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.
cstdint
needs to be included in both headers. Also the types inside std
are preferred over the ones in the global namespace (so e.g. uint8_t
-> std::uint8_t
).
Come on guys, obviously it can store 12 cuz each byte is either 0 or 1 :p
Come on guys, obviously it can store 12 cuz each byte is either 0 or 1 :p
me when byte != bit
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
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 ;)