diff --git a/benchmarks/LionBenchmark/LionBenchmark.h b/benchmarks/LionBenchmark/LionBenchmark.h index fdaf7172b..509e1f98d 100644 --- a/benchmarks/LionBenchmark/LionBenchmark.h +++ b/benchmarks/LionBenchmark/LionBenchmark.h @@ -17,5 +17,6 @@ void ClippingExample(Painter& sw); void PolyPolygon(Painter& sw); void TextOnPath(Painter& sw); void Dash(Painter& sw); +void SomeRocks(Painter& sw); #endif diff --git a/benchmarks/LionBenchmark/LionBenchmark.upp b/benchmarks/LionBenchmark/LionBenchmark.upp index 1a1cee5ba..2eaa20c42 100644 --- a/benchmarks/LionBenchmark/LionBenchmark.upp +++ b/benchmarks/LionBenchmark/LionBenchmark.upp @@ -11,6 +11,7 @@ file Clipping.cpp, PolyPolygon.cpp, TextOnPath.cpp, + SomeRocks.cpp, main.cpp, info.txt; diff --git a/benchmarks/LionBenchmark/SomeRocks.cpp b/benchmarks/LionBenchmark/SomeRocks.cpp new file mode 100644 index 000000000..76174d4a1 --- /dev/null +++ b/benchmarks/LionBenchmark/SomeRocks.cpp @@ -0,0 +1,13 @@ +#include "LionBenchmark.h" + +void SomeRocks(Painter& sw) +{ + static Painting rocks; + + ONCELOCK { + rocks.Serialize(FileIn(GetDataFile("SomeRocks.painting"))); + } + + sw.EvenOdd(); + sw.Paint(rocks); +} \ No newline at end of file diff --git a/benchmarks/LionBenchmark/SomeRocks.painting b/benchmarks/LionBenchmark/SomeRocks.painting new file mode 100644 index 000000000..c8492dbdf Binary files /dev/null and b/benchmarks/LionBenchmark/SomeRocks.painting differ diff --git a/benchmarks/LionBenchmark/TextOnPath.cpp b/benchmarks/LionBenchmark/TextOnPath.cpp index 61d4ed405..843dc0c23 100644 --- a/benchmarks/LionBenchmark/TextOnPath.cpp +++ b/benchmarks/LionBenchmark/TextOnPath.cpp @@ -19,3 +19,4 @@ void TextOnPath(Painter& sw) pos += w; } } + diff --git a/benchmarks/LionBenchmark/main.cpp b/benchmarks/LionBenchmark/main.cpp index 3dfa2b215..e8b0a28c0 100644 --- a/benchmarks/LionBenchmark/main.cpp +++ b/benchmarks/LionBenchmark/main.cpp @@ -15,8 +15,9 @@ void Task(Painter& sw) // Demo(sw); // ClippingExample(sw); // PolyPolygon(sw); - TextOnPath(sw); +// TextOnPath(sw); // Dash(sw); + SomeRocks(sw); sw.End(); }