Skip to content

Commit

Permalink
hotfix: Reduce requested videodec memory block sizes.
Browse files Browse the repository at this point in the history
This really needs a more accurate implementation, but for the stub lowering the value helps games that run out of memory space if it is too large.
  • Loading branch information
squidbus committed Jan 28, 2025
1 parent d2127b3 commit 8379922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/libraries/videodec/videodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Libraries::Videodec {

static constexpr u64 kMinimumMemorySize = 32_MB; ///> Fake minimum memory size for querying
static constexpr u64 kMinimumMemorySize = 8_MB; ///> Fake minimum memory size for querying

int PS4_SYSV_ABI sceVideodecCreateDecoder(const OrbisVideodecConfigInfo* pCfgInfoIn,
const OrbisVideodecResourceInfo* pRsrcInfoIn,
Expand Down
2 changes: 1 addition & 1 deletion src/core/libraries/videodec/videodec2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Libraries::Vdec2 {

static constexpr u64 kMinimumMemorySize = 32_MB; ///> Fake minimum memory size for querying
static constexpr u64 kMinimumMemorySize = 8_MB; ///> Fake minimum memory size for querying

s32 PS4_SYSV_ABI
sceVideodec2QueryComputeMemoryInfo(OrbisVideodec2ComputeMemoryInfo* computeMemInfo) {
Expand Down

0 comments on commit 8379922

Please sign in to comment.