Skip to content

Commit

Permalink
Cherry pick PR #2412: [UWP] Reduce memory budget for output frame que…
Browse files Browse the repository at this point in the history
…ue (#2417)

Refer to the original PR: youtube/cobalt#2412

b/321318666

Reduce memory for output queue to increase available memory for the rest
system

Change-Id: I26cefad71435f798f52ab0bc9917d221b80509ee

Co-authored-by: victorpasoshnikov <[email protected]>
  • Loading branch information
1 parent 270936b commit 46bbf39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions starboard/shared/uwp/extended_resources_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ const SbTime kReleaseTimeout = kSbTimeSecond;
//
// To make playback more smooth it is better to increase the output queue size
// up to 30-50 frames, but it should not exceed memory budgetd.
// So, the value of 440 Mb looks as compromise.
const uint64_t kFrameBuffersPoolMemorySize = 440 * 1024 * 1024;
// Compromise value was found out experimentally.
// 400 Mb leaves enough memory for stable working of the rest system.
// Just in case to be more sure we reduce this value down to 380 Mb.
const uint64_t kFrameBuffersPoolMemorySize = 380 * 1024 * 1024;

bool IsExtendedResourceModeRequired() {
if (!::starboard::xb1::shared::CanAcquire()) {
Expand Down

0 comments on commit 46bbf39

Please sign in to comment.