Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15,434 additions
and
4,940 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
eb9f752
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did it fix out-of-memory handling?
The commit has the following issues:
vk_mem_alloc.natvis
, need to add this.std::shared_mutex
. Fixing all deprecation warnings is another task.I can commit these changes if all mentioned things are acceptable.
eb9f752
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the missing file which I simply forgot to add before committing it worked out of the box for me with the existing Vulkan SDK I use. If there's anything needed I at least cannot detect it.
eb9f752
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the macOS version requirement is to be upped to 10.12 it should also ensure the removal of those macOS-specific timer code in favour of
clock_gettime
.eb9f752
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It really sucks that Apple uses the standard C++ library to force OS upgrades onto their users.
They did the same thing with std::filesystem.
That said, Windows only supports std::shared_mutex from Vista and up - but that is because the OS primitive does not exist in XP so there's no way to implement it there.
eb9f752
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This conversation doesn't answer my questions though. Does allocator update solve out-of-memory handling? If so, do we accept it taking into account additional changes to make it work?
Regarding
clock_gettime()
, did you measure its cost? Old implementation usingmach_absolute_time()
was replaced solely because of that.eb9f752
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I haven't tested it yet.
However, considering that the old version of this library was almost 1.5 years old there's likely other issues that got addressed. The new file is twice as large and does not make it easy to actually compare.