benchmark inicial per a determinar modes de baix rendiment
ajustats escenaris maxims i minims per als diferents modes automatics
This commit is contained in:
@@ -276,6 +276,25 @@ void UIManager::renderDebugHUD(const Engine* engine,
|
||||
text_renderer_debug_->printAbsolute(margin, left_y, balls_text.c_str(), {128, 255, 128, 255}); // Verde claro
|
||||
left_y += line_height;
|
||||
|
||||
// Máximo de pelotas en modos automáticos (resultado del benchmark)
|
||||
int max_auto_idx = engine->getMaxAutoScenario();
|
||||
int max_auto_balls = BALL_COUNT_SCENARIOS[max_auto_idx];
|
||||
std::string max_auto_text;
|
||||
if (max_auto_balls >= 1000) {
|
||||
std::string count_str = std::to_string(max_auto_balls);
|
||||
std::string formatted;
|
||||
int digits = count_str.length();
|
||||
for (int i = 0; i < digits; i++) {
|
||||
if (i > 0 && (digits - i) % 3 == 0) formatted += ',';
|
||||
formatted += count_str[i];
|
||||
}
|
||||
max_auto_text = "Auto max: " + formatted;
|
||||
} else {
|
||||
max_auto_text = "Auto max: " + std::to_string(max_auto_balls);
|
||||
}
|
||||
text_renderer_debug_->printAbsolute(margin, left_y, max_auto_text.c_str(), {128, 255, 128, 255}); // Verde claro
|
||||
left_y += line_height;
|
||||
|
||||
// V-Sync
|
||||
text_renderer_debug_->printAbsolute(margin, left_y, vsync_text_.c_str(), {0, 255, 255, 255}); // Cian
|
||||
left_y += line_height;
|
||||
|
||||
Reference in New Issue
Block a user