Quote: "Would reducing the shadow map size like you said effect the speed much do you think?"
It will make a difference, but probably not as much as you are hoping for.
Advanced lighting's directional lighting shader has 4 different "shadow quality modes" which can be used by calling the
DirectionalLight_Set_Shadows(Shadow as integer
) function. 0=no shadows and 4=highest quality. Each "mode" uses a different number of shadowmap samples which effects the shadow's "smoothness" (as well as the effect's performance). To be sure that it is the shadows which are slowing you down, you should try disabling the directional light's shadows altogether.
You could also try to decrease the directional light's shadow range using
DirectionalLight_Set_Range(Range as float
).
In my project I found that the terrain's polycount can have a huge impact on performance (though I am using an extremely old, heavily modified version of Advanced Lighting).