From: Tim S. (25121) <tk...@mi...> - 2009-11-17 04:27:17
|
Hmm. Would I benefit from writing the application purely in c++ (not my preferred option)? I'm treading a line between speed and flexibility of pumping out various models, and speed of interpreting the model itself. If the model is frighteningly slow to interact with then I'm sunk, but if it takes me too long to produce a new model I'm also sunk. -----Original Message----- From: Bruce Sherwood [mailto:Bru...@nc...] Sent: Tuesday, 17 November 2009 11:49 AM To: Tim Smith (25121) Cc: vis...@li... Subject: Re: [Visualpython-users] speed I would say that your measurements clearly show that VPython is unsuitable for your task. The basic problem is that VPython is designed to facilitate the creation of navigable animations, which means that rendering must be done within a fraction of a second to permit responsive navigation with the mouse. Since this rendering is being done in C++, not in Python (though the Python objects must be referenced from the C++ code), it seems unlikely to me that some other engine would give you the interactivity you're looking for, but maybe someone reading this list can recommend an application that can do what you need. The only thing that can reduce the render time would seem to be to make the spheres extremely small, so that there is little to render. Sorry! Bruce Sherwood Tim Smith (25121) wrote: > Something I've noticed with vpython is speed doesn't seem to scale up. > In my model I found 1000 points has a render time of 17, 10,000 points > has a render time of 170, and 50,000 point has a render time of 445. > Once I go over the 10,000 point mark performance starts to go down > exponentially. > What I'm wondering, is I'll potentially have to render 1,000,000 points > for one of my projects, is vpython unsuitable for my task and is there a > faster python 3d library out there? I've been really impressed with how > fast vpython has enabled me to produce from very detailed models, how > ever working with such slow objects is going to drive me a little batty > eventually. > ********************************************************************** IMPORTANT - This email and any attachments may contain confidential or privileged information intended solely for the intended recipient and / or copyrighted material. If you are not the intended recipient you must not use, interfere with, disclose, copy or take any action with reliance on this email or any part of it. If you have received this email in error please advise the sender via return email and delete or destroy all copies of this email and attachments. Any claim to confidentiality or privilege is not waived or lost by reason of mistaken transmission of this message. Any unauthorised use, copying or distribution is prohibited. Minara Resources Limited does not warrant that this email or any attachments are free of viruses and cannot guarantee the accuracy, reliability or completeness of this email and any attachments. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.clearswift.com ********************************************************************** |