JavaFX UI Controls running slow - raspberry-pi

I'm trying to run javafx8 application on raspberry pi model B. but keyboard input & mouse motions are seems bit slow. as a example I did it with one textfield on raspberry pi. when I typing to textfeild there is a delay. tableview also same. when I click on a raw. there is a delay between mouse click and selection. I read some blogs on internet that oraclejvm's performances are great on raspberry pi. Is it possible to run javafx controls without delay on raspberry pi? I done couple of optimization on raspberry pi. is it problem with javafx8 or raspberry pi performance?

As you are probably aware the pi does not like graphics very much. I have had the same problems (with swing rather than javafx). This can happen for multiple reasons. First check your OS version. I assume that your using raspbian which had a soft float version for a while. The armel version is way slower particularly in these areas. I would run apt-get upgrade and update first and if the problem persisted, download the latest version of the OS. You are correct that oracle jvm performance is quite good on the pi so the issue is likely to do with your particular setup.

Related

Real time OS (RTOS) for Raspberry Pi to make a CNC Controller

this is my first post please be kind.
I have experience programming C++, but it has been a few years since I did anything...
I would like to program a real-time CNC controller, to run CNC machines without a motion controller. I will use a Raspberry Pi and connect it to a MESA card for running all the physical inputs and outputs.
The application and GUI for touch screens will in the future support a small simple slicer for 3D printers, and some simple CAM operations for graphically programming CNC machines for simple tasks.
What RTOS would you recommend to build my program on?
-I have thought about making a Linux based system run realtime, or maybe use Zephyr OS.
Please share your thoughts.
Regards William

Cannot Use Raspberry Pi Camera v1/2 with Gumstix Pi Compute Dev Board

Referencing this item:
https://store.gumstix.com/gumstix-pi-compute-dev-board.html
I cannot use the official Pi camera(s) using either the official Raspberry Pi "Buster" disk image or the Pi disk image provided by Gumstix:
Disk image referenced here--> https://store.gumstix.com/raspberry-pi-cm-fast-flash.html
Note: The Gumstix Pi image would "hang" on the rainbow colored splash screen during boot, using the image above. I am using the "fast flash" board to write the images, and have been able to repeatedly (successfully) install the standard Raspbian OS. FYI I have been using Balena Etcher, and it has worked with my other boards.
Also, I followed the official instructions to add camera support in an attempt to understand what I am doing wrong. vcgencmd initially reported no support or detection in raspbian. I was able to add camera support using the blobs mentioned here (I compliled manually and also used the precompiled variant):
https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-camera.md
Final result:
vcgencmd get_camera : supported=1 detected=0
Lastly, yes the camera is enabled, and I have tested the cam/cable on other systems with no issues. I suspect the pin GPIO settings may be to blame, but based on the information in front of me (for this board) I should not be expecting to manually adjust those params. Thanks for any insight….hopefully this is an I-D-10-T error.
First off I should appologize, the page you referenced about getting the disk image is very out of date. We will work to update it soon.
My guess of why it's not booting is likely a hardware imcompatibilty, are you using a Raspberry Pi CM3+?
Give this image a try
https://gumstix-raspbian.s3.amazonaws.com/2019-12-29/raspberrypi-cm3/rpi-4.19.y/2019-09-26-raspbian-buster-lite.img.xz
That's a recently compiled Buster image that has some extra drivers added in to support Geppetto modules. The default Buster image should also work.
To properly support any of our boards, it's best to download the board support package for that particular design. In your case, you're using the Gumstix Pi Compute Dev Board, which can be found
https://geppetto.gumstix.com/#!/design/1045/
Please go to that page and click on the "AutoBSP" button on the top. That will prompt you to download a zip file that will contain some instructions and files needed to configure the Raspberry Pi.
Please let me know if you have any trouble.
Thanks,
Andrew

Do I need an OS for a RaspberryPi Game Console?

I want to create a game console with my Raspberry Pi and create my own game with an SD Card. Do I need an OS loaded with games or can I insert various SD Cards with different games?
In order to use the Raspberry Pi as a retro gaming console you will have to set it up. Go to the RetroPie Download page and choose the appropriate download for your version of your Raspberry Pi. The go to the RetroPi first installation page and follow the directions. After you complete that you will have to move your roms to the Raspberry pi into the /RetroPie/roms folder on the SD card. I use a Raspberry Pi for classic gaming and I love it.
I think there is some confusion here.
RetroPi IS technically the OS. You then "add" games to it.
If you want to create your own games then you have plenty of options.
You can technically create your own games and export them as NES games to be read by the NES emulator. This is very difficult and requires you to use tools that might be out of scope for beginners. The advantage is that you can put them in eprom chips and play them on an actual NES.
I would instead try to create a game using something like PyGame and play them on a RaspberryPi. Yo uwon't need RetroPi for something like this. Instead you'd need an OS like Raspbian
Yes definately. A raspberry pi without an operating system will not do anything. Its like asking a human to function without a brain. You should check out the retropie project. Its an operating system for the raspberry pi that lets you install roms and play the. You can even use controllers such as a ps3 controller.
Retropie
Head to RetroPie to download the image to your computer. Then, flash it on to the MicroSD with either Win32DiskImager on Windows or RPI-sd card builder on a Mac.
Have any other questions I can help with?

Is it possible to install Raspbian on raspberry PI without keyboard?

So far, what i tried is that
put raspbian image on to SD card.
power up PI with Sd card.
And after booting, a set-up option window popped up which i can't skip without keyboard.
Is there any way to skip this option menu ..?
Thank you
No, there are no buttons or physical input on the Raspberry PI itself, so without plugging some input device in you cannot skip the menu.
You could install Raspbian on a Raspberry PI emulator, do all the setup on your computer, then copy the already-setup disc image to your SD card. Here's a tutorial for setting up QEMU to emulate the Raspberry PI (and it includes installing Raspbian on the emulator): http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/
That seems like a lot of work though. You should probably just borrow someone's keyboard.

TideSDK apps on Raspberry Pi

I am looking to build an app that runs on a Raspberry Pi in full screen mode. I have already tried JavaFX and swing based app and the performance is really bad.
Before I jump on to SDL(http://www.libsdl.org/) i want to check and see if anyone has successfully build apps using the TideSDK on the PI.
Appreciate your insights on the challenges
You have to give chance to Qt
[ http://wiki.qt.io/Main ]