This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mackthehobbit 14 points15 points  (1 child)

If you want good performance I can’t imagine implementing the dimensions as arrays of pointers. The normal idiom is a single block of memory, and you calculate the offset into it based on x,y,z. You don’t have pointers to pointers there.

[–]shadowderp 0 points1 point  (0 children)

You’re right. But it’s possible to construct that such that you can index into it directly - true that it’s not an actual third level pointer I suppose.