I've just started mixing shaders with Pygame
11–20 of 26 posts
Re: I've just started mixing shaders with Pygame
#12How?! How did you get PyGame not to be so brutally slow? Is it basically that all the graphics are done separately and pygame only offers up IO and game loop? This is just brilliant and wonderful and beautiful. The premise of this game is just amazing.
Re: I've just started mixing shaders with Pygame
#13Re: I've just started mixing shaders with Pygame
#14https://shaderfrog.com/app/view/6473
but i heavily dislike that they offer not writeback to fbos and pass structure by default. Lots of things impossible thus. Its freaking swarm of embedded devices, just give me the controls already
Re: I've just started mixing shaders with Pygame
#15How?! How did you get PyGame not to be so brutally slow? Is it basically that all the graphics are done separately and pygame only offers up IO and game loop? This is just brilliant and wonderful and beautiful. The premise of this game is just amazing.
I used to do a lot of amateur gamedev with Python (pygame and pyglet). If most of the work happens on the GPU or external libraries, it is usually OK if you aren't doing anything stupid.
Re: I've just started mixing shaders with Pygame
#16How?! How did you get PyGame not to be so brutally slow? Is it basically that all the graphics are done separately and pygame only offers up IO and game loop? This is just brilliant and wonderful and beautiful. The premise of this game is just amazing.
Think of (fragment) shaders as programs that run in the GPU per-texture-pixel. There is some initial CPU/memory-bound work setting everything up (e.g. uploading textures to GPU RAM, compiling the program, sending vertex buffers...) and then per-frame you just call the shader with some parameters (e.g. character's current position) and the GPU does the rest.
In-CPU you mostly do the non-parallelizable work such as collisions, game logic, keyboard input, etc. which can be very light for a simple 2D platformer.
Re: I've just started mixing shaders with Pygame
#17How?! How did you get PyGame not to be so brutally slow? Is it basically that all the graphics are done separately and pygame only offers up IO and game loop? This is just brilliant and wonderful and beautiful. The premise of this game is just amazing.
Re: I've just started mixing shaders with Pygame
#18Can you share anything about your stack or process? This looks beautiful!
If I recall he also makes code available via Patreon.