Dynamic cpu code?
Fred were talking about writing code within pb that is specialized for certain CPU instructions using like this
and with dynamic cpu it will include all of them and select on runtime 
Code: Select all
compilerif #Compiler_SSE
procedure MyFunction()
;sse code
endprocedure
compilerelseif #Compiler_MMX
procedure myfunction()
;same function but using mmx
endprocedure
compilerendif~Dreglor
I mean compile several Optimized exes(bin/MyGame_sse, bin/MyGame_3dnow!, bin/MyGame_none)
then make a selector exe:
and with dynamic cpu it will include all of them and select on runtime 
That'd be what I'd do if it was possible...couse it's a little faster
*performance hunter*
then make a selector exe:
Code: Select all
compilerif #Compiler_SSE
runprogram("bin/MyGame_sse")
compilerelseif #Compiler_3DNOW!
runprogram("bin/MyGame_3dnow!")
compilerelse
runprogram("bin/MyGame_none")
compilerendifThat'd be what I'd do if it was possible...couse it's a little faster
