Skip to content

Commit

Permalink
Merge pull request #14828 from stuken/libretro_set_inflightframes
Browse files Browse the repository at this point in the history
Wire inflight frames config setting to render managers.
  • Loading branch information
hrydgard committed Sep 11, 2021
2 parents f535463 + 825a84a commit 4a5008b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libretro/LibretroGLCoreContext.cpp
Expand Up @@ -28,6 +28,9 @@ void LibretroGLCoreContext::CreateDrawContext() {
}
draw_ = Draw::T3DCreateGLContext();
renderManager_ = (GLRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
renderManager_->SetInflightFrames(g_Config.iInflightFrames);
SetGPUBackend(GPUBackend::OPENGL);
draw_->CreatePresets();
}

void LibretroGLCoreContext::DestroyDrawContext() {
Expand Down
3 changes: 3 additions & 0 deletions libretro/LibretroVulkanContext.cpp
Expand Up @@ -11,6 +11,7 @@

#include "libretro/LibretroVulkanContext.h"
#include "libretro/libretro_vulkan.h"
#include <GPU/Vulkan/VulkanRenderManager.h>

static VulkanContext *vk;

Expand Down Expand Up @@ -140,6 +141,8 @@ void LibretroVulkanContext::CreateDrawContext() {
}

draw_ = Draw::T3DCreateVulkanContext(vk, false);
((VulkanRenderManager*)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER))->SetInflightFrames(g_Config.iInflightFrames);
SetGPUBackend(GPUBackend::VULKAN);
}

void LibretroVulkanContext::Shutdown() {
Expand Down

0 comments on commit 4a5008b

Please sign in to comment.