When to use C++

hi I’m creating a RTS style game and I was wondering when it is appropriate to optimisze using C++ instead of writing everything in python? I’m under the impression that C++ is faster at function calls and math than python, so the tasks which run every frame (collision, movement) should be written in C++. Is this true? Thanks

Well, Panda’s processor-intensive functions and operations are all implemented in C++, so basically if you avoid doing complex math on the Python side, it should be fast enough.
I prefer to keep everything Python but to make the modules which are too slow in Python into C++, compile those into a library and invoke that library from Python. That’s how I did my terrain module first (until this module got integrated into panda3d).