mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
.benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@12500 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e74b39fb51
commit
fd6a6d3fda
2 changed files with 3 additions and 5 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
void Demo(Painter& sw)
|
||||
{
|
||||
// PaintLion(sw);
|
||||
PaintLion(sw);
|
||||
String txt = "U++ Painter";
|
||||
Font fnt = Roman(180).Bold();
|
||||
Size tsz = GetTextSize(txt, fnt);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ void Task(Painter& sw)
|
|||
{
|
||||
RTIMING("Total");
|
||||
sw.Begin();
|
||||
// sw.Scale(2);
|
||||
// sw.Scale(1.2);
|
||||
// sw.Opacity(0.3);
|
||||
// sw.Translate(20, 0);
|
||||
// sw.Rotate(0.1);
|
||||
|
|
@ -33,7 +33,7 @@ struct MyApp : public TopWindow {
|
|||
virtual void Paint(Draw& w) {
|
||||
w.DrawRect(GetSize(), White());
|
||||
|
||||
for(int pass = 1; pass < 2; pass++) {
|
||||
for(int pass = 0; pass < 1; pass++) {
|
||||
ImageBuffer ib(1200, 800);
|
||||
{
|
||||
BufferPainter sw(ib);
|
||||
|
|
@ -83,8 +83,6 @@ GUI_APP_MAIN
|
|||
ImageBuffer ib(1200, 1200);
|
||||
BufferPainter sw(ib);
|
||||
sw.Co();
|
||||
// for(int i = 0; i < 10; i++)
|
||||
PaintLion(sw);
|
||||
for(int pass = 0; pass < 2; pass++) {
|
||||
int time0 = msecs();
|
||||
int n = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue