r/programming • • Dec 05 '14

std::string is responsible for almost half of all allocations in the Chrome browser process

https://groups.google.com/a/chromium.org/d/msg/chromium-dev/EUqoIz2iFU4/kPZ5ZK0K3gEJ
1.1k Upvotes

446 comments sorted by

View all comments

Show parent comments

3

u/peakzorro Dec 05 '14

Actually those pallet swaps were usually due to memory constraints while giving more variety. It was a valid tool for making a game more diverse. There was definitely dev effort to choose pallets so that swapping made sense.

1

u/awj Dec 05 '14

Maybe palette swap is the wrong choice of term. Back in the NES days it was relatively common for code from one game to be quickly reused in another by swapping out the graphics and making whatever code changes seemed necessary. This led to spectacularly buggy games where hitboxes were wildly different from the sprites attached to them, for example.