Tag: uwe-llp-exmachina

The problem with automatic sorting (std::map)

Do you want to store data in C++ that requires mapping that data to a string or other type of key? Is the order of that data important? Well then, don’t use std::map. “wha?” I hear you ask, well: std::map is an ordered data type What is meant by “ordered data type”? It means that …

File Buffers (but not what you think)

I’ve recently been developing a level manager (reading levels from file and creating the level within the game)- all the game levels utilise a common format of using the same floor and wall textures (to be swapped out later by other members of the development team for the project). These textures are loaded from file multiple times, putting additional load on the computer’s resources (specifically its disk and memory). …