AO2-Client icon indicating copy to clipboard operation
AO2-Client copied to clipboard

Swapping themes causes a long client freeze

Open Crystalwarrior opened this issue 3 years ago • 2 comments

Describe the bug When pressing "reload theme" or receiving a subtheme from the server, there's a few seconds of lag before the user can use the client again.

To reproduce Steps to reproduce the behavior:

  1. Go to a server
  2. Click on reload theme
  3. It lags

Expected behavior There is little or no lag and the theme swapping is optimized

Version:

  • OS: Windows 10
  • Version or branch: master

Additional context I remember optimizing some of the lag before, but it got pretty bad again on master. We need a solution pretty bad especially since sub themes have a reload theme request

Crystalwarrior avatar Feb 22 '22 00:02 Crystalwarrior

BRUH I JUST REALIZED WHY THIS IS HAPPENING. It loads and closes the config file, FOR EACH CONFIG OPTION IT READS.

The solution should be to just load the config file once and handle it from there...

Crystalwarrior avatar Mar 06 '22 04:03 Crystalwarrior

Not as much of an issue anymore for Lobby since it mostly relies on Qt CSS and recreates the entire widget structure, but by lord this is still an issue for Courtroom.

Salanto avatar Jan 30 '23 00:01 Salanto