DarkflameServer/dGame/dInventory
David Markowitz c6087ce77a
perf: Loot memory savings (#1165)
* Move away from constructor queries

Fix up other large tables to have proper backup lookups

Revert "idk im just dumb ig"

This reverts commit 5d5be5df53b8959b42b291613d7db749a65a3585.

idk im just dumb ig

* Fix slow components registry lookup

* add define for cdclient cache all

* Huge loot namespace rework

- Remove all excess memory usage
- do not cache components registry
- cache loot matrices on startup of the destroyable component
- convert loot singleton class to a namespace
- rework loot cdclient tables to operate closer to how someone would actually use them (basically doing the previous LootGenerator::LootGenerator caching but in those tables)
- Memory usage reduced by 10%+ across the board

* cache rebuild matrix

* Database: move reading to own function

Also change name of cache to PascalCase

* Database: Move common function rading
2023-10-09 15:33:22 -05:00
..
CMakeLists.txt Update CMake configuration for easier maintenance (#642) 2022-07-17 00:24:16 +01:00
DatabasePet.h format codebase 2022-07-28 08:39:57 -05:00
EquippedItem.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
EquippedItem.h format codebase 2022-07-28 08:39:57 -05:00
Inventory.cpp Merge pull request #1019 from EmosewaMC/inventoryTypeCorrections 2023-04-23 12:49:43 +02:00
Inventory.h CDClient cleanup and optimization (#1023) 2023-03-17 07:36:21 -07:00
Item.cpp perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
Item.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
ItemSet.cpp CDClient cleanup and optimization (#1023) 2023-03-17 07:36:21 -07:00
ItemSet.h Update DarkInspirationBehavior.cpp (#897) 2022-12-23 18:05:30 -08:00
ItemSetPassiveAbility.cpp Move EntityManager to Game namespace (#1140) 2023-07-15 13:56:33 -07:00
ItemSetPassiveAbility.h Update DarkInspirationBehavior.cpp (#897) 2022-12-23 18:05:30 -08:00