Commit Graph

20 Commits

Author SHA1 Message Date
Adam Sawicki
0a3fb6ca60 Tests: benchmark of linear allocator now compares to various allocation strategies. 2018-08-27 14:40:27 +02:00
Adam Sawicki
33d2ce744b Added writing results of linear allocator benchmark to file "LinearAllocator.csv". 2018-08-27 13:59:13 +02:00
Adam Sawicki
740b08f6eb Testing environment: Improved formatting of CSV faile with results of main benchmark. 2018-08-27 13:42:07 +02:00
Adam Sawicki
0667e33bdd Added allocation strategy to main benchmark. 2018-08-24 17:26:44 +02:00
Adam Sawicki
70a683e53f Added support for multiple Vulkan memory blocks in custom pools with VMA_POOL_CREATE_LINEAR_ALGORITHM_BIT. Works with free-at-once and stack, doesn't work with double stack or ring buffer.
Added new structure members VmaPoolStats::blockCount.
2018-08-24 15:36:32 +02:00
Adam Sawicki
0a60713b07 Added benchmark for linear allocator. 2018-08-24 11:18:41 +02:00
Adam Sawicki
cba11e8bfb Deleted temporary code. 2018-08-23 13:21:15 +02:00
Adam Sawicki
f799c4f146 Introduced a rule that custom pool with linear algorithm must have maxBlockCount = 1 (or 0 for default). 2018-08-23 10:40:30 +02:00
Adam Sawicki
0ebdf0c63e Implemented vmaMakePoolAllocationsLost for pools with linear allocator. 2018-08-22 17:02:44 +02:00
Adam Sawicki
8cfe05fad9 Added support for lost allocations in ring buffer.
Fixed some more bugs.
2018-08-22 16:48:17 +02:00
Adam Sawicki
fd11d759dd Added ManuallyTestLinearAllocator which allows me to manually inspect VmaStats, VmaPoolStats and stats string of custom pool. Fixed bug in VmaBlockMetadata_Linear::PrintDetailedMap. 2018-08-22 15:02:10 +02:00
Adam Sawicki
680b2251fa Implemented double stack. Written tests for it. 2018-08-22 14:47:32 +02:00
Adam Sawicki
ee08277571 Implemented ring buffer. 2018-06-20 17:45:49 +02:00
Adam Sawicki
0876c0d493 Started coding linear allocator. 2018-06-20 15:18:11 +02:00
Adam Sawicki
e44c62684d Added debug macro VMA_DEBUG_INITIALIZE_ALLOCATIONS to initialize contents of allocations with a bit pattern. Documented it. Added test for it.
Fixed some indentation.
2018-06-15 14:30:39 +02:00
Adam Sawicki
212a4a6567 Added new feature: corruption detection. Added debug macro VMA_DEBUG_DETECT_CORRUPTION, functions vmaCheckCorruption, vmaCheckPoolCorruption 2018-06-14 15:51:47 +02:00
Adam Sawicki
73b1665ea4 Changed behavior of VMA_DEBUG_MARGIN macro - it now adds margin also before first and after last allocation in a block. Improved validation of VMA_DEBUG_MARGIN. Added test for it - function TestDebugMargin(). 2018-06-11 16:39:25 +02:00
Adam Sawicki
d292417cdb Minor improvement in VmaBlockVector::Allocate. TestPool_SameSize: Added test for it. 2018-06-11 12:48:46 +02:00
Adam Sawicki
b8333fb925 Publishing testing environment. Tests are available under [T] key. 2018-03-13 16:15:53 +01:00
Adam Sawicki
f1a793cadd Added source files to project: Common.*, Tests.*, VmaUsage.*. 2018-03-13 15:42:22 +01:00