.addObject causes lag in windows export

I would like to use

newObj = scene.addObject(obj)

in order to get a handle on the new object to modify its properties, however when I add that line of code and export it to Windows 64 bit, severe lag is generated even though it runs fine in blender player. When I use the addObject actuator and export it, no such lag occurs.

Does anyone know why this happens? Is there an easy work-around for this problem?

try giving the other args,

addObject(‘name’, objectSpawningObject, time)

also if the object has a large shader or geometry it can take a second to process

Dissable Vsync and try again.