Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many Control Buttons with custom styles (StyleBoxFlat) slowing Android exports. (Less than 15fps). #40189

Closed
TIBI4 opened this issue Jul 7, 2020 · 2 comments

Comments

@TIBI4
Copy link

TIBI4 commented Jul 7, 2020

Godot version (tested in both):

  • Godot_v3.2.2 stable win64.
  • Godot v3.2 beta2 official win64.

OS/device including version:

  • Tested on Xiaomi Mi A1 and Xiaomi Redmi 4A.
  • GLES2. (GLES3 tested too).

Issue description:

  • Huge perfomance issues when using StyleBoxFlat.
  • (Debugging trough USB).

Image 1:
Those steps are from creating a new row (on Android).
image
hkvSlLursW

Image 2:
Those hidden nodes are replicated in the Android phone.
t05AkDBKsV
iM9MsshrQj

Steps to reproduce:

  • Add many node buttons with custom StyleBoxFlat.

Minimal reproduction project:
Test.zip

@Calinou
Copy link
Member

Calinou commented Jul 7, 2020

Duplicate of #19943; the underlying cause is the same. As a workaround, decrease the corner detail of StyleBoxFlat or avoid using rounded corners altogether. (You could use StyleBoxTexture with pre-made nine-patch textures instead.)

@TIBI4
Copy link
Author

TIBI4 commented Jul 7, 2020

@Calinou

As a workaround, decrease the corner detail of StyleBoxFlat or avoid using rounded corners altogether. (You could use StyleBoxTexture with pre-made nine-patch textures instead.)

Making pre-made textures worked for me earlier. But I wanted to use what Godot provided to me.

Anyways. I share this, as decreasing corner details, avoiding using rounded corners, or both at the same time didn't help.

(all of them above Physics Frame Time)

Minimal corner detail.
RFDuAjEkkH

Border radius = 0.
w2mVRw8tIh

Both at the same time.
Godot_v3 2-beta2_win64_rioZW4AtwK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants