Wikipedia:Portal:Portal/Selected article/9
In computer-generated imagery and real-time 3D computer graphics, portal rendering is an algorithm for visibility determination.
A game level might contain many graphical polygons; only a few of which may be visible on screen at a given time. Visibility determination allows the renderer to decide which of those fall into that category and thus reduce rendering time.
For example, in a computer game, the game area might be divided to several sectors. These sectors would be then connected to each other by small openings such as doors or windows. These openings are referred as portals. When the sector behind a portal needs to be drawn, the only parts that are visible are the parts that can be seen through the portal. Therefore, the sector can be clipped against the portal boundaries to remove overdraw.
The use of portals simplifies the game engine's task of determining visible areas and objects from any given point of view of the level, and simplifies rendering by allowing it to use each portal as a viewing frustum for the area it leads to.