Reduce max queued frames to avoid exhausting the decoder buffer pool
This commit is contained in:
parent
9e4337babf
commit
7717749b72
1 changed files with 5 additions and 2 deletions
|
|
@ -11,8 +11,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Limit the number of queued frames to prevent excessive memory consumption
|
// Limit the number of queued frames to prevent excessive memory consumption
|
||||||
// if the V-Sync source or renderer is blocked for a while.
|
// if the V-Sync source or renderer is blocked for a while. It's important
|
||||||
#define MAX_QUEUED_FRAMES 8
|
// that the sum of all queued frames between both pacing and rendering queues
|
||||||
|
// must not exceed the number buffer pool size to avoid running the decoder
|
||||||
|
// out of available decoding surfaces.
|
||||||
|
#define MAX_QUEUED_FRAMES 4
|
||||||
|
|
||||||
// We may be woken up slightly late so don't go all the way
|
// We may be woken up slightly late so don't go all the way
|
||||||
// up to the next V-sync since we may accidentally step into
|
// up to the next V-sync since we may accidentally step into
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue