Load & unload polygons?

Have a question, suggestion, or comment about Aleph One's features and functionality (Lua, MML, the engine itself, etc)? Post such topics here.
Post Reply
Qweasy908
Born on Board
Posts: 23
Joined: Jul 18th '18, 22:45

I don't know how Aleph One only loads part of the map the player is around instead of loading the entire map.

Does Aleph One load and unload polygons?

How does Aleph One load the map around the player?

What are map indices?

The maps are big and unloading hidden polygons would save memory.
User avatar
ravenshining
Vidmaster
Posts: 889
Joined: Jun 17th '17, 22:50
Location: Hawai'i

It doesn't. The whole level is read and runs at once, not doing so would break the functionality of many, many maps. Some maps will refrain from activating monsters until you get near them, however, this is not a mandatory feature, especially with A1's increased limits. It really doesn't use much memory to do all that, this was designed in 1994 after all.

Maybe you're thinking of only rendering what's in sight? In which case, I don't know.

Or are you thinking of loading textures and sprites? In which case, it loads any required collections for the whole level at the start. However, since it loads on a collection basis, that means it does load a lot of unnecessary textures and sprites, which is a problem in some scenarios for loading times and 32 bit Windows builds.
User avatar
The Man
Vidmaster
Posts: 1112
Joined: Aug 6th '08, 05:23
Location: Sarasota, FL
Contact:

As for map indices, there's an explanation of those here. tl;dr: you can only get away with so many small polygons crammed together.

Also, I got the impression that loading all the textures in each collection a map uses is not actually intended behaviour, but it's nonetheless how the Windows version of the engine handles it.
“People should not be afraid of their governments. Governments should be afraid of their people.” —V, V for Vendetta (Alan Moore)

“The trouble is that we have a bad habit, encouraged by pedants and sophisticates, of considering happiness as something rather stupid. Only pain is intellectual, only evil interesting. This is the treason of the artist: a refusal to admit the banality of evil and the terrible boredom of pain. If you can’t lick ’em, join ’em. If it hurts, repeat it. But to praise despair is to condemn delight, to embrace violence is to lose hold of everything else. We have almost lost hold; we can no longer describe happy man, nor make any celebration of joy.” —Ursula K. Le Guin, “The Ones Who Walk Away from Omelas”

“If others had not been foolish, we should be so.” —William Blake, The Marriage of Heaven and Hell

“The law cannot protect anyone unless it binds everyone; and it cannot bind anyone unless it protects everyone.” —Frank Wilhoit

Last.fm · Marathon Chronicles · Marathon Eternal 1.2 · Where Monsters Are in Dreams · YouTube Vidmaster’s Challenge
Qweasy908
Born on Board
Posts: 23
Joined: Jul 18th '18, 22:45

Thanks for the answers to my questions.

I think the appearing and disappearing polygons has something to do with portal rendering when its culling hidden portals and polygons.

I found a book that has info about portal culling and maybe that allows overlapping polygons.
Post Reply