mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 21:32:50 +00:00
rsx: add boost mode shortcut
This commit is contained in:
parent
7801e8368b
commit
93e7988df7
@ -32,6 +32,7 @@ class GSRender;
|
|||||||
#define CMD_DEBUG 0
|
#define CMD_DEBUG 0
|
||||||
|
|
||||||
atomic_t<bool> g_user_asked_for_frame_capture = false;
|
atomic_t<bool> g_user_asked_for_frame_capture = false;
|
||||||
|
atomic_t<bool> g_disable_frame_limit = false;
|
||||||
rsx::frame_trace_data frame_debug;
|
rsx::frame_trace_data frame_debug;
|
||||||
rsx::frame_capture_data frame_capture;
|
rsx::frame_capture_data frame_capture;
|
||||||
|
|
||||||
@ -3071,7 +3072,7 @@ namespace rsx
|
|||||||
}
|
}
|
||||||
|
|
||||||
double limit = 0.;
|
double limit = 0.;
|
||||||
switch (g_cfg.video.frame_limit)
|
switch (g_disable_frame_limit ? frame_limit_type::none : g_cfg.video.frame_limit)
|
||||||
{
|
{
|
||||||
case frame_limit_type::none: limit = 0.; break;
|
case frame_limit_type::none: limit = 0.; break;
|
||||||
case frame_limit_type::_59_94: limit = 59.94; break;
|
case frame_limit_type::_59_94: limit = 59.94; break;
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include "Emu/system_config.h"
|
#include "Emu/system_config.h"
|
||||||
|
|
||||||
extern atomic_t<bool> g_user_asked_for_frame_capture;
|
extern atomic_t<bool> g_user_asked_for_frame_capture;
|
||||||
|
extern atomic_t<bool> g_disable_frame_limit;
|
||||||
extern rsx::frame_trace_data frame_debug;
|
extern rsx::frame_trace_data frame_debug;
|
||||||
extern rsx::frame_capture_data frame_capture;
|
extern rsx::frame_capture_data frame_capture;
|
||||||
|
|
||||||
|
@ -299,6 +299,7 @@ void keyboard_pad_handler::processKeyEvent(QKeyEvent* event, bool pressed)
|
|||||||
case Qt::Key_S:
|
case Qt::Key_S:
|
||||||
case Qt::Key_R:
|
case Qt::Key_R:
|
||||||
case Qt::Key_E:
|
case Qt::Key_E:
|
||||||
|
case Qt::Key_0:
|
||||||
if (event->modifiers() != Qt::ControlModifier)
|
if (event->modifiers() != Qt::ControlModifier)
|
||||||
handle_key();
|
handle_key();
|
||||||
break;
|
break;
|
||||||
|
@ -52,6 +52,7 @@ LOG_CHANNEL(mark_log, "MARK");
|
|||||||
LOG_CHANNEL(gui_log, "GUI");
|
LOG_CHANNEL(gui_log, "GUI");
|
||||||
|
|
||||||
extern atomic_t<bool> g_user_asked_for_frame_capture;
|
extern atomic_t<bool> g_user_asked_for_frame_capture;
|
||||||
|
extern atomic_t<bool> g_disable_frame_limit;
|
||||||
|
|
||||||
constexpr auto qstr = QString::fromStdString;
|
constexpr auto qstr = QString::fromStdString;
|
||||||
|
|
||||||
@ -269,6 +270,14 @@ void gs_frame::keyPressEvent(QKeyEvent *keyEvent)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case Qt::Key_F10:
|
||||||
|
if (keyEvent->modifiers() == Qt::ControlModifier)
|
||||||
|
{
|
||||||
|
g_disable_frame_limit = !g_disable_frame_limit;
|
||||||
|
gui_log.warning("%s boost mode", g_disable_frame_limit.load() ? "Enabled" : "Disabled");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case Qt::Key_F12:
|
case Qt::Key_F12:
|
||||||
screenshot_toggle = true;
|
screenshot_toggle = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user