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
While using the Eco Mode, the map rendering only use 14%, which is very nice !
However, when a train is selected and the bottom train-panel shows up, the CPU usage goes (and stay) at 60%.
train-panel
The issue seems to be related to this glowing animation on the station "circle" :
mini-tokyo-3d/src/train-panel.js
Lines 99 to 117 in 1866fb4
This animation querySelect and update the existing "circle" with a new SVG element on every frame.
Possible solutions:
animation: glow 2s steps(2) infinite;
If you don't have time, I can Pull Request you a fix.
PS: They are others animations, that are redrawn 60 times / sec (but they are less CPU intensive, so it's okay)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
While using the Eco Mode, the map rendering only use 14%, which is very nice !
However, when a train is selected and the bottom
train-panel
shows up, the CPU usage goes (and stay) at 60%.The issue seems to be related to this glowing animation on the station "circle" :
![image](https://user-images.githubusercontent.com/5113053/147888917-e3de090f-401f-49b4-8674-c1b214a08db8.png)
mini-tokyo-3d/src/train-panel.js
Lines 99 to 117 in 1866fb4
This animation querySelect and update the existing "circle" with a new SVG element on every frame.
Possible solutions:
animation: glow 2s steps(2) infinite;
with a GPU-friendly attribute (opacity, translate3d ...)If you don't have time, I can Pull Request you a fix.
PS: They are others animations, that are redrawn 60 times / sec (but they are less CPU intensive, so it's okay)
The text was updated successfully, but these errors were encountered: