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

Fix Freezing with GPU #3378

Closed
wants to merge 5 commits into from

Conversation

onesounds
Copy link
Contributor

@onesounds onesounds commented Mar 24, 2025

What's PR

  • Fixed a freezing issue after sleep when the GPU is active
  • Activate the GPU

Reproduce

  • Open FLOW's settings window, then press WIN+L to switch to the lock screen.
  • After logging back in, try navigating to a different menu in the settings window to check if it freezes.

How to Fix

  • When the first window is opened during a freeze, the settings window unfreezes.
  • Handled specific events to trigger showing the main window when they occur.

Issues and Idea

  • When sound is enabled, a sound plays and a brief flicker is visible.
  • Consider implementing a custom show method that skips sound and uses opacity to create a transparent effect.

Test Cases

  • The settings window should not freeze after re-entering from WIN+L.
  • The settings window should not freeze after resuming from sleep

@prlabeler prlabeler bot added the bug Something isn't working label Mar 24, 2025

This comment has been minimized.

- Changed SoundPlay location

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link

@check-spelling-bot Report

🔴 Please review

See the 📂 files view, the 📜action log, or 📝 job summary for details.

❌ Errors Count
❌ forbidden-pattern 24
⚠️ ignored-expect-variant 1
⚠️ non-alpha-in-dictionary 19

See ❌ Event descriptions for more information.

Forbidden patterns 🙅 (1)

In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves.

These forbidden patterns matched content:

s.b. workaround(s)

\bwork[- ]arounds?\b
If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants