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.

Load & unload polygons?

Post Aug 2nd '19, 19:04

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.
Qweasy908

Post Aug 3rd '19, 02:48

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

ravenshining
Hawai'i

Post Aug 3rd '19, 04:44

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

Last.fm · Marathon Chronicles · Marathon Eternal 1.2 · Where Monsters Are in Dreams · YouTube Vidmaster’s Challenge
User avatar

The Man
Sarasota, FL

Post Aug 9th '19, 23:51

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.
Qweasy908


Return to Aleph One Discussion



Who is online

Users browsing this forum: No registered users

cron