AnimatedComputeShaderPanel Resolution Issue in WinUI 3 App

Open
#793 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp

Research direction

Reproduce the fluctuation with the attached ShaderApp.zip using ComputeSharp.WinUI v2.0.3 on the stated Windows setup, then inspect AnimatedComputeShaderPanel behavior around IsDynamicResolutionEnabled. Done means the ellipse keeps a stable size during File Explorer or folder changes without requiring the reported workaround.

Written by the indexing model from the issue text.

Description

by design 🎯
Description

In my WinUI 3 application using AnimatedComputeShaderPanel, the rendered ellipse's size unexpectedly fluctuates when performing actions like opening File Explorer or changing folders. This occurs despite properly adding an AnimatedComputeShaderPanel and configuring the shader, as demonstrated in the following video.

https://github.com/Sergio0694/ComputeSharp/assets/12293818/eb31c7d6-fc54-4277-b806-a9779169f001

Resolution

This problem can be resolved by setting the IsDynamicResolutionEnabled property to False.

Sample Code

Here is a sample code demonstrating the issue for reference.

ShaderApp.zip

System info
  • ComputeSharp.WinUI v2.0.3 from Nuget
  • Windows 10 Pro, Version 22H2, Build 19045.4291
  • CPU: Intel(R) Core(TM) i7-9700KF CPU @ 3.60GHz 3.60 GHz
  • GPU: NVIDIA GeForce RTX 3090 Ti
  • Visual Studio 2022
Dominant language
C#
Stars
3.2k
Forks
148
Avg merge
4h 32m
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Sergio0694/ComputeSharp

All issues in Sergio0694/ComputeSharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.