?

Log in

No account? Create an account

Previous Entry | Next Entry

Gnometris Redux

Taking suggestions from the last post, I rewrote the keyboard-driven block movement code so that callbacks were reduced by a factor of 16. This allows for smoother animation and a continuous ligature of the blocks so that they are never more than 60 ms away from their final resting place. This makes the UI much more responsive to user input and should make hardcore players very pleased.

High quality H.264
Low quality OGV (grumble)
Flash video on Vimeo

I got rid of the spinning preview (yes, it's still off-center) and replaced it with a one-time pulse effect. I agree it's less annoying. Looking for opinions on the new effect.

I was able to reduce the number of callbacks throughout the code by a huge amount. This makes the animation much snappier as frames are not dropped while duplicate callbacks are dispatched.

The underlying code has lots of room for improvement. I need to think a little more about the location of the data structures in the code. I think it can be simplified significantly. There are a few leaks here and there but nothing major.

One caveat in all this: I uncovered two major bugs in Clutter. The first one has already been fixed by Emmanuele Bassi in Clutter 0.8.7 (Thank you! Sorry I keep pestering you!)--which hasn't been released yet. The second I reported just a few hours ago so we'll have to see what happens with that. The upshot is that you cannot run Gnometris with --enable-clutter from trunk right now unless you use git clutter-0-8 HEAD and you revert commit ce584541f113d4b5a4b5823b31f45e52f2da0da2.

I will update this post tomorrow morning with the Flash version once the Vimeo upload has gotten through their two hour long wait queue.

Comments

( 8 comments — Leave a comment )
(Anonymous)
Feb. 11th, 2009 07:52 am (UTC)
Gnometris
This looks awesome! (Well, great, compared to the last video, and entirely epic compared to the non-Clutter Gnometris)

Keep up the good work!

--hortont424
(Anonymous)
Feb. 11th, 2009 08:00 am (UTC)
Good stuff!
This is really nice, great job!

/kallepersson
(Anonymous)
Feb. 11th, 2009 11:41 am (UTC)
Why do so many people on Planet GNOME use Vimeo nowadays?

It sucks in a way that swfdec doesn't play it.

So thanks for the normal video :)

BTW: I don't care about h.264 being patented, but I care to only use free software.
ext_93579
Feb. 11th, 2009 04:46 pm (UTC)
Sucks that the server doesn't supply MIME format
So when I click it in Firefox it tries to download the whole Mp4 file as text.... nice...

ext_93579
Feb. 11th, 2009 04:59 pm (UTC)
After seeing the movie...
Looks great, I'm getting a bit annoyed by the non-center preview, but other then that it looks good.

A suggestion is to have all the pieces that fall down to fall all the way to the bottom before they fade (as long as it doesn't slow things down).
jasondclinton
Feb. 11th, 2009 05:04 pm (UTC)
Re: After seeing the movie...
Hum, like having a gravity effect that pulls them downward as they decay?
ext_93579
Feb. 11th, 2009 07:53 pm (UTC)
Re: After seeing the movie...
Yes exactly, if you have CPU cycles to spare you could even let them "explode" and bounce around the pieces.
automorphic.blogspot.com
Feb. 11th, 2009 06:40 pm (UTC)
Much better!
Jason, this looks incredible now! I'll have to try it myself to see if the smooth movement animation is something I can get used to (I'm so used to extremely minimal tetris UIs).

Keep up the great work. :-)
( 8 comments — Leave a comment )

Profile

color, uphair, smile
jasondclinton
Jason D. Clinton

Latest Month

September 2011
S M T W T F S
    123
45678910
11121314151617
18192021222324
252627282930 

Tags

Powered by LiveJournal.com
Designed by Tiffany Chow