diff pytouhou/opengl/sprite.py @ 120:4300a832f033

Small refactoring and massive performance improvement
author Thibaut Girka <thib@sitedethib.com>
date Thu, 08 Sep 2011 12:46:05 +0200
parents 2a03940deea3
children 0313ca2c50e9
line wrap: on
line diff
--- a/pytouhou/opengl/sprite.py
+++ b/pytouhou/opengl/sprite.py
@@ -22,18 +22,6 @@ def get_sprite_rendering_data(sprite):
     if not sprite._changed:
         return sprite._rendering_data
 
-    if sprite.fade_interpolator:
-        sprite.fade_interpolator.update(sprite.frame)
-        sprite.alpha = int(sprite.fade_interpolator.values[0])
-
-    if sprite.scale_interpolator:
-        sprite.scale_interpolator.update(sprite.frame)
-        sprite.rescale = sprite.scale_interpolator.values
-
-    if sprite.offset_interpolator:
-        sprite.offset_interpolator.update(sprite.frame)
-        sprite.dest_offset = sprite.offset_interpolator.values
-
     vertmat = Matrix([[-.5,     .5,     .5,    -.5],
                       [-.5,    -.5,     .5,     .5],
                       [ .0,     .0,     .0,     .0],