#22357·Avalonia

[Linux] GNOME Shell CPU usage increases with window size during Lottie playback

Author: jimmy-J123Created Sep 30, 2026Updated Sep 30, 2026
Labelsbug

Describe the bug

When playing a Lottie animation in an Avalonia window, GNOME Shell CPU usage increases significantly as the window containing the animation becomes larger.

To Reproduce

  1. Start the attached sample application.
  2. Play the Lottie animation.
  3. Resize the window from 400x300 to 1200x800.
  4. Observe GNOME Shell CPU usage.

sample.tar.gz

Expected behavior

CPU usage should primarily depend on the actual rendered/animated region, rather than the entire window size.

Actual behavior: GNOME Shell CPU usage increases as the window size increases.

400x300 size

TIME              gnome-shell CPU          AvaloniaSample CPU  
13:58:16.415                29.8%                      0.0%         
13:58:16.516                29.8%                      9.9%         
13:58:16.616                29.9%                      0.0%        
13:58:16.717                19.9%                       10.0%         
13:58:16.817                29.9%                      10.0%         
13:58:16.917                19.9%                       0.0%         
13:58:17.018                39.8%                       0.0%        
13:58:17.118                 29.9%                      10.0%         

1200x800 size

TIME              gnome-shell CPU          AvaloniaSample CPU  
13:58:24.757               139.3%                  	19.9%         
13:58:24.858               129.4%                  	 29.9%         
13:58:24.958               139.3%                       29.9%        
13:58:25.059               149.3%                       19.9%        
13:58:25.159               139.2%                  	29.8%        
13:58:25.260               129.4%                       19.9%        
13:58:25.360               159.2%                   	19.9%         

Avalonia version

11.x and 12.x

OS

Linux

Additional context

  • Animation frame rate: 25 FPS
  • Lottie canvas: 200x200
  • Displayed size: 125x125
  • .NET: 8 / 10
  • OS: Ubuntu / RHEL
  • Desktop: GNOME
  • Session: X11 / XWayland
  • GPU: 00:0f.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405] Subsystem: VMware SVGA II Adapter [15ad:0405] Kernel driver in use: vmwgfx Kernel modules: vmwgfx 02:00.0 Serial Attached SCSI controller [0107]: VMware PVSCSI SCSI Controller [15ad:07c0] (rev 02)

Mac and windows platform have no such issue.