CS2D
Scripts
Hudtxt Limited? Why?
Hudtxt Limited? Why?
1 reply I wonder why Hudtxt even has a limit on 50 hudtxts? Hudtxt doesn't cause that much lagg or does it? The hudtxt commands (
hudtxt and
hudtxt2) don't do lags by themselves but it's mostly a question of how we use them. Firstly, we should pay lots of attention on how expensive the functions are which they play a huge role. Using
always hook for complex run-time processes is overkill, for example. You'll have roughly 10 FPS because most of the frames are being taken by these operations and it's just a waste of performance and not recommendable.
Meanwhile
ms100 is also overkill and not advisable for complex operations. Unless you want to, for example, display a simply customized HUD to show your HP then ms100 would be the best option.
Conclusion
To answer your question in less words regarding hudtxt performance: it merely depends on you and what do you want to achieve. As for the hudtxt number limit I'd say it's an internal setting of the game and not changeable due performance standards, in my humble opinion.
DC can answer your first question since he could give you more facts than an opinionated answer like mine.