increase fog-of-war refresh rate

increase fog-of-war refresh rate

Requests for features in the spring code.

Moderator: Moderators

Post Reply
raaar
Metal Factions Developer
Posts: 1094
Joined: 20 Feb 2010, 12:17

increase fog-of-war refresh rate

Post by raaar »

the current rate at which fog-of-war is drawn is too low. Fast units, namely aircraft, are able to outrun their fog "circle", which makes no sense.
fog_refresh_rate_fail.jpg
(224.77 KiB) Downloaded 6 times
i've been told that this is only a visual issue (internally LOS is updated much faster).

this should be fixed in the engine (fog of war has been standard in most rts games, and none of them have this problem)

fog update rate should be made faster (3-6 times per second, not 1), and/or made configurable through modrules.lua/tdf, the same way LOS resolution already is.

i put it in mantis


related old threads about fog-of-war/LOS:
http://springrts.com/phpbb/viewtopic.php?f=12&t=28062
http://springrts.com/phpbb/viewtopic.php?f=21&t=23366
Last edited by raaar on 04 Aug 2013, 00:19, edited 2 times in total.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: increase fog-of-war refresh rate

Post by Beherith »

Try extratextureupdaterate in spring settings (launch the spring.exe and select it in settings, the fastest rate is every 4 frames)
raaar
Metal Factions Developer
Posts: 1094
Joined: 20 Feb 2010, 12:17

Re: increase fog-of-war refresh rate

Post by raaar »

experiment:
- use six year old computer (can play most spring games decently, but becomes unplayably slow in late game xta, or zk)
- spawn 100 arm peepers and put them on patrol on the cold place

- results
tried "ExtraTextureUpdateRate=45"
got ~50 fps

tried "ExtraTextureUpdateRate=4"
got ~50 fps


apparently it barely makes a difference. Why is the default rate so low...? I heard about that setting before. Players shouldn't have to touch such an obscure setting.

Btw, the max rate doesn't seem like every 4 frames, seems more like 3-4 times per second (every 10 frames maybe)
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: increase fog-of-war refresh rate

Post by Beherith »

air los is circular los, non air units ha non circular los. your setup is likely gpu limited. press alt+b ingame to see the load caused by los texture update.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: increase fog-of-war refresh rate

Post by Forboding Angel »

Behe, I can confirm his findings. The visuals only update every few seconds no matter how low you set it.

Raar, game frames aren't the same as fps. In spring, 32 game frames happen per second, so that means that at a setting of 4, it should be refreshing 8 times per second, which it does not, as you have seen.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: increase fog-of-war refresh rate

Post by Beherith »

i just tested this, and while it is not ten times per second, it is about three or four.
raaar
Metal Factions Developer
Posts: 1094
Joined: 20 Feb 2010, 12:17

Re: increase fog-of-war refresh rate

Post by raaar »

i knew about the 32/s game frames and was referring to those. But thanks anyway.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: increase fog-of-war refresh rate

Post by Beherith »

Actually, raar. I fully agree with your sentiment anyway. It would be great to have the los texture updated every frame. It would be even more awesome if it was done in a separate thread, maybe even delayed by 1 gameframe so as not to take time away from sim thread.

Also, thanks for reminding me that gl.Texture("$info") can be now used to bind the info texture!
raaar
Metal Factions Developer
Posts: 1094
Joined: 20 Feb 2010, 12:17

Re: increase fog-of-war refresh rate

Post by raaar »

well....it was marked as resolved at http://springrts.com/mantis/view.php?id=3916

with "no change required"

...
Post Reply

Return to “Feature Requests”