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

Stuttering when I hover over the window border #2266

Open
2 tasks done
tigerros opened this issue Feb 19, 2024 · 2 comments
Open
2 tasks done

Stuttering when I hover over the window border #2266

tigerros opened this issue Feb 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@tigerros
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

When I move my cursor to the window border (e.g., if I want to minimize the app), my whole system stutters. The mouse starts lagging and my audio stutters. The problem stops after a couple seconds if I keep the mouse on the border. Something which may be related to this problem, is a message that says "Get an app to open this ms-gamingoverlay link" when opening the app. On another PC where I do have a gaming overlay app installed, I get a notification from said gaming overlay that it's ready to start recording/etc. It seems that the system thinks it's a game even though it's not.

My code:

# Cargo.toml

[package]
name = "hello-world-iced"
version = "0.1.0"
edition = "2021"

[dependencies]
iced = { version = "0.12.0", default-features = false }
// main.rs

#![windows_subsystem = "windows"]

use iced::{Sandbox, Element, Settings};

fn main() {
    HelloWorld::run(Settings::default()).unwrap()
}

struct HelloWorld;

impl Sandbox for HelloWorld {
    type Message = ();

    fn new() -> Self {
        Self
    }

    fn title(&self) -> String {
        String::from("A cool application")
    }

    fn update(&mut self, _message: Self::Message) {
        
    }

    fn view(&self) -> Element<Self::Message> {
        "Hello, world!".into()
    }
}

What is the expected behavior?

I'm expecting not to have my system stutter when I move my mouse over the window border. I also expect the app not to be mistaken for a game.

Version

crates.io release

Operating System

Windows

Do you have any log output?

No response

@tigerros tigerros added the bug Something isn't working label Feb 19, 2024
@helloimalemur
Copy link

Since "ms-gamingoverlay" is related to the Microsoft Xbox Game Bar, is this issue still present if you disable the xbox game bar?

@tigerros
Copy link
Author

Since "ms-gamingoverlay" is related to the Microsoft Xbox Game Bar, is this issue still present if you disable the xbox game bar?

Yes.

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

No branches or pull requests

2 participants