use powers of 2 for allocation sizes
parent
42d62d423a
commit
9d04bca2e2
|
@ -1,4 +1,4 @@
|
||||||
/* Refresh - XNA-inspired 3D Graphics Library with modern capabilities
|
/* Refresh - XNA-inspired 3D Graphics Library with modern capabilities
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 Evan Hemsley
|
* Copyright (c) 2020 Evan Hemsley
|
||||||
*
|
*
|
||||||
|
@ -74,11 +74,11 @@ typedef struct VulkanExtensions
|
||||||
|
|
||||||
/* Defines */
|
/* Defines */
|
||||||
|
|
||||||
#define STARTING_ALLOCATION_SIZE 64000000 /* 64MB */
|
#define STARTING_ALLOCATION_SIZE 67108864 /* 64MiB */
|
||||||
#define MAX_ALLOCATION_SIZE 256000000 /* 256MB */
|
#define MAX_ALLOCATION_SIZE 268435456 /* 256MiB */
|
||||||
#define ALLOCATION_INCREMENT 16000000 /* 16MB */
|
#define ALLOCATION_INCREMENT 16777216 /* 16MiB */
|
||||||
#define UBO_BUFFER_SIZE 16777216 /* 16MB */
|
#define UBO_BUFFER_SIZE 16777216 /* 16MiB */
|
||||||
#define MAX_UBO_SECTION_SIZE 4096 /* 4KB */
|
#define MAX_UBO_SECTION_SIZE 4096 /* 4KiB */
|
||||||
#define DESCRIPTOR_POOL_STARTING_SIZE 128
|
#define DESCRIPTOR_POOL_STARTING_SIZE 128
|
||||||
#define MAX_FRAMES_IN_FLIGHT 3
|
#define MAX_FRAMES_IN_FLIGHT 3
|
||||||
#define WINDOW_DATA "Refresh_VulkanWindowData"
|
#define WINDOW_DATA "Refresh_VulkanWindowData"
|
||||||
|
|
Loading…
Reference in New Issue