performance improvemnt

This commit is contained in:
lxsang
2018-09-22 01:18:13 +02:00
parent 63028a15e5
commit e9b715337e
5 changed files with 12 additions and 249 deletions

View File

@@ -11,7 +11,6 @@
* to web assembly to be used on the browser
*/
/*alloc a new frame buffer*/
typedef struct{
uint8_t r;
uint8_t g;

View File

@@ -30,5 +30,10 @@ tar xvzf zlib-1.2.11.tar.gz -C ./zlib --strip-components=1
rm zlib-1.2.11.tar.gz
cd zlib
emconfigure ./configure
os=`uname -s`
if [ "$os" = "Darwin" ]; then
sed -i -e 's/AR=libtool/AR=emar/g' Makefile
sed -i -e 's/ARFLAGS=-o/ARFLAGS=rc/g' Makefile
fi
# TODO modify make file using sed if macos
emmake make