From: Peter N. <pn...@ya...> - 2000-06-12 10:28:41
|
> The only change with this version is the inclusion > of the frame-rate > limiting made possible by Mark's changes in pySDL > 0.0.6 (which > pyaliens now requires). This should now be playable > on Windows with > hardware acceleration. > > Could someone who has compiled pySDL 0.0.6 for win32 > test this please? > It may be my imagination but the software version seems a little smoother than before. Since you're running fullscreen why not use the nice new cursor-hiding feature? It runs at a playable speed now with hardware acceleration, although it is still a little faster, probably I'm not quite getting 50fps in software (thus I guess the point about speed-limiting vs fps-limiting). There is some flickering though because of the fact that the screen is updated immediately (update_rect does nothing on a hw surface apparently, though it doesn't really hurt anything -- I removed them to prove this). Incidentally what's the best way to structure a game that has to either run in software or hardware depending on what's available? It seems like page flipping would be out of the question (b/c of how you have to erase where the sprite was 2 frames ago, etc). maybe a second hw surface that uses dirty-rectangle-style blits to the visible one in place of update_rects? --P __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com |