react app / revpi connect 4 / chromium

Topics about the Hardware of Revolution Pi
Post Reply
cerberus78
Posts: 17
Joined: 06 May 2024, 20:24

react app / revpi connect 4 / chromium

Post by cerberus78 »

Hello everyone,

I'm encountering some performance issues with a project that could potentially lead to purchasing multiple RevPi devices if it works as required. The setup involves running a React web application on a RevPi with Chromium. Unfortunately, I'm facing significant performance problems when accessing the app directly on the RevPi:

Performance Issues: The app experiences severe lag, slow transitions, and overall sluggishness when opened through Chromium on the RevPi.
Working Fine Remotely: However, when I access the same app via IP from my laptop, phone, or tablet, it performs smoothly without any issues.

Since the final deployment will involve connecting a display directly to the RevPi to show the web app, this performance problem is quite concerning. I’ve been trying various solutions for over a week but haven’t had any success in improving the performance.

Here are the steps I’ve already taken:

Checked System Resources: Monitored CPU and memory usage to ensure they aren't maxed out.
Optimized Chromium: Tried running Chromium with performance-related flags and ensured it’s updated to the latest version.
Optimized React App: Implemented code-splitting and reduced unnecessary re-renders.
Network Conditions: Verified that the network connection is stable and fast.
Improved Device Performance: Increased swap space and disabled unnecessary services.
External Display: Tested with different resolutions and refresh rates.

Despite these efforts, the performance issues persist. I’m at a loss for what else to try and would greatly appreciate any advice or suggestions from the community. Have others faced similar issues with Chromium on RevPi, and what solutions did you find effective?

Thank you in advance for your help!
User avatar
dirk
KUNBUS
Posts: 2085
Joined: 15 Dec 2016, 13:19

Re: react app / revpi connect 4 / chromium

Post by dirk »

Hello cerberus78 Your report is comprehensive.

Unfortunately, performance problems are always difficult to deal with. As with a car, displacement can unfortunately only be replaced by more displacement, so consider whether you can upgrade the hardware because the RevPi Connect 4 is now available with up to 8GB RAM plus 32GB eMMC memory: https://revolutionpi.com/shop/en/revpi-connect4

There is also the option of using a minimal image or even creating your own image. The minimal image does not have a pre-installed desktop. Please look at this helpful article from our knowledge base:
https://kunbus-gmbh.atlassian.net/servi ... 3106799722

Can you create an SOS-Report for us? I can take a look at it.
https://kunbus-gmbh.atlassian.net/servi ... 2036400208

Regards
Post Reply