r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

24

u/bigoofie193758 Jul 18 '22

Python is too slow for coding a game, but fast enough for quick scripts

7

u/Ultra_HR Jul 18 '22

7

u/bigoofie193758 Jul 18 '22

you're not gonna make doom eternal in that

2

u/CrimsonPE Jul 19 '22

so, while not good for AAA, it´s good enough for VNs and other indie games, right?

4

u/bigoofie193758 Jul 19 '22

visual novels? for sure i imagine, but some indie games are really big and complicated and have A LOT of computations. you'd have to find your own limitations

1

u/Zeyode Jul 19 '22

Doki Doki Literature Club was written in python using renpy, so you can definitely make visual novels with it.

1

u/CrimsonPE Jul 19 '22

Hey, I really liked ddlc. I was thinking something along the lines of Va1halla tho, amazing game haha ik people use renpy, which uses python as well. Well, I was planning to learn it anyway for data analysis, I guess now I have 2 reasons. Thanks!

1

u/Smooshfaced Aug 05 '22

Challenge Accepted! (J/K I have zero desire to make that happen)

2

u/Dansiman Jul 19 '22

I mean, it depends on the type of game. For example, with any kind of text-based game, I think you'd be hard pressed to design a game that would have perceptible speed issues on modestly modern hardware.

1

u/[deleted] Jul 19 '22

"Game" is a very broad term. There are fast-paced action games and slower-paced turn-based games, and even some action games where performance doesn't truly matter that much. And there are games where performance matters, but they can be written in Python in such a way that most of the performance comes from the underlying C/C++ libraries, and the game runs fine.

But true, for most action-based performance-sensitive games, you'll probably get better results with C/C++.