Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsx: add boost mode shortcut #11357

Merged
merged 1 commit into from Feb 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion rpcs3/Emu/RSX/RSXThread.cpp
Expand Up @@ -32,6 +32,7 @@ class GSRender;
#define CMD_DEBUG 0

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_capture_data frame_capture;

Expand Down Expand Up @@ -3071,7 +3072,7 @@ namespace rsx
}

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::_59_94: limit = 59.94; break;
Expand Down
1 change: 1 addition & 0 deletions rpcs3/Emu/RSX/RSXThread.h
Expand Up @@ -28,6 +28,7 @@
#include "Emu/system_config.h"

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_capture_data frame_capture;

Expand Down
1 change: 1 addition & 0 deletions rpcs3/Input/keyboard_pad_handler.cpp
Expand Up @@ -299,6 +299,7 @@ void keyboard_pad_handler::processKeyEvent(QKeyEvent* event, bool pressed)
case Qt::Key_S:
case Qt::Key_R:
case Qt::Key_E:
case Qt::Key_0:
if (event->modifiers() != Qt::ControlModifier)
handle_key();
break;
Expand Down
9 changes: 9 additions & 0 deletions rpcs3/rpcs3qt/gs_frame.cpp
Expand Up @@ -52,6 +52,7 @@ LOG_CHANNEL(mark_log, "MARK");
LOG_CHANNEL(gui_log, "GUI");

extern atomic_t<bool> g_user_asked_for_frame_capture;
extern atomic_t<bool> g_disable_frame_limit;

constexpr auto qstr = QString::fromStdString;

Expand Down Expand Up @@ -269,6 +270,14 @@ void gs_frame::keyPressEvent(QKeyEvent *keyEvent)
return;
}
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:
screenshot_toggle = true;
break;
Expand Down