Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] Re: different iso drawing algorithms
Home

[Freeciv-Dev] Re: different iso drawing algorithms

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jason Short <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Cc: freeciv-dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: different iso drawing algorithms
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Sat, 14 Dec 2002 15:05:44 +0100

On Fri, Dec 13, 2002 at 05:47:42PM +0100, Raimar Falke wrote:
> call factor: 3.88
> pixel factor: 3.99
> time factor: 141.66 = (85/0.6)

New version attached which differentiate between pixmaps (off-screen)
and window (screen). Output is like this for my system:

non-iso:
2: mapview: 510 x 369 = 188k pixel
2: pixmap: 265 calls with 238k pixels total; time=0,598000ms; 397,993311 k 
pixel/ms
2: window: 1 calls with 198k pixels total; time=0,087000ms; 2275,862069 k 
pixel/ms
2: pixmap: 265 calls with 238k pixels total; time=0,605000ms; 393,388430 k 
pixel/ms
2: window: 1 calls with 198k pixels total; time=0,094000ms; 2106,382979 k 
pixel/ms
2: pixmap: 265 calls with 238k pixels total; time=0,597000ms; 398,659966 k 
pixel/ms
2: window: 1 calls with 198k pixels total; time=0,094000ms; 2106,382979 k 
pixel/ms
2: pixmap: 265 calls with 238k pixels total; time=0,675000ms; 352,592593 k 
pixel/ms
2: window: 1 calls with 198k pixels total; time=0,087000ms; 2275,862069 k 
pixel/ms
2: pixmap: 265 calls with 238k pixels total; time=0,596000ms; 399,328859 k 
pixel/ms
2: window: 1 calls with 198k pixels total; time=0,087000ms; 2275,862069 k 
pixel/ms

iso:
2: mapview: 510 x 405 = 206k pixel
2: pixmap: 1168 calls with 926k pixels total; time=3,248000ms; 285,098522 k 
pixel/ms
2: window: 1 calls with 924k pixels total; time=0,076000ms; 12157,894737 k 
pixel/ms
2: pixmap: 1168 calls with 926k pixels total; time=2,323000ms; 398,622471 k 
pixel/ms
2: window: 1 calls with 924k pixels total; time=0,076000ms; 12157,894737 k 
pixel/ms
2: pixmap: 1168 calls with 926k pixels total; time=2,315000ms; 400,000000 k 
pixel/ms
2: window: 1 calls with 924k pixels total; time=0,077000ms; 12000,000000 k 
pixel/ms
2: pixmap: 1168 calls with 926k pixels total; time=2,332000ms; 397,084048 k 
pixel/ms
2: window: 1 calls with 924k pixels total; time=0,076000ms; 12157,894737 k 
pixel/ms
2: pixmap: 1168 calls with 926k pixels total; time=2,379000ms; 389,239176 k 
pixel/ms
2: window: 1 calls with 924k pixels total; time=0,076000ms; 12157,894737 k 
pixel/ms
2: pixmap: 1168 calls with 926k pixels total; time=2,320000ms; 399,137931 k 
pixel/ms
2: window: 1 calls with 924k pixels total; time=0,077000ms; 12000,000000 k 
pixel/ms

Remarks: 
 - Why does the iso code draw enough pixels to fill the screen 4
 times? Interestingly the absolute copy time is lower for the iso
 case. So some kind of clipping is taking place.
 - The problem is not the backing store to screen copy.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Many of my assistants were fans of Tolkien, who wrote 'Lord of the Rings'
  and a number of other children's stories for adults.  The first character
  alphabet that was programmed for my plotter was Elvish rather than Latin."
    -- from SAIs "life as a computer for a quarter of a century"

Attachment: time_gdk2.diff.gz
Description: application/gunzip


[Prev in Thread] Current Thread [Next in Thread]