When Python is too Slow for my Steam Game

preview_player
Показать описание
Sometimes there are things that Python is too slow for in 2D gamedev. That doesn't mean that Python can't be used for that project, but you might have to get a bit creative!

My Discord:

Support Me (and get source code for the project in this video):

My Website (all games shown were made by me):

Cellular Automata Shown:

BGM:
Kelp by Adhesive Wombat

Special thanks to my Potato Tier Patrons:
Agent Effe
Eivind Teig
f0ursqu4r3
Kurt Vinci
kyle meyer
Michael Placido
rethanon
Sam Cork
Szabolcs Dombi

Timestamps:
0:00 - encountering performance issues
0:48 - expensive cellular automata
1:37 - python solutions
2:38 - yawnoc's solution
4:13 - new yawnoc features

#gamedev #pygame #python
Рекомендации по теме
Комментарии
Автор

Wishlist Yawnoc!
I mentioned that Python can be easily used for nearly any 2D game but not 3D. For those who are curious, the reasoning against using it for 3D is actually unrelated to performance. Most 3D games nowadays are made with an engine + scripting combination. Since there aren't any major engines that primarily support Python as a scripting language, it's not particularly easy to make 3D games with Python. Of course it can still be done (see my last 2 videos). It's just not very easy to get into with the current tooling. Things may be completely different in the future.

DaFluffyPotato
Автор

In conclusion, GPU comes in clutch every time. Love the video Potato Master.

petthepotat
Автор

By far the most talented PyGam dev out there. Ever considered writing a book on this? I would 100 buy it. Will be looking out for when the game is released man! you rock!

PascalCavalier
Автор

Never seen your channel or work before, but i immediately thought that a shader would be your solution! I'd never really considered python for game dev before. Yawnoc looks very fun - wish listed!

sharpenednoodles
Автор

Shaders exist at the meeting place between mathematics, computing and art. They're really nice.

electrictrojan
Автор

many technical limitations have led to incredible creative choices in gamings history :D

RictorScale
Автор

Potato's problem solving skills are goals. The things I've learned with your videos have applied to more than just learning to make games, I've applied a lot of concepts I've come to understand thanks to you in a lot of different ways, and even made some discoveries of my own in regards to how to attack unique issues I had. Thank you for your content, and I'm looking forward to Yawnoc!

Acheronthewolf
Автор

Python's data science and math capabilities is what keeps me coming back to Pygame.

Ranakade
Автор

Great video, I love shaders and this is a perfect application for them! The water colour effect that you showed off looks awesome by the way, I might have to try recreating it at some point!

BarneyCodes
Автор

Every new video of yours is like a fiery new inspiration. Even though didn't understand most of it..



Keep going!

ronitsingh
Автор

Your game featured here reminds me of some of the art and design in Cave Story. Love the channel, thank you!

djlclopez
Автор

this is such a dope coincidence, i was talking to my friend about inefficiency of the code in my cellular automaton code and you uploaded it

kklol
Автор

Hey! Nice stuff!
It was cool to see my Smoothlife(L) shadertoy shader in the thumbnail and the video :)
Would appreciate if you could put some links in the description to the referenced shadertoy shader(s). Thanks!

helioshyperion
Автор

oh okay, thanks for this, perfect timing, i was working on cellular automaton!

kklol
Автор

Your games are always great by conceptually and graphically

codewithram
Автор

TL;DR: if your python code is too slow, use C

madbanana
Автор

Thanks, your content is quite inspiring.

KucheKlizma
Автор

kick butt keep it up you got this all ready

iamtimsson
Автор

Fantastic to see you consider the solutions to get the game ready. I wonder if Mojo can (or will in the near future) help with this kind of performance 🤔

Either way, good luck getting the game to release!

Skeffles
Автор

Hah, shaders. Damn, I'm gonna have to learn those eventually, inevitably.

ciCCapROSTi
welcome to shbcf.ru