Commit Graph

37 Commits

Author SHA1 Message Date
Adam Sawicki
ac3c67fd5d Added parameters: --DumpStatsAfterLine, --DumpDetailedStatsAfterLine, to dump VMA stats to JSON file.
Set --MemStats default to 0.
2018-08-21 16:18:42 +02:00
Adam Sawicki
a2d6395ec4 VmaReplay: Added parameter --MemStats and memory statistics. 2018-08-21 15:05:21 +02:00
Adam Sawicki
1dcc72d7dd VmaReplay: Added parameter --VK_LAYER_LUNARG_standard_validation to enable/disable Vulkan validation layers. 2018-08-21 14:33:12 +02:00
Adam Sawicki
33c1e8ddef VmaReplay: added command line option --VK_KHR_dedicated_allocation. 2018-08-21 14:26:37 +02:00
Adam Sawicki
f17013e699 Added constant CLEANUP_LEAKED_OBJECTS. 2018-08-21 14:12:38 +02:00
Adam Sawicki
821e36705f VmaReplay: Added parameter --UserData which allows to disable setting pUserData while playing. 2018-08-21 14:10:16 +02:00
Adam Sawicki
7c1868ba32 VmaReplay: Added parameter --PhysicalDevice for choice of Vulkan physical device. 2018-08-21 14:01:04 +02:00
Adam Sawicki
eaa10d11fa Added function InitVulkanFeatures - better code for enabling Vulkan device features. 2018-08-21 13:53:46 +02:00
Adam Sawicki
4b360aa9a8 VmaReplay: Added -i parameter for repeating playback a number of times (iterations). 2018-08-21 13:31:04 +02:00
Adam Sawicki
069dc11452 VmaReplay: added --Lines command line argument to limit playback to only range of file lines.
Created template class RangeSequence. Moved struct StrRange, class LineSplit, class CsvSplit and related functions to Common.*.
2018-08-21 13:19:27 +02:00
Adam Sawicki
2556b377f7 Record and replay: Added support for function vmaMakePoolAllocationsLost. 2018-08-21 12:04:19 +02:00
Adam Sawicki
5de71e1d28 VmaReplay: Added statistics for number of calls to VMA functions. 2018-08-21 11:54:49 +02:00
Adam Sawicki
80cb2365c5 Added recording and replaying of calls to functions: vmaTouchAllocation, vmaGetAllocationInfo. VmaReplay: fixed handling of null allocation. 2018-08-21 10:59:53 +02:00
Adam Sawicki
dd715fbf9f Fixed support for pUserData in object creation functions, as well as vmaSetAllocationUserData, whether it's null, custom pointer, or character string. 2018-08-20 17:12:24 +02:00
Adam Sawicki
c49eb6282f Deleted calculation of number of vmaCreateAllocator calls, as there is always at most one. 2018-08-20 16:36:07 +02:00
Adam Sawicki
5c49bebe10 Added support for recording and replaying object creation also when it originally failed. 2018-08-20 16:10:11 +02:00
Adam Sawicki
daec26e5ea Minor fixes. VkResult is printed as signed int. 2018-08-20 14:03:46 +02:00
Adam Sawicki
5557b0ed63 Added support for vmaMapMemory, vmaUnmapMemory, vmaFlushAllocation, vmaInvalidateAllocation. 2018-08-20 13:54:54 +02:00
Adam Sawicki
29785d1169 VmaReplay.cpp, Player class: Small refactoring. 2018-08-20 13:42:13 +02:00
Adam Sawicki
404d12e18e Format version 1,2. Added support for vmaAllocateMemory, vmaAllocateMemoryForBuffer, vmaAllocateMemoryForImage, vmaCreateLostAllocation. 2018-08-20 13:33:34 +02:00
Adam Sawicki
87c8189002 Foo 2018-08-20 10:52:54 +02:00
Adam Sawicki
ab8550340c Added more detailed statistics about created buffers and images based on human-friendly classification (see http://asawicki.info/news_1682_human-friendly_classification_of_vulkan_resources.html) 2018-08-13 15:15:36 +02:00
Adam Sawicki
385b716276 Added statistics for number of VmaAllocator nad VmaPool objects. 2018-08-13 14:06:17 +02:00
Adam Sawicki
5765b8ac83 Added statistics about thread usage. 2018-08-13 13:51:33 +02:00
Adam Sawicki
03764c6ea0 Statistics: added printing of original recording time. 2018-08-13 13:38:46 +02:00
Adam Sawicki
1016cc682c Added function SecondsToFriendlyStr. Printing playback duration. 2018-08-13 13:30:04 +02:00
Adam Sawicki
652ac27547 Added CmdLineParser, proper parsing of command line parameters, and -v parameter for verbosity. 2018-08-13 13:13:13 +02:00
Adam Sawicki
db1f73fee4 Improved handling of destruction calls with null handle, in vk_mem_alloc as well as VmaReplay. 2018-08-13 12:22:37 +02:00
Adam Sawicki
5b48b5efcf Code formatting 2018-08-13 12:15:50 +02:00
Adam Sawicki
f188a152de Minor fixes. 2018-08-07 17:58:46 +02:00
Adam Sawicki
deeb817d7a Minor fixes. Added basic statistics. 2018-08-07 17:30:29 +02:00
Adam Sawicki
71f3d067c5 Better tracking of allocations. 2018-08-07 17:09:51 +02:00
Adam Sawicki
4d63e9d886 Improved error handling. 2018-08-07 16:52:32 +02:00
Adam Sawicki
ec5fecf51a Implemented playback of current format. 2018-08-07 16:20:34 +02:00
Adam Sawicki
9d7d848658 VmaReplay: Initialized Vulkan. 2018-08-07 14:13:06 +02:00
Adam Sawicki
0b9bcf0340 Added struct StrRange for convenience. 2018-08-07 13:50:50 +02:00
Adam Sawicki
6d2e2e0cac Created project VmaReplay, started coding it. 2018-08-07 13:44:20 +02:00