We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
动画效果在低端硬件上,是卡顿的。 我们可以在设置里为javafx的硬件加速设置一个开关,在低端硬件下也能有流畅的动画效果。
The text was updated successfully, but these errors were encountered:
Javafx默认会根据电脑环境自动开启硬件加速,游玩鸣潮的电脑应该都满足开启硬件加速。目前发现卡顿的地方集中于初次加载抽卡界面,我之前特地做了线程优化,效果并不好,没发现什么原因。还有一点值得注意的是,界面大部分都是由fxml编写,相较于java代码,界面生成慢100ms左右,这或许也会影响动画。
Sorry, something went wrong.
是的自动开启了硬件加速😮,但javafx的animation依然是cpu计算的。fxml主要用于在开始生成页面元素,动画在这之后,并不会影响动画。动画卡顿应该是由于页面的子节点过多。这在主频过低的低端硬件上尤为明显。 javafx的animation不适合用于整个界面的动画。
#71 我将动画改为了截图而不是ui元素,这影响了加载时间,但让动画效果占用更小了。
最近没时间处理PR,有空我再看看。
No branches or pull requests
动画效果在低端硬件上,是卡顿的。
我们可以在设置里为javafx的硬件加速设置一个开关,在低端硬件下也能有流畅的动画效果。
The text was updated successfully, but these errors were encountered: