fog gadget kills fps

fog gadget kills fps

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

fog gadget kills fps

Post by knorke »

fog, as seen on "hexfarm" map or with the gadget in blueprint, causes bad fps drop for me. When it is enabled fps are ~15, without fog it is 100.

When zoomed out there are line artefacts across the map:
http://www.abload.de/img/screen00256ysj91.png
and in zero-K, the commander-selection menu takes multi seconds to load the pictures. (see pic: game running since 4s but no pictures show yet, also bugged res bar) Not sure if that is caused by fog or simply by low fps.
hexfarm:
http://zero-k.info/Maps/Detail/23826
(note comment by zwzsg)

my graphic card thing:
[f=0000000] GL vendor: ATI Technologies Inc.
[f=0000000] GL renderer: Radeon X1300/X1550 Series
[f=0000000] GLSL version: 1.20
[f=0000000] GLEW version: 1.5.8
[f=0000000] Video RAM: total 210MB, available 210MB
[f=0000000] GL info:
haveARB: 1, haveGLSL: 1, ATI hacks: 1
FBO support: 1, NPOT-texture support: 0, 24bit Z-buffer support: 0
maximum texture size: 4096, compress MIP-map textures: 0
maximum SmoothPointSize: 63, maximum vec4 varying/attributes: 11/16
maximum drawbuffers: 4, maximum recommended indices/vertices: 16384/2147483647
number of UniformBufferBindings: 0 (0kB)


yesyes card sucks.
But since some other players seem to have that problem too, maybe in blueprint fog mapoption should default to off instead of on.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: fog gadget kills fps

Post by Beherith »

Disable luashaders support in springsettings.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: fog gadget kills fps

Post by knorke »

other luashader things work fine though.
for example in zk: "units on fire" and napalm, lups, that shockwave/distortion effect, transparent cloaking units
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: fog gadget kills fps

Post by dansan »

fog fps problem is really sad. a beautiful and interesting map like "seths revine" is almost never played bc there is _always_ a player for whom it is impossible, and very few know the name of the setting to switch the fog off.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: fog gadget kills fps

Post by FLOZi »

Beherith wrote:Disable luashaders support in springsettings.
In related topic - fixed seths ravine fog? :(
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: fog gadget kills fps

Post by zwzsg »

HexFarm, ok, but blueprint too, sure? Because I've been told to fix HexFarm's fog's lag by replacing it by blueprint reference implementation.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: fog gadget kills fps

Post by knorke »

HexFarm, ok, but blueprint too, sure?
yes.
same map+mod, toggle fog: with fog on it lags.
imo because of that fog should not be def = true, in mapblueprint, or nubs will make lagmaps!
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: fog gadget kills fps

Post by zwzsg »

Is there a way for the Lua to autodetect that fog will cause lag?
Post Reply

Return to “Lua Scripts”