Toggling a every 10 frames. Not super happy about having to put code in renderer_opengl...
This commit is contained in:
@@ -81,7 +81,7 @@ endif()
|
||||
create_directory_groups(${SRCS} ${HEADERS})
|
||||
|
||||
add_library(video_core STATIC ${SRCS} ${HEADERS})
|
||||
target_link_libraries(video_core PUBLIC common core)
|
||||
target_link_libraries(video_core PUBLIC common core scripted_input)
|
||||
target_link_libraries(video_core PRIVATE glad nihstro-headers)
|
||||
|
||||
if (ARCHITECTURE_x86_64)
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "core/memory.h"
|
||||
#include "core/settings.h"
|
||||
#include "core/tracer/recorder.h"
|
||||
#include "scripted_input/scripted_input.h"
|
||||
#include "video_core/debug_utils/debug_utils.h"
|
||||
#include "video_core/rasterizer_interface.h"
|
||||
#include "video_core/renderer_opengl/renderer_opengl.h"
|
||||
@@ -151,6 +152,10 @@ void RendererOpenGL::SwapBuffers() {
|
||||
prev_state.Apply();
|
||||
RefreshRasterizerSetting();
|
||||
|
||||
if (ScriptedInput::IsInUse()) {
|
||||
ScriptedInput::NotifyFrameFinished();
|
||||
}
|
||||
|
||||
if (Pica::g_debug_context && Pica::g_debug_context->recorder) {
|
||||
Pica::g_debug_context->recorder->FrameFinished();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user