scp-fs2open / fs2open.github.com

Origin Repository for SCP FreeSpace 2 Open
https://www.hard-light.net/
Other
407 stars 163 forks source link

Slow perf in FASTDBG, possibly HUD-related #4178

Open MatthTheGeek opened 2 years ago

MatthTheGeek commented 2 years ago

Perf on FASTDBG (20220411 and tested as well on older builds such as 20210603) is slower than expected, including on retail assets. 36fps on surrender belisarius vs 120fps on release builds.

Drops to 24fps with frame data profiling with a major frame time loss on Render HUD Gauge - unclear if the HUD is the main cause or simply skewing the profiling because of the data being printed on screen. HUDFrame

Log: https://fsnebula.org/log/625c1d35a91fb7a060f3406b

My hardware: i3-8100, RX480, 16GB RAM, windows and game data on SSD.

Similar perf loss with and without frame data profiling reported by EatThePath on an old laptop of his. HUDFrame2

EatThePath commented 2 years ago

As mentioned I did some profiling on my rather constrained laptop to see what's up. What I found is just that rendering all the UI elements is slow and not too much more useful than that. I don't have a strong command of how fastdebug differs from release builds so I'm not sure I can take it further than that.

I did find that the retail star rendering with all it's individual points and lines is hilariously expensive in this context, though.