Skip to content

Commit

Permalink
Allow more memory in gapir if we are on desktop.
Browse files Browse the repository at this point in the history
  • Loading branch information
AWoloszyn committed Aug 1, 2018
1 parent 36beb54 commit b364548
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions cmd/gapir/cc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ using namespace gapir;

namespace {

std::vector<uint32_t> memorySizes{
2 * 1024 * 1024 * 1024U, // 2GB
1 * 1024 * 1024 * 1024U, // 1GB
512 * 1024 * 1024U, // 512MB
256 * 1024 * 1024U, // 256MB
128 * 1024 * 1024U, // 128MB
std::vector<uint32_t> memorySizes {
// If we are on desktop, we can try more memory
#if TARGET_OS != GAPID_OS_ANDROID
3 * 1024 * 1024 * 1024U, // 3GB
#endif
2 * 1024 * 1024 * 1024U, // 2GB
1 * 1024 * 1024 * 1024U, // 1GB
512 * 1024 * 1024U, // 512MB
256 * 1024 * 1024U, // 256MB
128 * 1024 * 1024U, // 128MB
};

// createResourceProvider constructs and returns a ResourceInMemoryCache.
Expand Down

0 comments on commit b364548

Please sign in to comment.