Notifications
Clear all

[Closed] A faster method for retrieving element count

the c++ solution for getting number of elements:

time:46 heap:120L

it’s for the @Serejah’s scene example

Nice.
Does it collect elements verts indexes per element?

with collecting all elements as bitarrays it’s:

time:90 heap:25792L

Great results., Denis. C++ is the king

You guys rock! Thank you

are you sure need it?

1 Reply
(@serejah)
Joined: 11 months ago

Posts: 0

I didn’t test this particular function for leaks, but c# methods where something left undisposed are prone to that.
I had to re-implement some Matrix3 class methods because of that. That’s a downside of c# sdk for sure, let alone that you can’t return values easily.

in this case it seems not necessary. they are .net objects in local scope. so the mxs values will be immediately collected and so .net objects will be atomically destructed.
i don’t see a reason to force it.

Page 2 / 2