Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas
Modified Files:
configure.in
Log Message:
i was just playing with adding thread supprot to INTERNALS of evas (ie the
renderer gets threaded). if i thread at the simplest levels (low down in for
example the image scaler code - one of the most expensvie gfx routnes) on an
actual dual core system - performance drops by 40%. this just doesn't work
well at that level. thread creates and joins per render op are just a bad
thing (tm) :) so this really needs to go in much higher up and that presents
problems. :( i will need to clearly define entry and exit points to and from
threaded space (and thus all the locks) - remove all nested calls (where
internal code goes thru the same entry/exit points traditionally so it
deadlocks itself).. anyway - this here has all that code stripepd out i
played with - it is just the autofoo and build stuff so we can turn on/off
thread support at will in the build.
===================================================================
RCS file: /cvs/e/e17/libs/evas/configure.in,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -3 -r1.185 -r1.186
--- configure.in 23 Oct 2006 23:10:05 -0000 1.185
+++ configure.in 28 Oct 2006 03:02:21 -0000 1.186
@@ -959,6 +959,35 @@
## Cpu based optimizations
#######################################
+## PTHREADS
+pthread_cflags=""
+pthread_libs=""
+build_pthreads="no"
+AC_MSG_CHECKING(whether to build pthread code)
+AC_ARG_ENABLE(pthreads,
+ [ --enable-pthreads enable threaded rendering], [
+ if test x"$enableval" = x"yes" ; then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(BUILD_SSE, 1, [Build Threaded Rendering])
+ build_pthreads="yes"
+ pthread_cflags=""
+ pthread_libs="-lpthread"
+ else
+ AC_MSG_RESULT(no)
+ build_pthreads="no"
+ fi
+ ],
+ [
+ AC_MSG_RESULT($build_pthreads)
+ if test x"$build_pthreads" = x"yes" ; then
+ AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
+ pthread_cflags=""
+ pthread_libs="-lpthread"
+ fi
+ ]
+)
+
+#######################################
## MMX
build_cpu_mmx="no"
case $host_cpu in
@@ -1817,6 +1846,9 @@
AC_SUBST(altivec_cflags)
+AC_SUBST(pthread_cflags)
+AC_SUBST(pthread_libs)
+
#####################################################################
## Output
@@ -1933,6 +1965,7 @@
echo " MMX.....................: $build_cpu_mmx"
echo " SSE.....................: $build_cpu_sse"
echo " ALTIVEC.................: $build_cpu_altivec"
+echo " Thread Support,.........: $build_pthreads"
echo
echo "ARGB Software Engine Options:"
echo " Sampling Scaler.........: $scaler_sample"
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs