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.

Code Snippets / Tree Link-List functions

Author
Message
General Reed
18
Years of Service
User Offline
Joined: 24th Feb 2006
Location:
Posted: 29th Dec 2006 23:12
Hi all!
Here are some functions to allow easy useage of tree link-lists, for superfast searches.


Any suggestion or comments are more than welcome.

Enjoy!

-General Reed

Beware, Killing chavs is not a crime, but is the only way to cure the earth
Vist www.scratchyrice-dev.co.uk
Kaneda
17
Years of Service
User Offline
Joined: 12th Dec 2006
Location:
Posted: 29th Dec 2006 23:16
Sorry I'm feeling lazy today,could you give us an example on how it works, from what I can tell tho it looks kinda kewl. If its what I think it is then it'll be pretty damn kewl

Signature?...Signature!!??
General Reed
18
Years of Service
User Offline
Joined: 24th Feb 2006
Location:
Posted: 30th Dec 2006 01:35
Hi,
Sorry for the lack of explination Kaneda. To follow is an example. The main purpose of this type of search (TreeSearch) is to eliminate the need for serial searches. The example that follows defeats the object a bit, because the FreeObject() function is a serial search.




Say you had loaded two objects, and for whatever reason the first one was number 1 and the second one was number 4500, these functions will skip the gap, so there is no need to waste those precious FPS on finding a refrence number.(The least of a game developers worries).

Anyway, hope u guys find it usefull

@Kenada - Tell me if u understand.

-General Reed

Beware, Killing chavs is not a crime, but is the only way to cure the earth
Vist www.scratchyrice-dev.co.uk

Login to post a reply

Server time is: 2024-11-22 23:21:12
Your offset time is: 2024-11-22 23:21:12