CAttributes is a cpu hog

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: CAttributes is a cpu hog

Post by Mel »

I think that too, but for not to break the interface, using indices is the best.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
CuteAlien
Admin
Posts: 9644
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: CAttributes is a cpu hog

Post by CuteAlien »

Ok, finally got to profiling this myself a little bit. And yeah - I got > 5% with a single node and still > 2% with lots of nodes in release (code for my tests here: http://code.google.com/p/irr-playground ... nenode.cpp - also needs the stuff in the my_media folder there).

I'd like to fix that at least for the 1.8.1 release, but really wonder if changing that is considered as breaking a library interface by distros. No idea...
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply