r/howdidtheycodeit • u/TheOriginal28 • Sep 11 '23
Question War Thunder tech tree
How do games like War Thunder efficiently store player progression down the tech tree in a database? Do they need an entry for every single vehicle and each researchable module for each vehicle? There must be a more efficient way. Sidenote - I'm somewhat new to databases, trying to learn the ins and outs of them. Thanks!
3
Upvotes
View all comments
Show parent comment
2
u/arycama Sep 14 '23
As someone who has spent several years optimizing games on several platforms/engines, I can tell you now, never just "assume" something is inefficient, especially when you are just learning.
Efficiency is often very counter-intuititve to what most people think. Often people do very strange things in the name of "optimisation" and "efficiency", and the game/system will end up running slowly anyway, because they will miss actual important performance issues. Or if performance isn't important, the project will end up taking a lot longer, costing more, and being extremely overengineered for a performance situation that it never needed to worry about in the first place.
If you care about efficiency, learn about modern hardware and look at the numbers. Almost everything you think is slow won't matter because of the average CPUs ability to process billions of operations per second.