www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: fireside on February 19, 2008, 06:44:47 am

Title: Cloned object
Post by: fireside on February 19, 2008, 06:44:47 am
I thought about using cloned platforms in this game to save file size, etc.  I'm wondering how this will affect performance, or what would be the best way to get good performance from a lot of cloned platforms and walls rather than a larger structure like the castle that is octree.  What do you recommend for that?
Title: Re: Cloned object
Post by: EgonOlsen on February 19, 2008, 07:06:05 pm
It depends. Personally, i prefer to use one larger object with an octree when possible, because it should be a little faster. Anyway, it depends on your needs. If you want to move some platforms, you may be better off with single objects.
Title: Re: Cloned object
Post by: fireside on February 19, 2008, 08:21:24 pm
O.K.  It wouldn't take much file space to use one object, either.  I can just reuse switches and elevators and things.