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:
@@ -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;
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user