Python script and C++

Ravi Teja webraviteja at gmail.com
Tue Nov 28 00:24:32 EST 2006


Thuan Seah Tan wrote:
> Hi all,
>
>     I am new to python  and currently I am working on a traffic simulation
> which I plan to define the various agents using scripting. It's kind of like
> scripting for non-playable character in games. I am thinking of using python
> for this but I am concerned with running time. Is scripting a lot slower
> compared to direct implementation in C++? Does compiling the script help in
> any way?

Python is perfectly suitable for this use. Python was in use in video
games in this way when computers were a lot slower. I doubt that you
will need to bother compiling the script or see any observable
enhancement if you do.

One example I can remember is Kingdom Under Fire (2001).




More information about the Python-list mailing list