[UI] - remove some useless code

This commit is contained in:
Cancerous 2020-02-05 11:12:01 -05:00 committed by illusion98
parent a38dc43a73
commit c994b1d1e1
2 changed files with 0 additions and 23 deletions

View File

@ -26,8 +26,6 @@
#include "xenia/kernel/kernel_state.h"
#include "xenia/kernel/user_module.h"
DECLARE_bool(fps_limit);
namespace xe {
namespace gpu {
@ -831,16 +829,6 @@ bool CommandProcessor::ExecutePacketType3_XE_SWAP(RingBuffer* reader,
++counter_;
// crude FPS limiter until one of you does a better implementation
if(cvars::fps_limit) {
if (xe::Clock::QueryHostSystemTime() > swap_update_time_ns_ + 16666) {
swap_update_time_ns_ = xe::Clock::QueryHostSystemTime();
} else {
xe::threading::MaybeYield();
}
}
return true;
}

View File

@ -22,8 +22,6 @@
DEFINE_bool(fps_titlebar, true, "Show FPS in titlebar", "General");
DEFINE_bool(fps_limit, false, "try to limit 2d games from being too fast", "Video");
namespace xe {
namespace ui {
@ -182,15 +180,6 @@ void Window::OnPaint(UIEvent* e) {
++fps_frame_count_;
uint64_t now_ns = xe::Clock::QueryHostSystemTime();
// crude FPS limiter until one of you does a better implementation
if(cvars::fps_limit) {
if (now_ns > fps_update_time_ns_ + 16666) {
// do nothing
} else {
xe::threading::MaybeYield();
}
}
if (now_ns > fps_update_time_ns_ + 1000 * 10000) {
fps_ = static_cast<uint32_t>(
fps_frame_count_ /