lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello every body,

I'm working with Lua for creating IA in virtual drivers in a traffic road simulator. I use a 3D engine written in C++ and a scheduler to trigger notably the execution of the lua vm. As I am looking for heavy realistic traffic, I try to use optimisation everywhere. This weekend I have pointed out that it can cost a non negligeable time to call the lua vm. To give you numbers: I trigger the lua vm at 0.2Hz and I have about 60 lua vm (60 virtual drivers) and I have done measurement with script that does nothing in order to see just the cost of the lua vm call. With 60 lua vm that does nothing (but called from c++) I divided the frame rate by a ratio of 1.5 compared with the same program that does not call lua vm.

Does anybody encounter similar results? what can be done to improve this?

Thanks.

dh
begin:vcard
fn:David HERVIOU
n:HERVIOU;David
org;quoted-printable:Ecole Nationale d'Ing=C3=A9nieurs de Brest
adr;quoted-printable;dom:BP 38;;25, rue Claude Chappe;Plouzan=C3=A9;France;29280
email;internet:herviou@enib.fr
title;quoted-printable:Centre Europ=C3=A9en de R=C3=A9alit=C3=A9 Virtuelle
tel;work:+33 (0)2 98 05 89 45
tel;fax:+33 (0)2 98 05 89 79
note;quoted-printable:Doctorant En Informatique au laboratoire LISyC (Laboratoire d'Informatiqu=
	e des Syst=C3=A8mes Complexes) dans le cadre du projet AR=C3=A9Vi.
url:http://www.cerv.fr/~herviou
version:2.1
end:vcard