after "2d refactoring" merge, i got the following issue:
1. set "autoloadlights=true" in gzdoom.ini
2. run gzdoom with the pk3 from the link
3. go to e1m1, and walk to the barrel near the window.
as you approaching the barrel, you will see a major slowdowns (and some lightness "blinks" on a slime inside a barrel).
it worked perfectly before the merge: no issues, no slowdowns.
i am constantly building gzdoom from the git master branch, and it worked before. i am unable to bisect the code, as "2d refactoring" is "all-or-nothing" thingy (trying to bisect it gives non-buildable source on my GNU/Linux system), so i cannot point at the commit that broke it.
i have x86 system, with GeForce GT 720 GPU and proprietary nVidia drivers. i tested it by running freshly built gzdoom without gzdoom.ini (so it created one for me), and then i manually set "autoloadlights" to "true".
please, ask me any additional questions if something is not clear, or if i ommited some crucial details.
pk3 with replacement barrel model:
http://files.catbox.moe/rleakk.pk3