Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lagging issue in the interface of multi-instance scripts #191

Open
Kiramei opened this issue Nov 28, 2024 · 7 comments
Open

Lagging issue in the interface of multi-instance scripts #191

Kiramei opened this issue Nov 28, 2024 · 7 comments
Labels
请求帮助 需要首要更加关注的问题

Comments

@Kiramei
Copy link
Collaborator

Kiramei commented Nov 28, 2024

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.
WeChat_20241128225809.mp4

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 Kiramei added the 请求帮助 需要首要更加关注的问题 label Nov 28, 2024
@Kiramei Kiramei pinned this issue Nov 28, 2024
@Daodanfd5
Copy link
Collaborator

2024-12-04.14-37-47.1.mp4

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

@pur1fying
Copy link
Owner

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

@Kiramei
Copy link
Collaborator Author

Kiramei commented Feb 19, 2025

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

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

@pur1fying
Copy link
Owner

BlueArchiveAutoScript.txt

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

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

@pur1fying
Copy link
Owner

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

@Kiramei
Copy link
Collaborator Author

Kiramei commented Feb 19, 2025

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

@pur1fying
Copy link
Owner

是的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
请求帮助 需要首要更加关注的问题
Projects
None yet
Development

No branches or pull requests

3 participants