THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/02/2010 at 04:52, xxxxxxxx wrote:
Cinema 4D Version: 11.5
Platform: Windows ;
Language(s) : C++ ;
i am currently working on a new version of one of my plugins and wanted to test if it's still functional in C4D11.5.
All seems to work, strangely though one particular piece of code got much slower in regard to earlier versions (fast on 11).
There's not much going on, i iterate a vector and generate (roughly 900) null objects from that like this:
for (vectorvm::Vector3::const_iterator it = something.begin();
it != something.end(); ++it)
BaseObject *object = BaseObject::Alloc(Onull);
doc->InsertObject(object, parent_object, NULL);
I went through all the code and this (extremely simple piece) seems to run much slower now...I couldn't find anything in the release notes regardings this, any ideas?
On 11/02/2010 at 05:28, xxxxxxxx wrote:
forgot an important fact:
i am compiling this against the 10.5 SDK
On 11/02/2010 at 07:47, xxxxxxxx wrote:
Could you try if using doc- >InsertObject(object, parent_object, NULL,FALSE) makes a difference?
Name checking was not supported for R10.x-11.0. and got only introduced again in R11.5 and will cost alot of processing time.
On 18/02/2010 at 06:53, xxxxxxxx wrote:
as always you are right - this was exactly what was happening...the code got alot faster without name checking.