Facing problem opening flatpak apps

I downloaded Gaia sky app recently from flatpak since I couldn’t get the latest package through aur. All went fine and was able to install the Galaxies and Stars data easily but when I ran it, it lagged on my laptop. Here is the system info:

    System:
  Kernel: 5.4.116-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  Desktop: Xfce 4.16.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: HP product: HP Notebook v: Type1ProductConfigId 
  serial: <filter> 
  Mobo: HP model: 81F6 v: 66.26 serial: <filter> UEFI-[Legacy]: Insyde 
  v: F.35 date: 05/27/2019 
Battery:
  ID-1: BAT1 charge: 14.7 Wh (53.3%) condition: 27.6/27.6 Wh (100.0%) 
  volts: 15.4 min: 14.8 model: 11-85 HS04037 status: Discharging 
CPU:
  Info: Quad Core model: AMD A8-7410 APU with AMD Radeon R5 Graphics 
  bits: 64 type: MCP arch: Puma rev: 1 cache: L2: 2 MiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 17572 
  Speed: 998 MHz min/max: 1000/2200 MHz boost: enabled Core speeds (MHz): 
  1: 998 2: 998 3: 998 4: 998 
Graphics:
  Device-1: AMD Mullins [Radeon R4/R5 Graphics] vendor: Hewlett-Packard 
  driver: radeon v: kernel bus-ID: 00:01.0 
  Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / 
  Radeon 520 Mobile] 
  vendor: Hewlett-Packard driver: radeon v: kernel bus-ID: 01:00.0 
  Device-3: Suyin HP TrueVision HD type: USB driver: uvcvideo 
  bus-ID: 2-1.1:3 
  Display: x11 server: X.Org 1.20.11 driver: loaded: ati,radeon 
  unloaded: modesetting resolution: 1366x768~60Hz 
  OpenGL: renderer: AMD KABINI (DRM 2.50.0 5.4.116-1-MANJARO LLVM 11.1.0) 
  v: 4.5 Mesa 21.0.3 direct render: Yes 
Audio:
  Device-1: AMD Kabini HDMI/DP Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus-ID: 00:01.1 
  Device-2: AMD FCH Azalia vendor: Hewlett-Packard driver: snd_hda_intel 
  v: kernel bus-ID: 00:14.2 
  Sound Server-1: ALSA v: k5.4.116-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.26 running: no 
Network:
  Device-1: Realtek RTL8723BE PCIe Wireless Network Adapter 
  vendor: Hewlett-Packard driver: rtl8723be v: kernel port: 3000 
  bus-ID: 02:00.0 
  IF: wlo1 state: up mac: <filter> 
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: 2000 bus-ID: 03:00.0 
  IF: enp3s0 state: down mac: <filter> 
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8 
  bus-ID: 1-1.4:4 
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running 
  rfk-block: hardware: no software: yes address: see --recommends 
Drives:
  Local Storage: total: 931.51 GiB used: 21.26 GiB (2.3%) 
  ID-1: /dev/sda vendor: Western Digital model: WD10JPVX-60JC3T0 
  size: 931.51 GiB 
Partition:
  ID-1: / size: 91.11 GiB used: 18.01 GiB (19.8%) fs: ext4 dev: /dev/sda7 
  ID-2: /home size: 300.98 GiB used: 3.26 GiB (1.1%) fs: ext4 dev: /dev/sda6 
Swap:
  ID-1: swap-1 type: file size: 4 GiB used: 0 KiB (0.0%) file: /swapfile 
Sensors:
  System Temperatures: cpu: 62.0 C mobo: 20.0 C 
  Fan Speeds (RPM): N/A 
  GPU: device: radeon temp: 61.0 C device: radeon temp: 54.0 C 
Info:
  Processes: 194 Uptime: 1h 04m Memory: 3.32 GiB used: 1.39 GiB (41.9%) 
  Init: systemd Compilers: gcc: 10.2.0 Packages: 1320 Shell: Bash v: 5.1.4 
  inxi: 3.3.04 

I have a dedicated trash GPU too and I want to test if it allows me to run the application a bit lagfree. All apps I wanted to run with that gpu could be run easily with DRI_PRIME=1 offload but gaia app just refuses to run and also freezes my desktop :slightly_frowning_face: . Is there any workaround for it. Any help will be appreciated :smiley:

Is there no way to run flatpak apps through other gpu. Or is there any way to install the Gaia app for manjaro with no access to latest versions through AUR