-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Is your issue REALLY a bug?
- My issue is indeed a bug!
- I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.
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 using FFmpeg to render video frames with the Image and Canvas components of the 0.14.0 version of the iced framework, I encountered a compatibility issue: the video frame in the application window would flicker significantly when the resolution of the video frame was adjusted to 854px × 480px or higher (the issue also persisted in actual tests with higher resolutions).
Notably, when the same technical solution was implemented based on the slint, dioxus, and egui frameworks respectively, such screen flickering issues did not occur. I have attempted various debugging solutions to resolve this problem, but none of them worked. Although I have not yet delved into the underlying implementation code of the relevant components in the iced framework, based on the analysis of the phenomenon, it is inferred that the root cause of this problem is most likely related to the memory management mechanism of the components.
Due to the tight schedule of the current project, I cannot devote more time to in-depth troubleshooting for the time being. Therefore, I am feeding back this problem to you here.
Thank you for your reading and attention.
What is the expected behavior?
I expect the iced framework to support the normal, smooth, and flicker-free playback of video frames, just like other GUI libraries such as slint, dioxus, and egui.
Version
crates.io release
Operating System
Windows