Textdraws and memory
#1

If you have 100+ per player textdraws, used quite often, with 30+ shown at a time, it is best to store them in variables or destroy and create as needed.

If destroy / create method is used will there be draw latency on the client?
Reply
#2

I'd say it's best to store them in global vars. It's less efficient to create / destroy them continuously. If they are going to be shown most of the time create them in OnGameModeInit (or fsinit) and show / hide when needed. Your not taking much of a memory hit with a couple hundred textdraws anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)