Fix #139917: Vulkan: Increase number of render frames

The number of render frames influences how long discarded memory will be
kept. There are platforms that require 5 frames to work succesfully.

Pull Request: https://projects.blender.org/blender/blender/pulls/139934
This commit is contained in:
Jeroen Bakker
2025-06-06 16:02:47 +02:00
parent e0e5289138
commit 4a88c14d95
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ struct GHOST_Frame {
* Vulkan backend. Notably, VKThreadData::resource_pools_count must
* match this value.
*/
constexpr static uint32_t GHOST_FRAMES_IN_FLIGHT = 4;
constexpr static uint32_t GHOST_FRAMES_IN_FLIGHT = 5;
class GHOST_ContextVK : public GHOST_Context {
friend class GHOST_XrGraphicsBindingVulkan;

View File

@@ -102,7 +102,7 @@ class VKThreadData : public NonCopyable, NonMovable {
* in flight used by GHOST. Therefore, this constant *must* always
* match GHOST_ContextVK's GHOST_FRAMES_IN_FLIGHT.
*/
static constexpr uint32_t resource_pools_count = 4;
static constexpr uint32_t resource_pools_count = 5;
public:
/** Thread ID this instance belongs to. */