gnome-games r8704 - trunk/gnometris
- From: jclinton svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8704 - trunk/gnometris
- Date: Wed, 11 Feb 2009 04:42:30 +0000 (UTC)
Author: jclinton
Date: Wed Feb 11 04:42:30 2009
New Revision: 8704
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8704&view=rev
Log:
Reduce the number of callbacks at explode even further to increase performance.
Modified:
trunk/gnometris/blockops.cpp
Modified: trunk/gnometris/blockops.cpp
==============================================================================
--- trunk/gnometris/blockops.cpp (original)
+++ trunk/gnometris/blockops.cpp Wed Feb 11 04:42:30 2009
@@ -42,6 +42,7 @@
g_list_free (destroy_actors);
destroy_actors = NULL;
+ //FIXME jclinton maybe this should be part of a ClutterScore?
clutter_actor_set_position (CLUTTER_ACTOR(f->playingField),
f->center_anchor_x, f->center_anchor_y + f->cell_height * f->quake_ratio);
clutter_effect_move (f->effect_earthquake, f->playingField,
@@ -74,9 +75,11 @@
if (!fall_alpha)
fall_alpha = clutter_alpha_new_full (fall_tml, CLUTTER_ALPHA_RAMP_INC,
NULL, NULL);
- if (!explode_tmpl)
+ if (!explode_tmpl) {
explode_tmpl = clutter_effect_template_new (fall_tml,
CLUTTER_ALPHA_SINE_INC);
+ clutter_effect_template_set_timeline_clone (explode_tmpl, FALSE);
+ }
}
Block::~Block ()
@@ -108,7 +111,7 @@
b.color = 0;
if (actor) {
//this shouldn't happen
- destroy_actors = g_list_append (destroy_actors, actor);
+ //destroy_actors = g_list_append (destroy_actors, actor);
}
if (b.actor) {
const ClutterKnot knot_line[] = {{b.x, b.y}, {x, y}};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]