Code performance optimisation for SPEED !

Software: Other

Avatar
Luca, Sr. Member
Posted: 03 June 2013 11:08 AM   Total Posts: 230

Can be i can detect OpenGL or DirectX “driver” and ...
but anyway ...

Visual studio can help me ( intellisense ) smile
and compiling c/c++ code with flascc 1.0.1 i not to hard…
Implements this class “fast array” with templates

mmm

you need to chage the character ā€œSā€ double quotes included, with the relative Percent encoding ” ‘percentcharacter’20 “:

http://ultra.sdk.free.fr/docs/DxO/C++“S"Templates"S"The"S"Complete"S"Guide.pdf

make file content ( some parameters for the compilation can be omitted “size” )
FastArrayTest: check

@echo “————simple message————”
“$(FLASCC)/usr/bin/g++” FastArray.cpp -emit-swf -swf-size=200x200 -lFlash++ -lAS3++ -o c++FastArray.swf

include ../Makefile.common

clean:
rm -f *.swf

Makefile.common
this “rules” file are the default flascc file but the enviroment path variable FLASCC end FLEX are specifyed directly in this file…

FLASCC:=C:/FlashCC/sdk
FLEX:=C:/FlashCC/flex46
AS3COMPILER:=asc2.jar
BASE_CFLAGS:=-Werror -Wno-write-strings -Wno-trigraphs

$?UNAME=$(shell uname -s)
ifneq (,$(findstring CYGWIN,$(UNAME)))
$?nativepath=$(shell cygpath -at mixed $(1))
$?unixpath=$(shell cygpath -at unix $(1))
else
$?nativepath=$(abspath $(1))
$?unixpath=$(abspath $(1))
endif

ifneq (,$(findstring “asc2.jar”,”$(AS3COMPILER)”))
$?AS3COMPILERARGS=java $(JVMARGS) -jar $(call nativepath,$(FLASCC)/usr/lib/$(AS3COMPILER)) -merge -md
else
echo “ASC is no longer supported” ; exit 1 ;
endif

check:
@if [ -d $(FLASCC)/usr/bin ] ; then true ; \
else echo “Couldn’t locate FLASCC sdk directory, please invoke make with \“make FLASCC=/path/to/FLASCC/sdk ...\”” ; exit 1 ; \
fi

@if [ -d “$(FLEX)/bin” ] ; then true ; \
else echo “Couldn’t locate Flex sdk directory, please invoke make with \“make FLEX=/path/to/flex ...\”” ; exit 1 ; \
fi

   

SuperSam, Sr. Member
Posted: 01 July 2013 11:55 AM   Total Posts: 102   [ # 1 ]

Yeah, CrossBridge (FlasCC) makes for impressive performance improvements when used right. I heard that Adobe’s compiler is unfortunately horribly slow atm, making it hard to iterate big projects.

The good news is that it’s now open source, so skilled people outside of Adobe can improve the compiler.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X