* @brief Applies CLI dashboard FPS and point-count options if set. */
| 422 | * @brief Applies CLI dashboard FPS and point-count options if set. |
| 423 | */ |
| 424 | void CLI::applyVisualizationOptions() |
| 425 | { |
| 426 | if (m_parser.isSet(m_opts.fpsOpt)) { |
| 427 | bool ok; |
| 428 | auto fps = m_parser.value(m_opts.fpsOpt).toUInt(&ok); |
| 429 | if (ok) |
| 430 | Misc::TimerEvents::instance().setFPS(fps); |
| 431 | } |
| 432 | |
| 433 | if (m_parser.isSet(m_opts.pointsOpt)) { |
| 434 | bool ok; |
| 435 | auto points = m_parser.value(m_opts.pointsOpt).toUInt(&ok); |
| 436 | if (ok) |
| 437 | UI::Dashboard::instance().setPoints(points); |
| 438 | } |
| 439 | } |
| 440 | |
| 441 | /** |
| 442 | * @brief Dispatches CLI bus configuration to the matching driver setup helper. |