DarkflameServer/dGame
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
..
dBehaviors refactor: re-write AOE, add FilterTargets, Update TacArc Reading (#1035) 2023-10-09 15:18:51 -05:00
dComponents perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
dEntity format codebase 2022-07-28 08:39:57 -05:00
dGameMessages refactor: re-write AOE, add FilterTargets, Update TacArc Reading (#1035) 2023-10-09 15:18:51 -05:00
dInventory perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
dMission Revert: Fix wisp lee mission 2023-10-08 23:23:14 -07:00
dPropertyBehaviors Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
dUtilities perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
Character.cpp Move dZoneManager to game namespace (#1143) 2023-07-17 17:55:33 -05:00
Character.h Revert playerflags functions to uint instead of int (#1130) 2023-06-26 00:51:28 -07:00
CMakeLists.txt Organize dScripts (#814) 2022-11-03 12:57:54 -05:00
Entity.cpp perf: Loot memory savings (#1165) 2023-10-09 15:33:22 -05:00
Entity.h chore: Make serialize actually virtual (#1156) 2023-08-10 14:33:15 -07:00
EntityManager.cpp refactor: re-write AOE, add FilterTargets, Update TacArc Reading (#1035) 2023-10-09 15:18:51 -05:00
EntityManager.h refactor: re-write AOE, add FilterTargets, Update TacArc Reading (#1035) 2023-10-09 15:18:51 -05:00
LeaderboardManager.cpp feature: Donation Vendor Component (#1168) 2023-08-03 21:44:03 -05:00
LeaderboardManager.h Add weekly filter 2023-06-05 16:04:56 -07:00
Player.cpp Move dZoneManager to game namespace (#1143) 2023-07-17 17:55:33 -05:00
Player.h convert to unix line endings 2022-08-05 22:01:59 -05:00
TeamManager.cpp format codebase 2022-07-28 08:39:57 -05:00
TeamManager.h format codebase 2022-07-28 08:39:57 -05:00
TradingManager.cpp Move EntityManager to Game namespace (#1140) 2023-07-15 13:56:33 -07:00
TradingManager.h format codebase 2022-07-28 08:39:57 -05:00
User.cpp breakout gmlevel into a scoped enum (#996) 2023-03-24 18:16:45 -05:00
User.h breakout gmlevel into a scoped enum (#996) 2023-03-24 18:16:45 -05:00
UserManager.cpp feat: Security improvements for spoofed packets (#1201) 2023-09-28 12:16:11 -05:00
UserManager.h format codebase 2022-07-28 08:39:57 -05:00