New widget: OnlyFightersPatrol
Posted: 23 Apr 2008, 11:10
Widget:
http://dmytry.no-ip.org/unit_only_fighters_patrol.lua
Description:
Only fighters go on air factory's patrol route after leaving factory. Improves fps in late game.
What does it do:
When you're spamming fighters, bombers, radar/sonar planes, and so on with factory set on repeat, and with factory command queue to patrol your airspace, only fighters will go on patrol route, other airplanes(except builders) are stopped.
Scout and radar/sonar planes on patrol are extremely CPU intensive (about 10x more than fighters, for me), so it does improve fps quite a bit.
Widget doesn't do anything when queue does not contain "patrol". (also it detects patrol even if it is not first command in queue)
Builders (construction airplanes):
Widget does not modify command queue of builders, for compatibility with FactoryGuard and similar widgets which send builders to do something. If you want it to stop builders too, change stop_builders=false to stop_builders=true
In some mods it could have problems with "fighters" which are actually dive bombers. You can edit script and add names of fighters which you don't want to go on patrol (same as done for "Liche")
I have idea for more advanced widget that would let you set different command queues for different kinds of units at factory.
http://dmytry.no-ip.org/unit_only_fighters_patrol.lua
Description:
Only fighters go on air factory's patrol route after leaving factory. Improves fps in late game.
What does it do:
When you're spamming fighters, bombers, radar/sonar planes, and so on with factory set on repeat, and with factory command queue to patrol your airspace, only fighters will go on patrol route, other airplanes(except builders) are stopped.
Scout and radar/sonar planes on patrol are extremely CPU intensive (about 10x more than fighters, for me), so it does improve fps quite a bit.
Widget doesn't do anything when queue does not contain "patrol". (also it detects patrol even if it is not first command in queue)
Builders (construction airplanes):
Widget does not modify command queue of builders, for compatibility with FactoryGuard and similar widgets which send builders to do something. If you want it to stop builders too, change stop_builders=false to stop_builders=true
In some mods it could have problems with "fighters" which are actually dive bombers. You can edit script and add names of fighters which you don't want to go on patrol (same as done for "Liche")
I have idea for more advanced widget that would let you set different command queues for different kinds of units at factory.