Scripts / REQUEST Script to stop renderind terrain

Author
Message
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 22nd Nov 2014 09:44
Please help me with a script who can disable terrain rendering in the game.
I've use it the F11 key with the 1 key, but this working just in test level not in the final game.
Also, if I use in standalone the "setup.ini" by setting
"superflatterrain=0" to "superflatterrain=1" all buildings of game map is going deep in the ground at hes roof level.
This "terrain rendering" make game to run too slow in night or dark sky with lighting poles (4-7fps).
See the example from: http://fpscrforum.thegamecreators.com/?m=forum_view&t=209998&b=2

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea
geistschatten
12
Years of Service
User Offline
Joined: 10th Apr 2012
Playing: GameGuru
Posted: 22nd Nov 2014 13:21
This isn't a script, but usually terrain LOD and terrain size are 2 big ones that you can do (assuming you need the shaders on high). I usually do LOD down to 1, 2, and 3 (I know, horrible me), and then size down to 70 (any smaller and it starts to disappear within view). That should give you a few extra FPS.

Honestly though, you should wait until the next version release, there should be some speed improvements with both the terrain and the lighting.
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 22nd Nov 2014 13:36 Edited at: 22nd Nov 2014 13:37
Ok, thanks for answer me.

So we need to wait for the new version of the FPSCR...

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea
tomjscott
User Banned
Posted: 24th Nov 2014 18:15


System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 25th Nov 2014 07:41
Thanks @tomjscott, where I must use that code (in what file name) ?

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea
tomjscott
User Banned
Posted: 25th Nov 2014 14:28
Just put it wherever you want the terrain to stop rendering. Typically, it's done using a trigger zone when you enter a n indoor area. If you just want it done for the whole game then you can simply call it in a script that gets executed as soon as the player spawns. So, possibly put a trigger zone right where your player spawn point is and attach a script that calls this function.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 25th Nov 2014 16:01
Yep I use it in a trigger zone. Full thanks
Unfortunately, this option is for use indoors only.

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea
tomjscott
User Banned
Posted: 25th Nov 2014 17:09
Quote: "Unfortunately, this option is for use indoors only. "


What do you mean?

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 25th Nov 2014 21:16 Edited at: 25th Nov 2014 21:20
This "terrain rendering" make game to run too slow in night or dark sky with lighting poles (the speed of game decrease at 4-7fps).

For this reason I want to decrease somehow rendering for terrain in game.

http://fpscrforum.thegamecreators.com/xt/xt_fetch_attachment.php?i=1620&m=2501189

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea
tomjscott
User Banned
Posted: 25th Nov 2014 21:32
OK, but are you saying you can't turn terrain off with that command?

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 25th Nov 2014 21:39 Edited at: 25th Nov 2014 21:42
tomjscott wrote: "but are you saying you can't turn terrain off with that command?"


No, no. The command is fine and working, but when the player is outdoor = no terrain.

In fact, I need just to decrease the number of polygons (or whatever) for terrain and water to I can obtain a reasonable game speed.

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea
tomjscott
User Banned
Posted: 25th Nov 2014 21:41
Right. That's what you want isn't it? If not, you can just call ShowTerrain again to turn it back on.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 25th Nov 2014 21:43
In fact, I need just to decrease the number of polygons (or whatever) for terrain and water to I can obtain a reasonable game speed when the player is outdoor.

Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 25th Nov 2014 22:57
I've setting to low a lot of function in the map editor game testing, and the game speed is still lowest.



Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 25th Nov 2014 23:25
yes that happens, you'll just have to wait for better optimisation on reloaded, try 1.009 when it's released - it might help, dont forget this is only a beta and things wont always work as you expect

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Login to post a reply

Server time is: 2024-05-02 10:32:50
Your offset time is: 2024-05-02 10:32:50