Problem: I am experiencing a severe load/freezing issue in V10 with a heavily modded, heavy CSS PF2 system where the Chat log will take 2-8 seconds to redraw upon returning to it from any other sidebar tab (ex: Combat, or Actors), as well as 2-8 seconds of freezing when players generate a new message. Players do not experience this since their posts are limited in info and complexity, but as a DM this destroys my pacing. The freezing will result in the browser or Electron server displaying the “want to kill this application due to unresponsiveness” dialog if clicked multiple times during the freeze, but it will unfreeze on its own. The issue was identified as the chat log, which appears when the chatlog fills in with 40-50+ very complex system messages (attacks, damage rolls) in the PF2 system. Not a mod conflict: tested with zero mods with and without Dorako UI. With Dorako UI the problem is considerably worsened, but I want to keep using this mod. The only solution I could find for the problem is regularly cleaning the chat log, but I want to automate this, so I don’t have to do it manually when I start experiencing slowdowns. This mod would help me with it.
Settings
- Maximum Chat to Retain [default: 50]
- Exclude Message Chats [default: on]
- Maximum Chat to Reload [default: 10]
Functionality
- The mod scans the chat every X seconds on every chat message generated and deletes any messages in the Chat Log older than the most recent X [default: 50].
- If Exclude Message Chats is on, exclude chats that are messages or whispers from players or DM.
- When the user switches to another tab in the sidebar and returns to chat, behavior separate from loading the chat after world load or F5 refresh only renders a few messages (default: 10). The rest will only load in the chat if the user scrolls up and browses to the top of the list, in batches of 10. The code for this may be found in DF Chat Enhancements, but I could not hack the mod to limit the minimum batch of 100 messages to a limit of 10.
Any tricks that could help speed up rendering chat would be welcome and can expand the budget of the mod.
Budget : 50$