iced
iced copied to clipboard
Stuttering when I hover over the window border
Is there an existing issue for this?
- [X] I have searched the existing issues.
Is this issue related to iced?
- [X] 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
Since "ms-gamingoverlay" is related to the Microsoft Xbox Game Bar, is this issue still present if you disable the xbox game bar?
Since "ms-gamingoverlay" is related to the Microsoft Xbox Game Bar, is this issue still present if you disable the xbox game bar?
Yes.