M
molul
Guest
Hi all! I've arrived here looking for Pygame forums (I'm surprised there's not an official forum, and I don't quite like the mailing lists), and these boards look like a good place to stay
I'm currently developing a 2D platformer (well, actually I started it a lot of years ago with another language, but I got stuck and stopped developing, and now I've rebooted the project with Pygame), and I'd like it to be something like Sonic or some other great platformers from the 16-bit era, specially from Sega Genesis (Dynamite Headdy, Rocketknight Adventures, Ristar...) but in full HD.
Yesterday I finished the tiled background engine, and I've noticed a 15 fps drop in 1920x1080. And when I added a 5 planes parallax scroll, fps are going down to 10-20. I doubt it's the machine, as I play games like Starcraft in Ultra settings on it. Also, I'm noticing most games developed with Pygame are 640x480 or 800x600. So the question would be: is Pygame suitable for doing a full HD side-scrolling platformer?
My current approach is to render all scrolls planes and the tiled background to a single surface (the ".image" of my Stage class), instead of rendering each one in different planes. I haven't tried separating yet, but I doubt it will improve performance, as the blitting will be the same.
I've read the Surface.blit function is slow for some reason and shouldn't be overused, but I don't know another way of rendering images to the screen. I tried using flags "HWSURFACE | DOUBLEBUF | FULLSCREEN" and it increased 2-3 fps. Am I missing some other optimization or am I just using the wrong engine for an HD platformer?
Thanks a lot in advance
I'm currently developing a 2D platformer (well, actually I started it a lot of years ago with another language, but I got stuck and stopped developing, and now I've rebooted the project with Pygame), and I'd like it to be something like Sonic or some other great platformers from the 16-bit era, specially from Sega Genesis (Dynamite Headdy, Rocketknight Adventures, Ristar...) but in full HD.
Yesterday I finished the tiled background engine, and I've noticed a 15 fps drop in 1920x1080. And when I added a 5 planes parallax scroll, fps are going down to 10-20. I doubt it's the machine, as I play games like Starcraft in Ultra settings on it. Also, I'm noticing most games developed with Pygame are 640x480 or 800x600. So the question would be: is Pygame suitable for doing a full HD side-scrolling platformer?
My current approach is to render all scrolls planes and the tiled background to a single surface (the ".image" of my Stage class), instead of rendering each one in different planes. I haven't tried separating yet, but I doubt it will improve performance, as the blitting will be the same.
I've read the Surface.blit function is slow for some reason and shouldn't be overused, but I don't know another way of rendering images to the screen. I tried using flags "HWSURFACE | DOUBLEBUF | FULLSCREEN" and it increased 2-3 fps. Am I missing some other optimization or am I just using the wrong engine for an HD platformer?
Thanks a lot in advance