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?
$world farplane 200 problem?
Moderator: Moderators
-
$oldier Of Ra
- Lieutenant Colonel
- Posts: 404
- Joined: Sun Oct 16, 2005 7:16 pm
- Location: Belgium
- Contact:
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.
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.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.
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...
-
$oldier Of Ra
- Lieutenant Colonel
- Posts: 404
- Joined: Sun Oct 16, 2005 7:16 pm
- Location: Belgium
- Contact:
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.
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.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.
-
$oldier Of Ra
- Lieutenant Colonel
- Posts: 404
- Joined: Sun Oct 16, 2005 7:16 pm
- Location: Belgium
- Contact:
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
}
endOur official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.
