From a785c8373b980b1995ca783e87e6fd1082316787 Mon Sep 17 00:00:00 2001 From: Krausus Date: Sun, 9 Aug 2015 20:17:53 -0400 Subject: [PATCH] Forces clients to use HW-accelerated graphics They're forced on after a delay in client/New(), rather than Login(), to minimize how often they occur and cause flickering. --- code/modules/client/client procs.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index 67bf068d604..2efc59f66c5 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -266,6 +266,13 @@ add_admin_verbs() admin_memo_show() + // Forcibly enable hardware-accelerated graphics, as we need them for the lighting overlays. + // (but turn them off first, since sometimes BYOND doesn't turn them on properly otherwise) + spawn(5) // And wait a half-second, since it sounds like you can do this too fast. + if(src) + winset(src, null, "command=\".configure graphics-hwmode off\"") + winset(src, null, "command=\".configure graphics-hwmode on\"") + log_client_to_db() send_resources()