Hi all,

I am developing a car game in big city. My city has many map entities and small models. Because of my small models /over 3000 trees, 2000 lights,.../ my FPS is going down and i decided to write scripts for these small objects.

Now my level has only few small objects /50 trees, 30 lights ,.../ and FPS is good.

My solution is to create few models at startup and change their positions to another tree locations if they go out of camera.

I think this solution will help many people who is making outdoor game.

Here is my code : dynamic_trees.rar

1. You have to place all trees at correct position in your level and build it.
2. Include <trees.wdl> to your game.
3. Press F2 to save all tree locations to <trees.ini> file.
4. call Read_Trees_Ini function in your main function after load level.
5. Run


The Empire of the Mongols comprised the largest continuous land empire ever, reaching from Korea to Poland