[maemo-developers] [maemo-developers] first impressions and some reports
From: Gustavo Barbieri barbieri at gmail.comDate: Thu Jul 7 22:18:30 EEST 2005
- Previous message: [maemo-developers] first impressions and some reports
- Next message: [maemo-developers] first impressions and some reports
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 7/7/05, Gustavo Barbieri <barbieri at gmail.com> wrote: > On 7/7/05, Salonen Kuisma <kuisma.salonen at maemo.org> wrote: > > Hi, > > > > ext Gustavo Barbieri wrote: > > > Hello, > > > > > > Now that I have the maemo environment set up, I started to love this > > > thing!!! And python! > > > > > > Thanks to Osvaldo and Ruda, I can run PythonCAD without any changes! > > > > > > Also, my game tutorial (pt_BR) runs perfectly (just need to check the > > > perfomance on a real device, since it's side scroll and redraws the > > > screen every time): > > > http://www.gustavobarbieri.com.br/jogos/jogo.tar.gz > > > Could someone run "python2.4 jogo/a06/jogo.py -f -r 800x480" on a > > > real device and check if performance is an issue... if it can do at > > > least 30fps it's good enough. If it's ok I'll develop a game using > > > that engine. Also, it can be optimized a bit, I wrote it as an > > > educative project. > > > > > > > I haven't checked it but it unfortunately cannot get that high > > framerates with the resoluation with current SDL we have (and pygame > > depends on the SDL). > > > > And I am still not sure how much python will downgrade performance but I > > think that for now you unfortunately should just stick to partial screen > > refreshing if you want it to work smoothly on the device. At least you > > shouldn't scroll all the time, since < 20 fps isn't that smooth (not > > sure how much under 20 fps since i haven't enought of the experience > > with the pygame). > > I know... I'll try a quick pygame app to test if side scrolling is > doable at all. It it passes the test I'll write something on wiki so > people can know how to do. > Expect something by the end of the night. Here it is: http://ltc08.ic.unicamp.br/~gustavo/pygame-maemo-test.tar.bz2 I have 2 optimized versions of that game: - pygame-noalpha: remove alpha transparency, use colorkey instead. Much faster, but still repaints the screen everytime - pygame-dirtyrectangles: the background is redrawn fewer times and I use dirty rectangles to just update areas that need to be repainted. If this doesn't work, hardly any scroll side game will work. run them like: $scriptname -f -r 800x480 -- Gustavo Sverzut Barbieri --------------------------------------- Computer Engineer 2001 - UNICAMP GPSL - Grupo Pro Software Livre Cell..: +55 (19) 9165 8010 Jabber: gsbarbieri at jabber.org ICQ#: 17249123 MSN: barbieri at gmail.com Skype: gsbarbieri GPG: 0xB640E1A2 @ wwwkeys.pgp.net
- Previous message: [maemo-developers] first impressions and some reports
- Next message: [maemo-developers] first impressions and some reports
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]