8000 Raspberry Pi poor performance · Issue #19890 · unoplatform/uno · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Raspberry Pi poor performance #19890

New issue

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

Open
veigaMak opened this issue Apr 9, 2025 · 3 comments
Open

Raspberry Pi poor performance #19890

veigaMak opened this issue Apr 9, 2025 · 3 comments
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@veigaMak
Copy link
veigaMak commented Apr 9, 2025

Current behavior

I have a Raspberry Pi CM4 with a DSI screen (720x1560) connected. I tried running the Simple Calculator solution (the solution used CalcWorkshop.zip, the only this was in the Raspberry Pi I removed the android, ios and mac from the target framework). I got a terrible performance i.e. if i click in something it takes 2/3s to take effect. Nothing more is running. I also tested in a CM5, it has the same problem (it might be slightly better, but still a big delay). The problem should not be in the app as I compiled in my PC for Windows desktop and installed in my android phone and it runs fine.

Expected behavior

No response

How to reproduce it (as minimally and precisely as possible)

With a Raspberry Pi OS lite

# Install dotnet
curl -sSL https://dot.net/v1/dotnet-install.sh | sudo bash /dev/stdin --channel 9.0 --install-dir /usr/share/dotnet
export DOTNET_ROOT=/usr/share/dotnet

# Assume that the sln exists, and we are inside the .proj dir
# Removed the android, ios and mac from the target framework
dotnet run  -f net9.0-desktop
# The problem occurs

# Install packages to try to solve problems
sudo apt install libgtk-3-dev libgtk-3-0 libfontconfig-dev libfreetype-dev libinput-dev

dotnet run  -f net9.0-desktop
# The problem still occurs

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@veigaMak veigaMak added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Apr 9, 2025
@jeromelaban
Copy link
Member

Thanks for the report.

We have not noticed performance issues using Raspberry Pi devices, but it may be that some devices have issues with hardware acceleration, particular with GLES.

You mention that you need to include GTK, a dependency that has not been needed in recent releases of Uno. Could you provide the version of Uno that you're using in your global.json file? Could you also tell which issues you got before installing those dependencies?

@jeromelaban jeromelaban added the triage/needs-information Indicates an issue needs more information in order to work on it. label Apr 12, 2025
@veigaMak
Copy link
Author

The Uno version in global.json is 5.6.51, I have created this via template a few days ago, it should have one of the latest versions. The problem is the same before and after installing the packages.

@github-actions github-actions bot removed the triage/needs-information Indicates an issue needs more information in order to work on it. label Apr 14, 2025
@jeromelaban
Copy link
Member

Thanks.

I tested your sample on a RPi 3 on a 800x480 screen. The app is not fast, but it does not take multiple seconds to handle key presses either.

Note that you're building your app in debug, which does not help performance.

Given what you're describing from your setup, you're running with the Linux Framebuffer and Uno is currently only rendering using software rendering and DRM support is needed. We're tracking this feature here #19932.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

2 participants
0