Re: Gnome Games 2.22.1

On Mon, Apr 7, 2008 at 1:01 PM, Jason D. Clinton <me jasonclinton com> wrote:
>  Here is the profiling output for completeness:
>  ~$ opreport --symbols -x testing/bin/gnometris
>  CPU: Core 2, speed 2167 MHz (estimated)
>  Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a
>  unit mask of 0x00 (Unhalted core cycles) count 100000
>  samples  %        symbol name
>  251      46.3956  TangoBlock::drawCell(_cairo*, int, int)
>  224      41.4048  TangoBlock::drawRoundedRectangle(_cairo*, double,
>  double, double, double, double)

I spoke with Carl Worth (of cairo fame) at length and he offered an
alternative: we could implement an intelligent region selector to call
Render::render with. The playing field would get updated in only those
locations which have changed. For block moving, this would be the join
of the old and new location on the playing field. For deleting a line,
the entire field would be re-rendered. This would make the game
completely playable again.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]