From: Jonathan B. <jbr...@ea...> - 2005-01-23 02:20:28
|
On Sat, 2005-01-22 at 20:50 -0200, Flavio Coelho wrote: > Hi Johnathan, > > While waiting for your response, I managed to fix most of the problems > I had, including the keystrike catcher. > > I posted the updated version of my stripchart module here: > > http://www.procc.fiocruz.br:8080/procc/Members/flavio/codepy/stripch.py/file_view > > Unfortunately, there is a pretty significant memory leak in my > drawTickLabels function That I couldn't fix. Could it be originated > from the label object? Have you had any issues concerning creating and > destroying many labels continuously? > > because of this leak the call to this function in the plot function is > commented. > > I would appreciate any ideas/ suggestions on this... Creating new renderable objects is one of the slowest things you can do in VPython, so I would suggest that after the initial creation of the labels, you should keep track of which ones represent what, and just update their content every update rather than destroy and recreate them. I am looking into the memory leak. -Jonathan |