Feature Creep / Lua commands to turn off terrain / water / ... rendering

Author
Message
kehagiat
11
Years of Service
User Offline
Joined: 16th Jul 2013
Location:
Posted: 10th Sep 2014 08:35
I would like to have Lua commands which can turn on/off:

terrain / water / gun / decal / physics / ... rendering

I give the rationale for this request in http://fpscrforum.thegamecreators.com/?m=forum_view&t=209765&b=1. Briefly, turning terrain rendering off gives me a 400% FPS increase.

I think it is a trivially-easy--to-implement feature and can come up very useful for totally indoor maps.

Thanasis

Whereof one cannot speak thereof one must be silent
AuShadow
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd Dec 2013
Location: Australia
Posted: 10th Sep 2014 08:37
These already exist check the commands list in script section

PC Specs: Windows 7 home 64-bit, Amd 7900 3gb DDR5 graphics, 8gb DDR3 Ram, Intel i7 3.4ghz

Feel free to visit and edit the public FPSCR resource wiki page: http://fpscrresource.wikispaces.com/home
kehagiat
11
Years of Service
User Offline
Joined: 16th Jul 2013
Location:
Posted: 10th Sep 2014 08:45
@AuShadow

I stand corrected and thanks very much! I see (now) the commands for terrain and water. But ... how about physics (I guess you can turn this on / off for individual entities?) decals, gun etc.

Thanasis

Whereof on
AuShadow
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd Dec 2013
Location: Australia
Posted: 10th Sep 2014 16:39
Yes physics can be turned off by making the item static or in lua by using gravityoff(e) command

PC Specs: Windows 7 home 64-bit, Amd 7900 3gb DDR5 graphics, 8gb DDR3 Ram, Intel i7 3.4ghz

Feel free to visit and edit the public FPSCR resource wiki page: http://fpscrresource.wikispaces.com/home
tomjscott
User Banned
Posted: 10th Sep 2014 17:46
Quote: "Yes physics can be turned off by making the item static or in lua by using gravityoff(e) command"


Not quite true. There is a bug still unresolved here. Even if you turn gravity off in script, if physics are on in the entity properties, then it will still fall to the ground as if it had gravity. Only if you turn physics off in the properties will you get physics and gravity truly off. But then your entity can no longer collide with anything. So, it makes so many possibilities impossible currently.

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

Login to post a reply

Server time is: 2024-11-21 15:06:44
Your offset time is: 2024-11-21 15:06:44