FAForever / downlords-faf-client

Official client for Forged Alliance Forever
https://faforever.com
MIT License
195 stars 121 forks source link

Occasional lag when hovering between chat window and tab bar #2967

Open mankinskin opened 1 year ago

mankinskin commented 1 year ago

Describe the bug Using the tab bar, hovering between window panel and tab bar is usually smooth and responsive (except on the first time opening), but after hovering the chat view with a lot of messages, returning the mouse cursor to the tab bar causes a lag spike. Its similar to a tab being opened for the first time, as some parts of the code are run to build the UI, but this still occurs later, when there are a lot of messages in the chat, as if some code was running every time the mouse entered or left the chat window that depended on the chat content.

It works when the chat history is short, so it must be somehow related to the number of chat messages or the number of different user labels. Filling a mock channel with messages didn't cause the same effect as the main chat after some 4-5 hours of the client being open.

To Reproduce Open client, switch between tabs, switch to chat tab, wait for a lot of messages to appear, hover chat window and switch tab. The messages might have to be from different users, so it might be somewhat difficult to reproduce. It was just something I observed.

OS Windows

ver 2023.4.0