Scripts / Speed Boost Script.

Author
Message
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 22nd Sep 2015 14:22 Edited at: 22nd Sep 2015 14:48
Enhance your games speed with this handy little script!
Easy to use and can increase frame rates with large and even small scenes. Includes 4 example maps and 3 scripts for different scenarios.

How to use:
Firstly, take a look at the examples. The levels each have a tailored script to run as fast as possible. You can see how fast the levels run without the script by either deleting the rubbish decal on each level (next to the player start), or setting it to static. You should see a noticeable difference (dependent on your PC specs). Examine the scripts and notice the small differences. Mainly distance, itemcount and mloop. Distance is your view range, lower is faster but has more pop up. Generally you will have to tweak this for each level to get best results. Itemcount is the number of objects to occlude. Mloop is the rate of update, smaller is slower, but more effective on small levels.

Making your own levels:

You will have to organise your levels a little to take advantage of this script. This is to ensure fastest speeds and no odd issues arising.
Firstly, add your player marker. It is important to do this as the very first item or the script will show the player marker when running.
Next add any dummy object, preferably a low poly overlay of some sort such as the "rubbish" one included as default in GG. Select it and open up the properties panel from the selection menu. Set static mode to no. Set main to the appropriate script name eg. occlude_high.lua. Set physics on to no. Set always active to yes.
Now design your scene. Only include scenery, no game play items such as weapons or any other collectables or AI. Once you have finished it as you want, or at least until you want to test, before running it, you will need to edit the script a little. Find the last object you placed and remember it's number. Open up the script in notepad. Change itemcount to the number of your last entity. This will ensure that any AI or collectables are NOT included in the occlusion which can cause re-spawn issues and also slow the system a little. You may want to rename it so as not to alter your original. If you do, remember to change it in the editor afterwards.
That should be it. However, if you are designing a really small scene you may need to alter mloop. This controls the update of objects, a smaller value will work better with small levels, a larger value better with big scenes. Both the high and medium scripts use an automatic calculation and don't need to be altered, but the small scene is just set to 1 as that works far better. You need fast update on a small scene with low draw distance.
You can keep adding to the map and changing the itemcount to match as you build your level, just remember not to include any game play items until the entire level is complete.

Now it is released for free perhaps it can be further improved, I have tried several other ideas but all slowed it more if only by a tiny amount. Still, as it stands it can give quite the boost to some levels!

If you aren't familiar with them here are a few videos about the script.





SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.

Attachments

Login to view attachments
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 22nd Sep 2015 14:41
Thanks. An easy, clean script.
My dream is to develope games, which makes fun when I create it and fun when other people play it.
PM
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 22nd Sep 2015 18:39
Thanks DVader - I can see this has taken many, many hours to create, test, prepare the info, vids, maps etc.

Very kind of you to release for all.

Cheers.
Isagabe
10
Years of Service
User Offline
Joined: 12th Sep 2014
Location:
Posted: 22nd Sep 2015 20:30
blown away. thank you!
Smeg
GameGuru TGC Backer
20
Years of Service
User Offline
Joined: 19th Jan 2004
Location: UK
Posted: 22nd Sep 2015 22:55
Thank you DVader, very kind of you to put these up. Always enjoy your videos and your progress with GG and I learn from them, so thanks again
PM
Kesstryl
9
Years of Service
User Offline
Joined: 29th Jul 2015
Playing:
Posted: 23rd Sep 2015 01:57
WOW, thank you for making this free!
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 23rd Sep 2015 16:30
Thanks all. I'll be interested to see how it works out for all your maps and what speed gains you get


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
Gtox
3D Media Maker
10
Years of Service
User Offline
Joined: 5th Jun 2014
Location: South Africa
Posted: 26th Sep 2015 20:15
Thanks DVader, very generous of you.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 26th Sep 2015 23:40
Great contribution to the community.
Thank you for sharing that.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 28th Sep 2015 15:09
Thanks again guys, let me know if you have good results with any levels you make or if you have issues getting it working.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.

Login to post a reply

Server time is: 2024-12-22 07:01:08
Your offset time is: 2024-12-22 07:01:08