Try this:

- use two skins for terrain;

- 1st skin 1024x1024 not mipmapped;

- 2nd skin 512x512 mipmapped (detail texture);

- in main() use detail_size = 9; (play with this value);

- detail_size engine variable steel works although will be removed in future updates i think.