Toggling a every 10 frames. Not super happy about having to put code in renderer_opengl...

This commit is contained in:
danzel
2017-08-11 21:54:39 +12:00
parent 1eb6af61fd
commit cd10c543c3
6 changed files with 40 additions and 4 deletions

View File

@@ -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)

View File

@@ -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();
}