Skip to content

Commit

Permalink
ps5 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
turanszkij committed Oct 2, 2024
1 parent b794b83 commit b2835b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions WickedEngine/wiHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,10 @@ namespace wi::helper
mem.process_physical = l * PAGE_SIZE;
// there doesn't seem to be an easy way to determine
// swapped out memory
#elif defined(PLATFORM_PS5)
wi::graphics::GraphicsDevice::MemoryUsage gpumem = wi::graphics::GetDevice()->GetMemoryUsage();
mem.process_physical = mem.total_physical = gpumem.budget;
mem.process_virtual = mem.total_virtual = gpumem.usage;
#endif // defined(_WIN32)
return mem;
}
Expand Down
2 changes: 1 addition & 1 deletion WickedEngine/wiJobSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ namespace wi::jobsystem

#undef handle_error_en
#elif defined(PLATFORM_PS5)
wi::jobsystem::ps5::SetupWorker(worker, threadID);
wi::jobsystem::ps5::SetupWorker(worker, threadID, core, priority);
#endif // _WIN32
}
}
Expand Down

0 comments on commit b2835b4

Please sign in to comment.