Guild icon
Teeworlds
IRC / bridge
One-way IRC channel bridge. If you want to be able to send messages to IRC, contact @Dune or @heinrich5991. https://www.teeworlds.com/?page=docs&wiki=rules/irc_rules
Between 2020-06-01 00:00:00Z and 2020-06-02 00:00:00Z
Avatar
[quakenet] ZillyHuhn BOT 2020-06-01 18:22:33Z
https://github.com/teeworlds/teeworlds/blob/c5016fe87a1e735e83ff47b1e221a7c4d501e770/src/engine/demo.h#L24 is this a 4 byte chunk holding a number that is max 64? Or am i getting something wrong here?
A retro multiplayer shooter. Contribute to teeworlds/teeworlds development by creating an account on GitHub.
Avatar
yes, this is correct, ZillyHuhn
Avatar
[quakenet] ZillyHuhn BOT 2020-06-01 18:23:21Z
bit
18:23
much
18:23
guess its to support the weird format
18:24
what is the advantage of bytes be over just storing it as a int?
Avatar
theoretically, int is a bad idea because different machines order the bytes in a int differently
18:28
In computing, endianness is the ordering or sequencing of bytes of a word of digital data in computer memory storage or during transmission. Endianness is primarily expressed as big-endian or little-endian. Big-endian systems store the most significant byte of a word at the sm...
Avatar
[quakenet] ZillyHuhn BOT 2020-06-01 18:29:21Z
ah ok
18:29
18:30
oh wait wrong
18:30
18:31
ah ok its differnt nvm im confusd af
18:35
wait but @heinrich5991 64 can be stored in one byte already how is that affected by endianess?
18:35
or is that a useless optimization?
Avatar
ah
18:36
I think it's just that it used to be an integer and people did not want to change the format
18:36
(?)
18:36
but it could definitely be stored in just one byte
Exported 19 message(s)