diff options
author | frosch <frosch@openttd.org> | 2016-05-22 11:30:25 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2016-05-22 11:30:25 +0000 |
commit | cade383f9b0eaf17bf6c3e05a3470c4f53039d0d (patch) | |
tree | b2d10f74fd6e7f19653b1c13368ed9efd8db4de1 /src/window.cpp | |
parent | ebb6e3807520cac80abac5441eb66403bd97c104 (diff) | |
download | openttd-cade383f9b0eaf17bf6c3e05a3470c4f53039d0d.tar.xz |
(svn r27579) -Change [FS#6402]: Performance improvement for dedicated servers by skipping drawing calls earlier in the process. (JGR)
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp index 1fce1f3a8..bc92416b6 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -3031,6 +3031,10 @@ void UpdateWindows() w->ProcessHighlightedInvalidations(); } + /* Skip the actual drawing on dedicated servers without screen. + * But still empty the invalidation queues above. */ + if (_network_dedicated) return; + static int we4_timer = 0; int t = we4_timer + 1; |