CS50 · youtube · en-US
1Texture-based portal rendering requires separate textures per portal and leads to high memory usage, especially with recursion, and limits the use of anti-aliasing due to visual artifacts.
“With a texture, you have to have separate textures per portal view. And if you have support for recursion, you have to have many, many textures pre-allocated to do this. So your memory growth gets big very fast. You have to use the Painter's Algorithm or something like it to render your portals. You basically have to figure out the deepest portal you can see into and render that one first. And I don't know if it's true anymore. It definitely was when I originally was working on the first portal. That you couldn't effectively use anti-aliasing, so you get small visual artifacts as you get close to a portal because it would be rendered as a texture that doesn't quite render the same way as the rest of the back buffer.”