Strange Slowdown in latest version
-
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:
User Information:
Cinema 4D Version: 11.5
Platform: Windows ;
Language(s) : C++ ;---------
Hi,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);
object->SetColorProperties(&null;_object_properties);
object->SetScale(SomeVector);
object->SetPos(SomeVector);
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?
Thanks
Markus
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/02/2010 at 05:28, xxxxxxxx wrote:
forgot an important fact:
i am compiling this against the 10.5 SDK
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/02/2010 at 06:53, xxxxxxxx wrote:
Hi Matthias,
as always you are right - this was exactly what was happening...the code got alot faster without name checking.
Many thanks!
Markus