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

Low Processor Mode -> missing screen update on NotificationWmFocusIn #52008

Open
Difference opened this issue Aug 23, 2021 · 4 comments
Open

Comments

@Difference
Copy link

Difference commented Aug 23, 2021

Godot version

3.3.2

System information

IOS

Issue description

When turning on Low Processor Mode, returning to app, does not refresh the screen, resulting in a black screen, until you interact with the app.

Users will likely assume the app has crashed.

A workaround is to play a small animation on MainLoop.NotificationWmFocusIn like so ( ResumeLabel has a tween that displays it, then fades out)

public override void _Notification(int what)
    {
        base._Notification(what);
           if (what == MainLoop.NotificationWmFocusIn  )
            {
              var reslab = (ResumeLabel)FindNode("ResumeLabel");
               reslab.Play();
            }

            if (what == MainLoop.NotificationWmFocusOut )
            {
            var reslab = (ResumeLabel)FindNode("ResumeLabel");
            reslab.Visible = false;
            }    
    }

Steps to reproduce

Turn on Low Processor Mode , run on IOS device, and let device goto sleep ( or maybe just not have focus) until low processor mode kicks in.
Return to app, to see a blank/black screen.
Interact with app, to see screen turn on.

Minimal reproduction project

No response

@Calinou
Copy link
Member

Calinou commented Aug 23, 2021

Low processor mode has many bugs on mobile in general. Is it usable on iOS outside of this bug?

@Zireael07
Copy link
Contributor

Zireael07 commented Aug 23, 2021

Possibly related to #51946?

@Difference
Copy link
Author

Low processor mode has many bugs on mobile in general. Is it usable on iOS outside of this bug?

Yes, I benchmarked, and it reduces CPU usage when it kicks in. I do not have any other problems with it in my In production App ( https://apps.apple.com/dk/app/krydsordmen/id1393999562 )

@maran
Copy link

maran commented May 24, 2023

I'm also experiencing this on 3.5.1, it even happens on first boot for me so the app boots into a black screen giving users the feeling the app crashed.

I have an app that requires the device to stay awake and without low CPU mode the CPU usage doubles draining the battery much quicker.

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

4 participants