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

Re: [pygame] Codebase for tile-based games



On Fri, 16 Aug 2002, Pete Shinners wrote:

> Fredrik Corneliusson wrote:
> > I've put up a snapshot of the source and a win32 exe of the scrolling game
> > I'm working on:
> > http://www.algonet.se/~tomten/turb/
> > 
> > There are quite a lot of dependencies so if you just want to check it out
> > use the exe.
> 
> cool, i finally got it working. couple strange issues with pyui and looking 
> for UserRect inside pygame, but now it's running smooth.
Hmm..thought I'd fixed that, just delete the pygame prefix to UserRect on
line 4 and remove UserRect. on line 133

> 
> on my linux with no hardware acceleration, it runs about 23 fps. running 
> with hardware dga accleration the framerate was around 40. just for fun i 
> also ran it at 1280x1024 with hardware acceleration and it also ran at 
> 40fps. a sure sign that this is the max speed of the game engine :] this 
> was on my celeron 1.3g
> 
This seems strange, on a PII 350 with a S3 card on win32 and linux  I got
about the same framerate without hardware (~40), your celeron should kick
it's ass at maximum gameengine speed. Are you referring to the FPS of
pyui? It's usually much lower then the FPS in the game.
Is that a 66Mhz FSB Celeron, and what video card?
Could there be a problem with the maximum framerate setting in the ini
file?

I've tried it on my debian linux box (Athlon 1.2g Gforce2) and got fps at
refresh rate. ~100 at 640x480 and ~60 at 1024x768 and about the same
result with a P3 866 in Win2K.

BTW.
The trick to enable hardware in linux (SDL_VIDEODRIVER=dga) is pretty
obscure, has anyone some code to set it and handeling verification of the
permissions? and maybe even ask for root password.
But maybe it's to risky, I managed to lock my box by trying to set a
unsupported resolution. Reminded me of the absence of display.mode_ok()
:-)

Thanks,
Fredrik

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org