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.

Newcomers DBPro Corner / How large can a matrix be?

Author
Message
Ddredar
20
Years of Service
User Offline
Joined: 19th Dec 2003
Location:
Posted: 19th Dec 2003 23:51
What is the max size that a matrix be? such as:

max width
max depth
max x tiles
max ztiles

And at what size would the matrix become unstable?
Ddredar
20
Years of Service
User Offline
Joined: 19th Dec 2003
Location:
Posted: 20th Dec 2003 00:22
and one more thing. Is the matrix command simalar to an arry in the way it uses memory?
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 20th Dec 2003 00:34
Matrices used to have a limit but with latest DBPro patches, there is no limit. However having anything over 100 by 100 tiles is not a good idea and things start slowing down. Best bet is to have a smaller matrix and use the shift matrix commands to give impression of larger landscape.

My alien compo entry has a matrix 79 * 79 tiles with each tile 100 * 100 units. The game level is however 300 * 300 tiles. The idea being to detect when player crosses a tile border, shift the matrix one tile and rebuild the matrix edge from a level array. In the array I store the matrix texture numbers, heights and normals.

I have no idea how matrices are stored in memory. Does it matter?

Boo!
Ddredar
20
Years of Service
User Offline
Joined: 19th Dec 2003
Location:
Posted: 20th Dec 2003 00:47
Thanks for the info.



Memory usage would only matter if the matrix command used up memory as dynamicly as an array.

Login to post a reply

Server time is: 2024-09-21 15:10:11
Your offset time is: 2024-09-21 15:10:11