mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-20 08:17:54 +00:00
Remove memory allocations in some hot paths
This commit is contained in:
parent
72a469b967
commit
c7430e51e3
84 changed files with 501 additions and 458 deletions
|
@ -316,6 +316,7 @@ NvidiaArchitecture GetNvidiaArchitecture(vk::PhysicalDevice physical,
|
|||
std::vector<const char*> ExtensionListForVulkan(
|
||||
const std::set<std::string, std::less<>>& extensions) {
|
||||
std::vector<const char*> output;
|
||||
output.reserve(extensions.size());
|
||||
for (const auto& extension : extensions) {
|
||||
output.push_back(extension.c_str());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue