Page 1 of 1
$world farplane 200 problem?
Posted: Thu Feb 26, 2009 7:24 am
by Aprop
Well... i change farplane before level prespawn...
When i change it to 200 ($world farplane 200) or higher, everything's right.... but when i change it to 100 (not so far plane) FPS slow down to 3-6.... can somebody explain me why?
Posted: Thu Feb 26, 2009 4:04 pm
by Tazz
maybe ur video card...my fps goes up the lower the farplane because ur seeing less at a time...but y would u want o go that low anyway thats like only seeing like 1 foot in front of u. did u mean 2000?
fps @ 200 is 250+
fps @ 100 is 300+
Posted: Thu Feb 26, 2009 9:40 pm
by $oldier Of Ra
The only 2 logical explanations I can come up with are:
The game doesn't realize what it should broadcast/render to the player at such a low farplane. Hence it completely flips, stuck in numerous loops (which are obviously a LOT faster than frame loops) and your fps drowns.
Or... because the farplane is so low, the engine doesn't even render you. Obviously, you don't notice it because you got your fps animations and views. In that case another module of the engine starts up trying to counter this (like the loop that prevents people from changing the setsize of players etc... it keeps resetting to the default). While both loops are battling (resetting, undoing, resetting, undoing...) eachother at tremendous speed, your fps drowns.
Posted: Fri Feb 27, 2009 7:40 am
by Aprop
Code: Select all
^~^~^ LD ERROR: (entnum 144, radnum 717, targetname ' '): increasing maxdist from 0.828 to 128 to exceed mindist
Maxdist should be 128 greater than maxdist or the AI will want to both run away or charhem, or just do oscillatoray behaviour
^~^~^ LD ERROR: (entnum 144, radnum 717, targetname ' '): reducing maxdist from 128 to 0.828 to be 82.8% of farplane
Maxdist should be this distance within fog, or AI will be able to see and attack trought fog.
^~^~^ LD ERROR: (entnum 144, radnum 717, targetname ' '): reducing mindist from 0 to 0 to be less than maxdist after fog adjustement
Tazz, ever tried with ai? Maybe the AI cause problems because game automatically change its parms when fogs changed...
Posted: Fri Feb 27, 2009 11:53 am
by $oldier Of Ra
You're bots are running wild, I suppose? You have to increase their leash when you spawn them, based on how far they should go.
The game must adjust many variables of the AI when the farplane changes. The farplane is a factor of how well a bot can aim, lockon and hit his target.
And also concerning his movement.
If you make them go farther than the value of their leash, then these errors will keep spamming you. And because of awkward farplane value (is it still on 200?), some new leash errors appear.
You could reset their leashes while they are alive at regular time intervals.
Posted: Sat Feb 28, 2009 11:47 am
by jv_map
Yah the lag is probably due to console spam. You can avoid that by setting developer to 0.
But why not use a reasonable farplane value?

Posted: Sat Feb 28, 2009 1:02 pm
by Aprop
I looked for way to blind first player(s) until whole "team" join game ... first i used fades, but I wanted to try other ways too....
Posted: Sat Feb 28, 2009 8:23 pm
by $oldier Of Ra
What about this (modified from my win.scr)
Code: Select all
screen_on:
huddraw_rect 59 0 0 1420 1420
huddraw_shader 59 "textures/mohmenu/black"
huddraw_alpha 59 0.0
for (local.i = 0.05; local.i <= 1.0; local.i += 0.05)
{
huddraw_alpha 59 local.i
wait 0.1
}
end
screen_off:
for (local.i = 1.00; local.i >= 0.00; local.i -= 0.05)
{
huddraw_alpha 59 local.i
waitframe
}
end