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

huge frame-drops with AnimatedSprite (WindowManager bug) #64303

Open
azur-wolf opened this issue Aug 12, 2022 · 0 comments
Open

huge frame-drops with AnimatedSprite (WindowManager bug) #64303

azur-wolf opened this issue Aug 12, 2022 · 0 comments

Comments

@azur-wolf
Copy link

Godot version

3.5.0

System information

Linux Debian 11, Gnome 3.38.5 (Wayland), GLES3, Intel HD Graphics 4400 (HSW GT2)

Issue description

When Play a project inside the editor, it starts slow, like huge frame-drops.
It is 2D with some sprites, so it shouldn't be any performance issue.

It keeps indefinitely with the slowdown, until pressing a hotkey to switch virtual desktop (either the view or moving a window to another one).

Have taken a screenshot with the Profiler:
Screenshot from 2022-08-12 07-57-19

The high plateau is the frame-drop. After doing virtual desktop switching, things become stable.

Thought that it was because of Wayland, but tried on a X11 session, and also happens the same.

The cause is the AnimatedSprite is playing from launching the project (marking the property in the inspector), even if it only has a single animation with few sprites.

Also in my case, throws a couple of WindowManager errors:
Screenshot from 2022-08-12 08-49-11

Steps to reproduce

(it can be dependent on the OS and WindowManager)
Linux Debian 11
Gnome 3.38.5 (Wayland & XWayland)
using multiple virtual desktops (2 in my case)

  1. Download and launch (F5) the attached project. (notice the fps label)
  2. now press a hotkey that let you switch between your virtual desktops [OS description above]
  3. notice the fps become stable, press Esc to close
  4. Now un-check the AnimatedSprite.playing property from the inspector, and run the project again.
  5. now fps should be stable
  6. press Enter to toggle AnimatedSprite.playing (see script)
  7. fps should stay stable even if the animation is running.

[if you're doesn't experience frame-drops, maybe is related to the errors in the last image]

Minimal reproduction project

framedrop_virtual_desktops.zip

@azur-wolf azur-wolf changed the title huge frame-drops huge frame-drops with AnimatedSprite (WindowManager bug) Aug 12, 2022
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

3 participants