Files
dav1d/examples
Niklas Haas eab4ef6a5e dav1dplay: Only repaint the window when necessary
The current playback loop triggers a repaint on any single event,
including spammy events such as SDL_MOUSEMOTION.

Fix this by only repainting on SDL_WINDOWEVENT_EXPOSED, which is defined
as the event sent when the window was damaged and needs to be repainted,
as well as on new frames.

Fixes https://code.videolan.org/videolan/dav1d/-/issues/356
2021-02-06 10:50:52 +01:00
..