DarkflameServer/dDatabase/Tables
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
..
CDActivitiesTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDActivitiesTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDActivityRewardsTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDActivityRewardsTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDAnimationsTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDAnimationsTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDBehaviorParameterTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDBehaviorParameterTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDBehaviorTemplateTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDBehaviorTemplateTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDBrickIDTableTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDBrickIDTableTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDComponentsRegistryTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDComponentsRegistryTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDCurrencyTableTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDCurrencyTableTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDDestructibleComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDDestructibleComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDEmoteTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDEmoteTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDFeatureGatingTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDFeatureGatingTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDInventoryComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDInventoryComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDItemComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDItemComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDItemSetSkillsTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDItemSetSkillsTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDItemSetsTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDItemSetsTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDLevelProgressionLookupTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDLevelProgressionLookupTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDLootMatrixTable.cpp perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
CDLootMatrixTable.h perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
CDLootTableTable.cpp perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
CDLootTableTable.h perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
CDMissionEmailTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDMissionEmailTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDMissionNPCComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDMissionNPCComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDMissionsTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDMissionsTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDMissionTasksTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDMissionTasksTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDMovementAIComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDMovementAIComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDObjectSkillsTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDObjectSkillsTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDObjectsTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDObjectsTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDPackageComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDPackageComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDPhysicsComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDPhysicsComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDPropertyEntranceComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDPropertyEntranceComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDPropertyTemplateTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDPropertyTemplateTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDProximityMonitorComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDProximityMonitorComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDRailActivatorComponent.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDRailActivatorComponent.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDRarityTableTable.cpp perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
CDRarityTableTable.h perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
CDRebuildComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDRebuildComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDRewardsTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDRewardsTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDScriptComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDScriptComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDSkillBehaviorTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDSkillBehaviorTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDTable.h Add Animation Table logic 2023-03-26 05:18:45 -07:00
CDVendorComponentTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDVendorComponentTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDZoneTableTable.cpp refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CDZoneTableTable.h refactor: Move CDClient Database away from constructor queries (#1164) 2023-08-10 23:27:40 -05:00
CMakeLists.txt Update CMake configuration for easier maintenance (#642) 2022-07-17 00:24:16 +01:00