Problem is only on PI4.Yes. seems you have to do:
I believe I've seen design-time performance problems related to a TImage or similar control running on a PC (KDE plus GTK2 widgets). However I'd not investigated in enough depth to raise it on Mantis etc.
MarkMLl
Problem is only on PI4.Yes. seems you have to do:(even that takes some manual intervention)
sudo apt-get update && sudo apt-get dist-upgrade -y
I run it on RPI 4 with the latest raspbian Buster:No. These are the commands:
Installation on SD card from here: https://www.raspberrypi.org/downloads/raspbian/ (Raspbian Buster with desktop), after installation:
apt-get install update
apt-get install upgrade
apt-get dist-upgrade
rpi-update
Zdenek.
No. These are the commands:
sudo apt update
sudo apt upgrade
sudo apt reboot
sudo apt update
sudo apt dist-upgrade (provided the previous sudo apt update indicated a fully up to date system)
sudo reboot
You do not "install" update or upgrade...
And you need sudo.
I run it on RPI 4 with the latest raspbian Buster:No. These are the commands:
Installation on SD card from here: https://www.raspberrypi.org/downloads/raspbian/ (Raspbian Buster with desktop), after installation:
apt-get install update
apt-get install upgrade
apt-get dist-upgrade
rpi-update
Zdenek.
sudo apt update
sudo apt upgrade
sudo reboot
sudo apt update
sudo apt dist-upgrade (provided the previous sudo apt update indicated a fully up to date system)
sudo reboot
You do not "install" update or upgrade...
And you need sudo.
I don't have RPi4 but RPi3, power supply orginal for RPi (Extreme 3Amp) and Raspbian Stretch, Laz 1.6. On the form 11 images and switching between them is without problems.I suspect he did not update enough: Raspbian Buster was released a bit premature and there have been many speed tweaks specifically for the RPi4.
- Not updating Rasbian enough!!! There are almost weekly speed related updates. Plz run sudo apt update && sudo apt dist-upgrade -y if you did not do so already.I also update my RPi4B regularly, when I checked today there was only 1 update available (for Bluetooth which I don't use).
But how does one know if there is a dist-upgrade available???Running dist-upgrade is not strictly necessary all the time, upgrade is often enough, but it is my habit, except on vital systems where I only run upgrade..
No problem. Done. No problems found.
I used:
- RPi4/4GB running from a fast sandisk 64GB USB3 stick, booted from a sandisk cat 10 16GB micro sd card.
- Raspbian Buster with all patches. No swap (well, not a serious one: 128 MB)
- FPC version 3.3.1-r43569
- Lazarus version 2.1.0
- Offical USB-C Powersupply
Both FPC and Lazarus built from source on the Raspberry Pi itself.
Speed problems are often caused by:
- a 1 GB without enough swap
- a proper swap (equal to the hardware memory) but on a slow medium
- FPC and/or Lazarus built with debug information (never do that, unless you develop for the compiler or the IDE).
- Not updating Rasbian enough!!! There are almost weekly speed related updates. Plz run sudo apt update && sudo apt dist-upgrade -y if you did not do so already.
- An under-powered powersupply (RPi4 will throttle down!!! if starved, do you see the lightning image in the top right corner? That indicates not enough amps)
[edit]
Just repeated the test on a RPi 3b + 1 GB swap and there there is a noticable slowdown, but not unworkable.
That Pi is also running Pihole and a webserver, so there are less resources available.
This Pi has also the same storage configuration, except not running on USB3 speed of course. (stick and sd are the same, though)
No problem. Done. No problems found.
I used:
- RPi4/4GB running from a fast sandisk 64GB USB3 stick, booted from a sandisk cat 10 16GB micro sd card.
- Raspbian Buster with all patches. No swap (well, not a serious one: 128 MB)
- FPC version 3.3.1-r43569
- Lazarus version 2.1.0
- Offical USB-C Powersupply
Both FPC and Lazarus built from source on the Raspberry Pi itself.
Speed problems are often caused by:
- a 1 GB without enough swap
- a proper swap (equal to the hardware memory) but on a slow medium
- FPC and/or Lazarus built with debug information (never do that, unless you develop for the compiler or the IDE).
- Not updating Rasbian enough!!! There are almost weekly speed related updates. Plz run sudo apt update && sudo apt dist-upgrade -y if you did not do so already.
- An under-powered powersupply (RPi4 will throttle down!!! if starved, do you see the lightning image in the top right corner? That indicates not enough amps)
[edit]
Just repeated the test on a RPi 3b + 1 GB swap and there there is a noticable slowdown, but not unworkable.
That Pi is also running Pihole and a webserver, so there are less resources available.
This Pi has also the same storage configuration, except not running on USB3 speed of course. (stick and sd are the same, though)
But how does one know if there is a dist-upgrade available???Running dist-upgrade is not strictly necessary all the time, upgrade is often enough, but it is my habit, except on vital systems where I only run upgrade..
If you run sudo update it will report how many updates are available.
@DidaJI
Can you report your hardware in the exact same manner as I did above?
Can you report how you installed FPC and Lazarus?
Here it is nice to see that switching Buttons is cool until you put an Image on the form. Then, switching components becomes unusable.The bad news is I can reproduce that now. The good news is that there is work being done to the performance of the OpenGL back-end for the videocore V1.
Video: https://www.youtube.com/watch?v=rUItOqTz96U&feature=youtu.be
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
#dtoverlay=vc4-fkms-v3d