Skip to content

Commit

Permalink
Performance: Disable visplane remapping
Browse files Browse the repository at this point in the history
Plane remapping is used to render map hacks correctly.

However, this plane remapping algorithm can be extremely slow, locking up gameplay for several seconds. A better algorithm is required.
  • Loading branch information
skyjake committed Dec 9, 2019
1 parent 72e1a2c commit 5cca3e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doomsday/apps/client/src/client/clientsubsector.cpp
Expand Up @@ -1549,7 +1549,9 @@ Plane const &ClientSubsector::visPlane(dint planeIndex) const
// Time to remap the planes?
if (d->needRemapVisPlanes())
{
d->remapVisPlanes();
/// @todo This is broken. For instance in ICARUS.WAD map09, locks up for several
/// seconds while looping through the map. A better algorithm is needed.
//d->remapVisPlanes();
}

ClientSubsector *mapping = (planeIndex == Sector::Ceiling ? d->mappedVisCeiling
Expand Down

0 comments on commit 5cca3e1

Please sign in to comment.