DarkflameServer/dScripts
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
..
02_server perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
ai perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
client Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
EquipmentScripts Move EntityManager to Game namespace (#1140) 2023-07-15 13:56:33 -07:00
EquipmentTriggers Make wrapper for casting skills (#987) 2023-02-10 02:30:17 -06:00
zone Fix typing of some player flag variables (#1067) 2023-05-06 13:32:26 -05:00
ActivityManager.cpp perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
ActivityManager.h Scripts: Fix ambiguous base class (#1216) 2023-10-09 15:31:25 -05:00
BaseConsoleTeleportServer.cpp Move EntityManager to Game namespace (#1140) 2023-07-15 13:56:33 -07:00
BaseConsoleTeleportServer.h format codebase 2022-07-28 08:39:57 -05:00
BasePropertyServer.cpp Move dZoneManager to game namespace (#1143) 2023-07-17 17:55:33 -05:00
BasePropertyServer.h Scripts: Fix ambiguous base class (#1216) 2023-10-09 15:31:25 -05:00
BaseRandomServer.cpp Move dZoneManager to game namespace (#1143) 2023-07-17 17:55:33 -05:00
BaseRandomServer.h format codebase 2022-07-28 08:39:57 -05:00
BaseSurvivalServer.cpp fix: Remove usage of rand() and seed randomness for chatserver (#1152) 2023-08-03 21:38:19 -05:00
BaseSurvivalServer.h format codebase 2022-07-28 08:39:57 -05:00
BaseWavesGenericEnemy.cpp Move dZoneManager to game namespace (#1143) 2023-07-17 17:55:33 -05:00
BaseWavesGenericEnemy.h Scripts: Fix ambiguous base class (#1216) 2023-10-09 15:31:25 -05:00
BaseWavesServer.cpp Merge branch 'main' into pr/1107 2023-07-21 19:40:30 -07:00
BaseWavesServer.h format codebase 2022-07-28 08:39:57 -05:00
ChooseYourDestinationNsToNt.cpp Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
ChooseYourDestinationNsToNt.h format codebase 2022-07-28 08:39:57 -05:00
CMakeLists.txt Implement the Imaginite Backpack and Shard armor scripts (#886) 2022-12-21 14:33:41 -08:00
CppScripts.cpp Scripts: Fix ambiguous base class (#1216) 2023-10-09 15:31:25 -05:00
CppScripts.h Scripts: Fix ambiguous base class (#1216) 2023-10-09 15:31:25 -05:00
Darkitect.cpp Move EntityManager to Game namespace (#1140) 2023-07-15 13:56:33 -07:00
Darkitect.h Optimize scripts for faster compilation (#597) 2022-07-04 23:00:10 -07:00
NPCAddRemoveItem.cpp Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
NPCAddRemoveItem.h Scripts: Fix ambiguous base class (#1216) 2023-10-09 15:31:25 -05:00
NtFactionSpyServer.cpp Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
NtFactionSpyServer.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
ScriptComponent.cpp chore: Make serialize actually virtual (#1156) 2023-08-10 14:33:15 -07:00
ScriptComponent.h chore: Make serialize actually virtual (#1156) 2023-08-10 14:33:15 -07:00
ScriptedPowerupSpawner.cpp perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
ScriptedPowerupSpawner.h format codebase 2022-07-28 08:39:57 -05:00
SpawnPetBaseServer.cpp Move EntityManager to Game namespace (#1140) 2023-07-15 13:56:33 -07:00
SpawnPetBaseServer.h format codebase 2022-07-28 08:39:57 -05:00