Browse Source

Isolate interesting benchmark [no-merge]

Michael Ragazzon 4 months ago
parent
commit
46c30cd4b1
1 changed files with 12 additions and 12 deletions
  1. 12 12
      Tests/Source/Benchmarks/FontTextureAtlas.cpp

+ 12 - 12
Tests/Source/Benchmarks/FontTextureAtlas.cpp

@@ -39,19 +39,19 @@ TEST_CASE("font_texture_atlas")
 
 	nanobench::Bench bench;
 	bool incremental = false;
-	SUBCASE("all at once")
-	{
-		incremental = false;
-		bench.title("Font texture atlas (all at once)");
-	}
-	SUBCASE("incremental")
-	{
-		incremental = true;
-		bench.title("Font texture atlas (incremental)");
-	}
+	// SUBCASE("all at once")
+	//{
+	//	incremental = false;
+	//	bench.title("Font texture atlas (all at once)");
+	// }
+	// SUBCASE("incremental")
+	//{
+	incremental = true;
+	bench.title("Font texture atlas (incremental)");
+	//}
 	bench.relative(true);
 
-	for (const int font_size : {12, 16, 24, 48, 96})
+	for (const int font_size : {12})
 	{
 		const String rml_document = CreateString(rml_font_texture_atlas_document.c_str(), font_size);
 
@@ -63,7 +63,7 @@ TEST_CASE("font_texture_atlas")
 		context->Update();
 		context->Render();
 
-		for (const int glyph_count : {10, 100, 1000})
+		for (const int glyph_count : {10})
 		{
 			const String benchmark_name = CreateString("Size %d with %d glyphs", font_size, glyph_count);