kraflab / dsda-doom

This is a successor of prboom+ with extra tooling for demo recording and playback, with a focus on speedrunning and quality of life.
319 stars 80 forks source link

PO_Init can be very slow #390

Open andrey-budko opened 1 year ago

andrey-budko commented 1 year ago

For some reason I tried to load myhouse.pk3/house.wad with dsda-doom. After removing the "Multiple polyobjs in a single subsector" error, dsda-doom was able to load the level. It is completely broken, but who cares. The problem is that it takes about 90 seconds to load.

Quick checked GZDoom and tried "KnownPolySides" optimization from there and loading time reduced from 90 to 3 seconds

https://www.doomworld.com/forum/topic/134292-myhousewad/

https://github.com/andrey-budko/dsda-doom/commit/1fd4beaf096c668ecb060d66f27a0a045f158f8b

dsda-doom house.wad -warp 1 -vidmode 8 -quiet

andrey-budko commented 1 year ago

Actually I wanted to check performance on automap, because it's about 10 fps with gzdoom

![image](https://github.com/kraflab/dsda-doom/assets/6490190/81f0b87d-d6a3-4f7b-a17e-67c4dc185e44)
andrey-budko commented 1 year ago

Don't try to load it with GL, it stucks on gl_splitsbysector calculation