Server/project/src/di
Dev a9d89695f0 Added new service ProfileActivityService
Maintains a timestamp of when each profile was last active on the server.
Timestamp is refreshed on two events: `game/start and `game/keepalive`

Timestamp is used to determine if a profiles hideout should be processed. If a profile has a timestamp older than 90 minutes, it is not processed. (could be set lower but its a conservative value)
This has the side effects of not adjusting the `sptUpdateLastRunTimestamp` property, resulting in `saveProfile()` not running for every profile.

My testing shows a 20x perf increase for every profile in SPT not in use.

Service could likely be used in other scenarios to avoid doing unnecessary work
2024-04-13 12:46:43 +01:00
..
Container.ts Added new service ProfileActivityService 2024-04-13 12:46:43 +01:00
OnLoad.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
OnUpdate.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
Router.ts EXPERIMENTAL - pass output object into handleItemEvent and into move function 2024-02-10 15:44:21 +00:00
Serializer.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00