blue_archive_auto_script icon indicating copy to clipboard operation
blue_archive_auto_script copied to clipboard

Lagging issue in the interface of multi-instance scripts

Open Kiramei opened this issue 1 year ago • 7 comments

Unfortunately, on our multi-instance script page, although the page transitions for the first script are smooth, there are lagging issues when switching to the second or subsequent script pages. Specifically:

  1. Switching between the four pages on the left for the first script is smooth.
  2. However, after switching to the second or subsequent script pages using the top navigation, switching the buttons and pages on the left results in noticeable lag.

https://github.com/user-attachments/assets/314a8887-dc26-4ed3-9127-063e7a3570dc

Observations from our testing:

  1. When running the script using Anaconda, the above issue does not occur. For example, using the following commands:
__CONDA_PATH__\Scripts\conda.exe run -n baas_39 --no-capture-output python __SCRIPT_PATH__\py\blue_archive_auto_script\window.py

or:

__CONDA_PATH__\envs\baas_env\python.exe __CONDA_PATH__
  1. When running the script in an environment created with Virtualenv, the lagging issue occurs. For example, using the following command:
__VIRTUALENV_PATH__\Scripts\python.exe __SCRIPT_PATH__\blue_archive_auto_script\window.py

Additionally, since the executable files we package are also created in a Virtualenv environment, they exhibit the same lagging behavior.

We speculate that this issue might be related to the memory allocated to the environment or perhaps optimizations at the lower levels of Conda that improve interface performance. Unfortunately, we currently lack the means to resolve this problem. Any assistance in solving this issue would be greatly appreciated.

Who may be familiar with the problem, I think: @Daodanfd5 @rainux

Kiramei avatar Nov 28 '24 14:11 Kiramei

https://github.com/user-attachments/assets/3708c778-7796-4b5e-a96d-23729aef1093

It uses the latest release and new install. there is no lagging issue on my device, and the processor is Intel i5-12400 with internal graphics, it's not too high

Daodanfd5 avatar Dec 04 '24 06:12 Daodanfd5

使用ver 1.2.0 版本安装包后卡顿问题有所好转

pur1fying avatar Feb 19 '25 06:02 pur1fying

使用ver 1.2.0 版本安装包后卡顿问题有所好转

你用自己电脑把那个installer.py打包一下试试?build.bat跑一下就能生成exe。我不清楚是不是不同电脑之间打包存在差异性?

Kiramei avatar Feb 19 '25 11:02 Kiramei

BlueArchiveAutoScript.txt

使用ver 1.2.0 版本安装包后卡顿问题有所好转

你用自己电脑把那个installer.py打包一下试试?build.bat跑一下就能生成exe。我不清楚是不是不同电脑之间打包存在差异性?

pur1fying avatar Feb 19 '25 11:02 pur1fying

github不允许上传exe文件所以我将后缀改成txt了

pur1fying avatar Feb 19 '25 11:02 pur1fying

果然你这打包出来大小都不一样了,流畅程度没有变化吗

Kiramei avatar Feb 19 '25 11:02 Kiramei

是的

pur1fying avatar Feb 19 '25 11:02 pur1fying