cefsharp / cefsharp/CefSharp

WPF - Rendering not refreshed at maximum framerate.

Aperta
#2,275 18 commenti 0 reazioni 0 assegnatari Vedi su GitHub
wpf
Lingua principale
C#
Stelle
10.3k
Fork
2.9k
Merge medio
5g 22h
PR unite (30g)
4

Descrizione

I noticed a strange behavior in the WPF CefSharp browser. When watching a video (YouTube for example), the video is not totaly fluid. but if something else is hapenning in the application, like an animation, the video is completly fluid.
My theory is that the animation cause WPF do redraw at 60 FPS and it cause the CefSharp browser to redraw at this rate. When no animation is running, the default CefSharp redraw rate is smalller.

I tried differents values for the `CefCommandLineArgs --off-screen-frame-rate` ( 25, 30 , 60, 120 ) but the result is the same.

I am using The WPF nuget version 63.0.0 on WIndows 10.
I use the following command line
```
settings.CefCommandLineArgs.Add("enable-gpu", "1");
settings.CefCommandLineArgs.Add("enable-webgl", "1");
settings.CefCommandLineArgs.Add("enable-begin-frame-scheduling", "1");
settings.CefCommandLineArgs.Add("--off-screen-frame-rate", "60");
```
with gpu disabled, the result is the same.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo il comportamento della riproduzione video nel browser WPF CefSharp utilizzando i CefCommandLineArgs indicati, inclusi --off-screen-frame-rate e la pianificazione di begin-frame. Confronta la riproduzione con e senza un'altra animazione WPF in esecuzione; il lavoro è completato quando hai identificato perché il rendering rallenta quando è inattivo e hai confermato una riproduzione fluida senza dipendere da un'animazione non correlata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
desktop
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
32/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.