Portal Performance
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Portal Performance
How resource intensive are portals, and what exactly affects it? How many portals can you create before it's likely to affect performance?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49238
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Portal Performance
That depends on the graphics hardware you target. On older hardware even a single portal can cause some noticable slowdown, while on modern mid-range and high end cards you may get away with multiple complex portals before they affect performance too much.
One thing you need to remember is that the sky is also a portal, so an indoor portal in an area with no sky is cheap, but a portal in an area where some sky can be seen will require a full stencil pass - and if both your main view and the portal show some sky it will definitely be too much for older hardware (i.e. OpenGL 3.x or OpenGL 4.0)
One thing you need to remember is that the sky is also a portal, so an indoor portal in an area with no sky is cheap, but a portal in an area where some sky can be seen will require a full stencil pass - and if both your main view and the portal show some sky it will definitely be too much for older hardware (i.e. OpenGL 3.x or OpenGL 4.0)