[DO NOT MERGE] Onboarding views + OpenGL #126

Closed
hebasto wants to merge 9 commits from pr124/0601.opengl into main AGit
hebasto commented 2022-06-03 11:06:45 +00:00 (Migrated from github.com)

This PR is for testing purpose only to provide designers with CI built binaries for supported platforms.

It combines bitcoin-core/gui-qml#33 and bitcoin-core/gui-qml#124.

Windows
macOS
Android

This PR is for testing purpose only to provide designers with CI built binaries for supported platforms. It combines bitcoin-core/gui-qml#33 and bitcoin-core/gui-qml#124. [![Windows](https://img.shields.io/badge/OS-Windows-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/126) [![macOS](https://img.shields.io/badge/OS-macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/126) [![Android](https://img.shields.io/badge/OS-Android-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/126)
shaavan (Migrated from github.com) reviewed 2022-06-03 21:23:24 +00:00
shaavan (Migrated from github.com) left a comment
  • Tested this PR on a Xiaomi Note 5 Pro, with Android 9 Pie
  • I successfully downloaded the app and ran it on my phone.

Observations:

Note: These are the things I observed while running the app. They are not intended as a set of suggestions for any specific PR.

  1. The Bitcoin core icon is not shown when installing the app but is shown when the app is downloaded.
Frame 2

Of the onboarding views:
Frame 1

  1. Text on all the pages overflows.
  2. OptionButton switches only when they are tapped at the border. Without touching the edge, taping in the center does not change the selected OptionButton.
  3. The color of the Bitcoin icon is bright green, corresponding to testnet. Don't know if that's a deliberate choice.
- Tested this PR on a Xiaomi Note 5 Pro, with Android 9 Pie - I successfully downloaded the app and ran it on my phone. **Observations:** Note: These are the things I observed while running the app. They are not intended as a set of suggestions for any specific PR. 1. The Bitcoin core icon is not shown when installing the app but is shown when the app is downloaded. <img width="569" alt="Frame 2" src="https://user-images.githubusercontent.com/85434418/171954559-57f2c9c3-9424-408a-b19e-f29a0dddf8f2.png"> Of the onboarding views: <img width="1313" alt="Frame 1" src="https://user-images.githubusercontent.com/85434418/171954674-ff4186a5-0823-4caf-ae74-9caf2fa9659b.png"> 1. Text on all the pages overflows. 2. `OptionButton` switches only when they are tapped at the border. Without touching the edge, taping in the center does not change the selected `OptionButton`. 3. The color of the Bitcoin icon is bright green, corresponding to testnet. Don't know if that's a deliberate choice.
jarolrod commented 2022-06-03 21:30:19 +00:00 (Migrated from github.com)

@shaavan thank you for testing on android, that's actually one thing we wanted to quickly confirm about the current master branch in general. Seems like this should be feedback on #124 in consideration of mobile devices.

This, in considersation of this repo, is about fixing the stuttering issues by moving from 2d rendering to opengl rendering. Please also test on desktop comparing this branch and master to see if there's a considerable difference in how things are rendered in switching through pages + resizing the window

@shaavan thank you for testing on android, that's actually one thing we wanted to quickly confirm about the current master branch in general. Seems like this should be feedback on #124 in consideration of mobile devices. This, in considersation of this repo, is about fixing the stuttering issues by moving from 2d rendering to opengl rendering. Please also test on desktop comparing this branch and master to see if there's a considerable difference in how things are rendered in switching through pages + resizing the window
shaavan commented 2022-06-03 21:49:55 +00:00 (Migrated from github.com)

Seems like this should be feedback on https://github.com/bitcoin-core/gui-qml/pull/124 in consideration of mobile devices.

Yes. And AFAIK, fixing the layout according to the design guide (for example, using max-width instead of width) shall fix most of these issues. I shall soon update PR #124 with the layout set.

Please also test on desktop comparing this branch and master to see if there's a considerable difference in how things are rendered in switching through pages + resizing the window

I shall soon post my observation regarding this.

> Seems like this should be feedback on https://github.com/bitcoin-core/gui-qml/pull/124 in consideration of mobile devices. Yes. And AFAIK, fixing the layout according to the design guide (for example, using _max-width_ instead of _width_) shall fix most of these issues. I shall soon update PR #124 with the layout set. > Please also test on desktop comparing this branch and master to see if there's a considerable difference in how things are rendered in switching through pages + resizing the window I shall soon post my observation regarding this.
shaavan commented 2022-06-03 23:02:02 +00:00 (Migrated from github.com)

I could not observe any visible improvement on my desktop using OpenGL.

Specification:

Ubuntu 22.04 with Qt version 5.15.3

Demo:

