ENSL / NS

Natural Selection mod for Half-life
http://www.unknownworlds.com/ns
GNU General Public License v3.0
42 stars 12 forks source link

Help tooltips are poorly optimized #136

Closed pierow closed 11 months ago

pierow commented 12 months ago

The help tooltips cause a huge FPS drop, especially if there's a few of them.

RGreenlees commented 12 months ago

Looks like the biggest culprit is localizing strings. It's an expensive operation to look up the appropriate text in titles.txt and NS does it EVERY FRAME for no reason. It only has to be done once. Without localization the framerate jumps from 180 to 240 once round begins, so definitely worth fixing.