From: Pete S. <pe...@sh...> - 2000-06-15 06:42:06
|
ok, i've finished my first decent version of python flame! i've left enough comments in the actual source, but to help discussion... the program runs at about 15fps on my celeron 400 with a TNT2. currently, about 60% of the running time involves transferring the image the numeric python array to the sdl surface. this transfer has to be done with an expensive python loop, but it will be simple to create a C extension to do it, at which point my little pflame should get above 24fps the other thing i want to do is pixel-doubling. first i'll see if using SDL's scaled BLT is fast enough, i'll also compare that to doubling the image in numerical python. anyways, here's the code. you'll need both .PY files in the same location. this is running with pysdl 0.0.5, so no need to worry if your not up to the latest release. i'm curious to see how (un)quickly this runs on different equipment and os's. if anyone can prune some more speed onto this thing, let me know! |