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

App window lags when dragged around the screen on Windows 10 #3953

Open
Antonio225t opened this issue Feb 2, 2024 · 2 comments
Open

App window lags when dragged around the screen on Windows 10 #3953

Antonio225t opened this issue Feb 2, 2024 · 2 comments
Labels
native-windows Running on native Windows OS

Comments

@Antonio225t
Copy link

Antonio225t commented Feb 2, 2024

Hi, I'm using Windows 10 (I have 8GB of RAM and Intel i5) and the latest version of Rust, egui and eframe (I added them 5 minutes ago) and when I'm experiencing an issue that on I couldn't see on the video.

Basically, when I cargo run, the window appears after 20 seconds of loading (I don't know if the wait is normal whenever I make a change on the code), when I drag the window it lags like there is a delay in frames.
You can see what happens in the video, I opened notepad and as you can see when I drag the window, it is smooth. Why does this happen with the rust one??

2024-02-02.20-56-27.mp4

(In the video is hard to see, but the eframe window is not smooth as the notepad one. And since I'm coding in Rust it's... Well odd.)

@YgorSouza
Copy link
Contributor

I tend to add this to my egui projects:

[profile.dev]
opt-level = 1

[profile.test]
opt-level = 0

Because the unoptimized build can be a lot slower than the optimized one. Of course, this will also make the compilation time even longer (which is why I turn off optimization for the tests to save CI minutes), but that's just how it is with Rust. There are a lot of places where egui isn't as fast as it could be, but that's being worked on in the performance issues.

@Antonio225t
Copy link
Author

Antonio225t commented Mar 9, 2024

I downloaded the latest versions of egui and eframe and tried again building a hello world GUI application using theese two libraries (of course, with the same PC, didn't change any specs) and sadly the issue is still here...

I would like to thank the contributors that took their time to read my issue and tried to solve this. Really appriciated the effort ❤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
native-windows Running on native Windows OS
Projects
None yet
3 participants