It depends on what sort of a game, how many entities etc.
Many previous suggestions involve having your game split into areas, where all the entities for an area are parented to a pivot or something. At the change of area, this pivot (and thus all recursive children) is hidden.
Some of the following may help:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1244
http://www.blitzbasic.com/Community/posts.php?topic=41049
http://www.blitzbasic.com/Community/posts.php?topic=41247
plus check out the code archives (maybe search them for 'Occlusion' as this is what you are trying to achieve.
Many previous suggestions involve having your game split into areas, where all the entities for an area are parented to a pivot or something. At the change of area, this pivot (and thus all recursive children) is hidden.
Some of the following may help:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1244
http://www.blitzbasic.com/Community/posts.php?topic=41049
http://www.blitzbasic.com/Community/posts.php?topic=41247
plus check out the code archives (maybe search them for 'Occlusion' as this is what you are trying to achieve.