Skip to content

Commit

Permalink
Add more video buffering.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Oct 21, 2023
1 parent 49d5794 commit 7fb75fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video/ffmpeg_decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ bool VideoDecoder::Impl::init_video_decoder_post_device()
// It would be possible to add new video frames dynamically,
// but we don't want to end up in an unbounded memory usage situation, especially VRAM.

unsigned num_frames = std::max<unsigned>(unsigned(muglm::ceil(fps * 0.2)), 4);
unsigned num_frames = std::max<unsigned>(unsigned(muglm::ceil(fps * 0.2)), 8);

// Buffer a bit more in realtime mode.
// Allows us to absorb network issues better.
Expand Down

0 comments on commit 7fb75fd

Please sign in to comment.