Yalir / sfeMovie

sfeMovie is a simple C++ library that lets you play movies in SFML based applications. It relies on FFmpeg to read medias and remains consistent with SFML's naming conventions.
http://sfemovie.yalir.org/
GNU Lesser General Public License v2.1
114 stars 37 forks source link

Huge texture update queue #103

Closed SDraw closed 3 years ago

SDraw commented 7 years ago

If video stream is not updated every frame or process is resumed after suspension, OpenGL command queue will be filled with huge amount of texture updating commands. Situation is common if you use debugger (in my case, VS debugger and gDEBugger). Maybe it is how it should be, but this situation is not good for my project. http://i.imgur.com/xEiNz0R.png

Ceylo commented 7 years ago

Hello SDraw,

I understand what you mean but if you want this to change you'll need to do the fix as I'm not maintaining sfeMovie anymore.

Also, theoretically the queue should not be this big: when sfeMovie detects that the video stream is late compared to the main clock, it skips texture uploads and does only video frame decoding. Then when it has caught up it starts updating textures again.