Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Whats more efficient? loading objects or cloning one?

Author
Message
Ashy
19
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 11th Sep 2006 12:55
Hey guys, whats more faster/memory efficient, loading say, 100 tree objects and positioning each one. Or loading one object, cloning it 100 times and positioning each one?
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 11th Sep 2006 16:34
Benchmarking is a good way to determine your answer, but my experience tells me that cloning an object is faster, as this only requires duplication of object memory. Not actual object data, but it's position, orientation, ID, collision tree etc.

Paul.

Login to post a reply

Server time is: 2024-11-19 08:38:05
Your offset time is: 2024-11-19 08:38:05