question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a "no SVG animations" mode when discovering and running tests

See original GitHub issue

Environment data

  • VS Code version: 1.41.0
  • Extension version (available under the Extensions sidebar): 2019.11.50794
  • OS and version: Ubuntu 19.10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.9
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): poetry
  • Relevant/affected Python packages and their versions: Django/Django RestFramework
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): Jedi

Expected behaviour

See minimal slowdown when running unittests via VScode vs the commandline.

Actual behaviour

When running the unittests (pytest and Django) with an intel GPU (UHD Graphics 620) they take around 100 seconds. With an nvidia GPU around 25 seconds. On the commandline it’s around 22 seconds.

Steps to reproduce:

  1. Have an intel GPU:
  2. Click on the Flask/test explorer
  3. Click on the green arrow, i.e. “Run all tests”
  4. check the Python Test Log output for the time
  5. Repeat steps with an NVIDIA GPU.

Or

  1. Have an intel GPU
  2. Click on the Flask/test explorer
  3. Click on the green arrow, i.e. “Run all tests”
  4. check the Python Test Log output for the time
  5. Repeat but minimize the window after clicking on ‘Run all tests’.

and observe that it takes up so much CPU/GPU time that is slows the whole thing down.

It could be due to the spinner in the test explorer, because minimizing VSCode solves the problem.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Console Log with sourcemap enabled for NVIDIA and Intel https://gist.github.com/rvanlaar/603eae9dd4ccf7bf82f473f537acf1a3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
rvanlaarcommented, Dec 20, 2019

For reference: I also created a chromium issue for it: https://bugs.chromium.org/p/chromium/issues/detail?id=1036262

1reaction
rvanlaarcommented, Feb 1, 2020

This issue can be closed.

After looking more into this issue and the performance problems. This issue was due to having enabled fractional scaling in Xorg on ubuntu.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Guide to SVG Animations (SMIL) - CSS-Tricks
Overview. SVG graphics can be animated using animation elements. The animation elements were initially defined in the SMIL Animation ...
Read more >
How to animate SVG with CSS: Tutorial with examples
We demo several animations using SVGs and CSS, like a hamburger menu, bouncy text, fade in and fade out, and more.
Read more >
Inspect and modify CSS animation effects - Chrome Developers
Overview. To capture animations, open the Animations tab. It automatically detects animations and sorts them into groups.
Read more >
Work with SVG files in Animate - Adobe Support
Exporting artwork in SVG format ... On the Export SVG dialog, choose to Embed or Link to your SVG file. ... Click Ok....
Read more >
Start CSS animation on hover in a SVG used as border-source
Create your own Custom Element <bordered-svg> (supported in all modern Browsers) that dynamically creates the SVG with all unique values, no ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found