|
From: Thomas S. <to...@fe...> - 2010-05-02 00:03:13
|
Hi list,
I try to a hyperplane in random generated points, which is atm really
slow (could be, that it can be done faster, when implemented
differently...)
from visual import rate, sphere
def add_points():
num = 0
while num < 1000:
sphere(pos=get_point(), radius = 2**55)
points = 0
while 1:
rate(100)
if points < 10000:
add_points()
points += 1000
print points
Therefore I tried to profile it with cProfile and ran it as:
"python -m cProfile my_script.py"
This worked for any other 'usual' script, but not with the script from
above.
Am I missing something? Is it not possible with vpython by intention?
Thomas
|