负反馈模型测试成功

This commit is contained in:
2026-07-30 11:21:30 +08:00
parent 84c4082e82
commit a8b2d1202b
2 changed files with 6 additions and 12 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ static bool radio_show_performance_overlay() {
static void configure_radio_plot_perf(renderive::Plot* plot) {
if (!radio_mock_perf_mode())
return;
plot->set_render_check_fps(1000);
plot->set_render_schedule_mode(renderive::Plot_Render_Schedule_Mode::Chase_Latest);
plot->set_max_render_fps(1000);
plot->set_render_schedule_mode(renderive::Plot_Render_Schedule_Mode::Feedback);
if (radio_show_performance_overlay())
plot->set_use_performance_shower(true);
}
+4 -10
View File
@@ -4,20 +4,17 @@
#include <vector>
#include <atomic>
#include "../Global.h"
struct Tick{
struct Tick {
QString text;
QColor color;
double value = 0;
Tick(QString text, QColor color) : text(std::move(text)), color(std::move(color)){
QString that = (text[0] == '+' || text[0] == '-' || text[0] == '<' || text[0] == '>') ? text.mid(1) : text;
Tick(QString text, QColor color) : text(std::move(text)), color(std::move(color)) {
QString that = (this->text.startsWith('+') || this->text.startsWith('-') || this->text.startsWith('<') || this->text.startsWith('>')) ? this->text.mid(1) : this->text;
value = that.toDouble();
}
Tick(QString text, QColor color, double value) : text(std::move(text)), color(std::move(color)), value(value){
Tick(QString text, QColor color, double value) : text(std::move(text)), color(std::move(color)), value(value) {
}
};
class Progress_Bar : public QWidget {
public:
explicit Progress_Bar(const std::vector<Tick>& tick_list, QWidget *parent = nullptr);
@@ -35,6 +32,3 @@ protected:
std::vector<Tick> tick_list;
};
#endif