]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
Optimize centerprint drawing
authorterencehill <piuntn@gmail.com>
Thu, 19 May 2011 13:20:10 +0000 (15:20 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 19 May 2011 13:20:10 +0000 (15:20 +0200)
commit14efa39eaddeb8adf87192ad101f1262168ecad0
tree2466ac325d1338b36cc1ebf35e097848d653e793
parentc96303a4cf08c3a73d9f111f81cb915bc06ae510
Optimize centerprint drawing
- set drawfontscale before drawing all the lines, rather than for each line
- when a line isn't resized (sz == 1) use the previously calculated width (centerprint_width[i]) rather than calculate it again at every frame
- network warning message in ca once per second, message is still visible all the time
qcsrc/client/hud.qc
qcsrc/server/arena.qc