Fix performance issues on apple

This commit is contained in:
2021-02-13 19:48:25 +01:00
parent 97cb8d1ac9
commit 8f1c7e4bd4

View File

@@ -45,7 +45,11 @@ namespace openVulkanoCpp
vk::Rect2D fullscreenScissor; vk::Rect2D fullscreenScissor;
bool useVsync = false; bool useVsync = false;
#ifdef __APPLE__
uint32_t preferredImageCount = 3; //TODO add option
#else
uint32_t preferredImageCount = 2; //TODO add option uint32_t preferredImageCount = 2; //TODO add option
#endif
vk::Extent2D size{0,0}; vk::Extent2D size{0,0};
public: public: