this post was submitted on 12 Feb 2025
1044 points (97.7% liked)

Microblog Memes

6631 readers
3593 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 6 days ago (1 children)

Eh, really depends

They are likely just serializing a bunch of data objects. And set states and flags with humans readable enums

Enums make code a lot easier to read, especially if you use it to check stuff all over the place

Using to a couple bytes more storage is worth it

[–] [email protected] 2 points 6 days ago* (last edited 6 days ago) (2 children)

I thought that enums were supposed to compile down to aa, ab, ac when you actually build the game.

[–] [email protected] 4 points 6 days ago

Depending on the language, they are.

Lots of games also use data structures derived from tables/csv at runtime to configure things like stats. So they would also need these (human readable) values in the save files

Hard to tell from speculation and not having the data

[–] [email protected] 1 points 6 days ago

Depends on optimization levels, data types, and whatnot. If it's a string to be fed into the API of a different binary then the compiler will often not optimize down that representation. Internal function names are likely to be optimized that way, with lookup tables holding original function names (at least for any externally exposed function).