diff options
author | Sven Gothel <[email protected]> | 2012-01-13 16:13:40 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-01-13 16:13:40 +0100 |
commit | 48767a40c2461405dfce14e8d9eafbbab21d203e (patch) | |
tree | 3323739f3416eb5f8a00d6c10ac935ff6c6158b0 /make | |
parent | d23b08203e32f8f50991a48132eb3c2236b4efc0 (diff) |
NEWT/OSX Performance Fix: Cache CGDisplayScreenSize() result, since it's ridiculous slow
Each call to CGDisplayScreenSize() took around 6ms (5ms .. 20ms, avrg 6ms)
which added up to ~2s for ~400 Screen modes.
Diffstat (limited to 'make')
-rw-r--r-- | make/build-newt.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/make/build-newt.xml b/make/build-newt.xml index ac220c7b4..c812d98f3 100644 --- a/make/build-newt.xml +++ b/make/build-newt.xml @@ -531,6 +531,7 @@ <include name="${rootrel.src.c}/NewtCommon.c" /> <include name="${rootrel.src.c}/WindowsWindow.c" if="isWindows"/> <include name="${rootrel.src.c}/*.m" if="isOSX"/> + <!-- include name="${rootrel.src.c}/timespec.c" if="isOSX"/--> <!-- currently only used for OSX with special PERF DEBUG MODE--> <include name="${rootrel.src.c}/AndroidWindow.c" if="isAndroid"/> <include name="${rootrel.src.c}/X11Display.c" if="isX11"/> <include name="${rootrel.src.c}/X11Screen.c" if="isX11"/> |