With 2D Rendering (PR#124) With OpenGL(PR#126)
Without OpenGL(1) With OpenGL

Edit 1:

For the above testing, I dynamically built the PR. It is possible that the PR might not have been built correctly. I will try building this PR with static builds to see if I observe any difference in the smoothness and rendering of the GUI.

Edit 2: This comment has been outdated. See this review for a better analysis of the PR.

<s>I could not observe any visible improvement on my desktop using OpenGL. **Specification:** Ubuntu 22.04 with Qt version 5.15.3 **Demo:** |With 2D Rendering (PR#124)|With OpenGL(PR#126)| |-------------------------|------------------| |![Without OpenGL(1)](https://user-images.githubusercontent.com/85434418/171964770-dff907e6-98c2-405c-a344-792d8146c6c3.gif)|![With OpenGL](https://user-images.githubusercontent.com/85434418/171964782-c51a1182-6847-4355-bced-e30bbb715a8f.gif)| ----------------------------------------- </s> <details> <summary> <b>Edit 1:</b> </summary> For the above testing, I dynamically built the PR. It is possible that the PR might not have been built correctly. I will try building this PR with static builds to see if I observe any difference in the smoothness and rendering of the GUI. </details> **Edit 2:** This comment has been outdated. See [this review](https://github.com/bitcoin-core/gui-qml/pull/126#pullrequestreview-995953619) for a better analysis of the PR.
hebasto commented 2022-06-03 23:04:09 +00:00 (Migrated from github.com)

I could not observe any visible improvement on my desktop using OpenGL.

Specification:

Ubuntu 22.04 with Qt version 5.15.3

Do logs confirm OpenGL usage?

> I could not observe any visible improvement on my desktop using OpenGL. > > > > **Specification:** > > > > Ubuntu 22.04 with Qt version 5.15.3 > Do logs confirm OpenGL usage?
shaavan commented 2022-06-03 23:28:06 +00:00 (Migrated from github.com)

I could not find any statement while configuring that talks about using OpenGL.

However, I found a seemingly relevant statement in the debug.log

image

I used the dynamic build for building this PR. Let me give a try building with static builds as well.

I could not find any statement while configuring that talks about using OpenGL. However, I found a seemingly relevant statement in the debug.log ![image](https://user-images.githubusercontent.com/85434418/171966460-fa1ca24f-c7a3-4d2d-a3f9-da97732b163d.png) I used the dynamic build for building this PR. Let me give a try building with static builds as well.
shaavan (Migrated from github.com) reviewed 2022-06-04 20:44:03 +00:00
shaavan (Migrated from github.com) left a comment

I successfully compiled this PR by doing a static build using depends.

System Specification:

Ubuntu 22.04 with Qt version 5.15.3

Steps used to compile

From ../gui-qml folder

cd depends
make -j8
cd ..
./autogen.sh
CONFIG_SITE=\$PWD/depends/x86_64-pc-linux-gnu/share/config.site ./configure --without-bdb --with-qml
make -j8

I observed considerable improvements with using OpenGL Rendering over 2-D Rendering.

Demo:

With 2D Rendering (PR#124) With OpenGL(PR#126)
Without OpenGL(1) Screencast from 05-06-22 01 58 18 AM IST
I successfully compiled this PR by doing a static build using depends. **System Specification:** Ubuntu 22.04 with Qt version 5.15.3 <details open> <summary> <b>Steps used to compile</b> </summary> <br> From `../gui-qml` folder ``` cd depends make -j8 cd .. ./autogen.sh CONFIG_SITE=\$PWD/depends/x86_64-pc-linux-gnu/share/config.site ./configure --without-bdb --with-qml make -j8 ``` </details> I observed considerable improvements with using **OpenGL Rendering** over **2-D Rendering**. **Demo:** |With 2D Rendering (PR#124)|With OpenGL(PR#126)| |-------------------------|------------------| |![Without OpenGL(1)](https://user-images.githubusercontent.com/85434418/171964770-dff907e6-98c2-405c-a344-792d8146c6c3.gif)|![Screencast from 05-06-22 01 58 18 AM IST](https://user-images.githubusercontent.com/85434418/172024795-5a72247e-8919-45fa-88ce-90ce46523e39.gif)|
jarolrod (Migrated from github.com) reviewed 2022-06-05 20:48:59 +00:00
jarolrod (Migrated from github.com) left a comment

Concept ACK

I have tested this and compared to master using static builds. There is a huge difference, as expected. I am not including a video demonstration as I'm not sure it would accurately convey the difference due to compression and file size limit constraints.

OpenGL support is needed for implementing several UI elements as specified in the design files, it's widely superior to 2d rendering for general UI fluidity, and is needed for proper wayland support.

Concept ACK I have tested this and compared to master using static builds. There is a huge difference, as expected. I am not including a video demonstration as I'm not sure it would accurately convey the difference due to compression and file size limit constraints. OpenGL support is needed for implementing several UI elements as specified in the design files, it's widely superior to 2d rendering for general UI fluidity, and is needed for proper wayland support.
jarolrod commented 2022-06-17 18:02:22 +00:00 (Migrated from github.com)

This can be closed now

This can be closed now
Sign in to join this conversation.
No description provided.