added --enable-rdtsc configure option to enhance timer performance, especially in virtualized environments; default disabled - credits to sirius_black

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14265 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Yommy
2010-03-16 21:42:14 +00:00
parent 2b305d5a62
commit f9c60fd3fa
3 changed files with 3031 additions and 3858 deletions

View File

@@ -74,6 +74,30 @@ AC_ARG_ENABLE(
[enable_debug="no"]
)
#
# RDTSC as Tick Source
#
AC_ARG_ENABLE(
[rdtsc],
AC_HELP_STRING(
[--enable-rdtsc],
[
Uses rdtsc as timing source (disabled by default)
Enable it when you've timing issues.
(For example: in conjunction with XEN or Other Virtualization mechanisms)
Note:
Please ensure that you've disabled dynamic CPU-Frequencys, such as power saving options.
(On the most modern Dedicated Servers cpufreq is preconfigured, see your distribution's manual
how to disable it)
]
),
[
enable_rdtsc=1
],
[enable_rdtsc=0]
)
#
# Profiler
@@ -383,6 +407,19 @@ case $enable_debug in
esac
#
# RDTSC
#
case $enable_rdtsc in
0)
#default value
;;
1)
CFLAGS="$CFLAGS -DENABLE_RDTSC"
;;
esac
#
# Profiler
#