Performance

Blitz3D Forums/Blitz3D Programming/Performance

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Yeah, there is a balance that needs to be struck. But you could set up some sort of portal system. Meaning when you enter a certain area of the maze, you hide other sections of it.

.123456789
a.........
b.........
c.........
d.........

And say if your in area b3, work out before-hand which areas will be hidden when in certain areas. Or you could work it out by distance. Or work it out using a 2d grid system, since each maze wall is probably the same height.

Check the 2d grid, which would be a representation of you maze, and use some sort of calculation whether 2 grid locations could see each other. That should be pretty fast. I'm sort of a beginner to this sort stuff so i'm still learning :)