Skip to content

Commit

Permalink
xbox: Optimise ram usage cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzee119 committed Jun 13, 2022
1 parent 48f1a5a commit 4abfaf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/xbox/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ void platform_init(int *w, int *h)
MemoryStatistics.Length = sizeof(MM_STATISTICS);
MmQueryStatistics(&MemoryStatistics);
uint32_t mem_size = (MemoryStatistics.TotalPhysicalPages * PAGE_SIZE);
lv_texture_cache_size = mem_size / 4;
jpg_cache_size = mem_size / 8;
lv_texture_cache_size = mem_size / 16;
jpg_cache_size = mem_size / 4;
}

// Xbox specific
Expand Down

0 comments on commit 4abfaf0

Please sign in to comment.