You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.
quote:
Original post by Yanroy
Stoffel: Have you ever played an online game that says ''loading'' every time you do a hyper-jump with you ship? That would be horrible, especially if it took a long time.
unsigned long int x;
unsigned long int y;
unsigned short int z;
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.
quote:
Original post by Yanroy
There seem to be quite a few interesting and useful ideas out there... thanks. I don''t know what I will use yet, maybe a tree is the best way to go. Just one question: how does the tree save memory? If it works all the way down to the 1x1x1 sector level, wouldn''t it take sizeof(treenode)*8^n bytes just to store the tree, where n is the number of recursions? I don''t feel like checking that math... if its wrong, who cares. It will still be a lot of memory just to store the tree. Not having nodes with nothing in them cuts down on that A LOT, but as the galaxy gets more populated and the players/NPCs/drifting spacecrafts left over from battles spread out, but remain more or less the same density (d=m/v, volume increases, objects (m) increase, density stays the same), the tree would still gobble memory like there is no tommorrow. Perhaps a tree that only recurses (sp?) two or three levels, so it controls an area of 32x32x32 or something like that, and the rest is coord-comparison. I feel like I''m rambling, so I am going to stop with a few last comments.
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more