1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[dxvk] Minor memory management tweaks

This commit is contained in:
Philip Rebohle 2018-01-11 19:06:58 +01:00
parent 32078033c6
commit 30eb43a284
3 changed files with 2 additions and 5 deletions

View File

@ -21,8 +21,7 @@ namespace dxvk {
VkDescriptorSet DxvkDescriptorAlloc::alloc(VkDescriptorSetLayout layout) {
// VkDescriptorSet set = allocFrom(m_pools[m_poolId], layout);
VkDescriptorSet set = VK_NULL_HANDLE;
VkDescriptorSet set = allocFrom(m_pools[m_poolId], layout);
if (set == VK_NULL_HANDLE) {
if (++m_poolId >= m_pools.size())

View File

@ -33,7 +33,7 @@ namespace dxvk {
class DxvkDevice : public RcObject {
friend class DxvkSubmissionQueue;
constexpr static VkDeviceSize DefaultStagingBufferSize = 16 * 1024 * 1024;
constexpr static VkDeviceSize DefaultStagingBufferSize = 4 * 1024 * 1024;
public:
DxvkDevice(

View File

@ -59,14 +59,12 @@ namespace dxvk {
m_memory(memory),
m_mapPtr(mapPtr),
m_size (size) {
TRACE(this, heap, size);
// Mark the entire chunk as free
m_freeList.push_back(FreeSlice { 0, size });
}
DxvkMemoryChunk::~DxvkMemoryChunk() {
TRACE(this);
m_heap->freeDeviceMemory(m_memory);
}