AvaloniaUI / AvaloniaVS

Visual Studio Extension for Avalonia
MIT License
435 stars 83 forks source link

Calendar causes heavy CPU usage in XAML previewer at 800% zoom #498

Open Wezz19 opened 1 month ago

Wezz19 commented 1 month ago

Describe the bug

Setting the zoom level in the XAML previewer to 800% and hovering the mouse pointer around on top of the calendar causes so heavy CPU usage that music in other programs randomly cuts off.

To Reproduce

  1. Display a calendar in the XAML previewer and set the zoom to 800%
  2. Open task manager on the CPU activity tab
  3. Hover the mouse pointer in circles over the calendar in the previewer
  4. Notice heavy CPU usage on all cores

Expected behavior

Should not cause the CPU to reach close to 100% usage on all cores.

Avalonia version

11.1.3

OS

Windows

Additional context

I have an old i5-6600K so newer CPUs maybe wont reach close to 100% usage.

Wezz19 commented 1 month ago

Realized this should have been posted in AvaloniaVS.